Skip to content

Commit

Permalink
broken
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Oct 23, 2024
1 parent 31adc51 commit e0fba03
Show file tree
Hide file tree
Showing 6 changed files with 890 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SIL.Machine/Corpora/CorpusAlignmentException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ public CorpusAlignmentException(string sourceRef, string targetRef)
: base(
$"Invalid format in {sourceRef} and {targetRef}. Mismatched key formats \"{sourceRef}\" and \"{targetRef}\". There may be an extraneous tab, missing ref, or inconsistent use of user-defined refs."
) { }

public CorpusAlignmentException(string[] refs)
: base(
$"Invalid format in {string.Join(", ", refs)}. Mismatched key formats. There may be an extraneous tab, missing ref, or inconsistent use of user-defined refs."
) { }
}
}
11 changes: 11 additions & 0 deletions src/SIL.Machine/Corpora/INParallelTextCorpus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Collections.Generic;

namespace SIL.Machine.Corpora
{
public interface INParallelTextCorpus : ICorpus<NParallelTextRow>
{
int Count(bool includeEmpty = true, IEnumerable<string> textIds = null);

IEnumerable<NParallelTextRow> GetRows(IEnumerable<string> textIds);
}
}
Loading

0 comments on commit e0fba03

Please sign in to comment.