Package org.languagetool.bitext
Interface BitextReader
- All Superinterfaces:
Iterable<StringPair>
- All Known Implementing Classes:
TabBitextReader
,WordFastTMReader
Interface for classes that implement reading from bitext files,
such as translation memory files, glossary files, aligned text...
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the current column number in the file.Get the current line of the bitext input.int
Get the current line number in the file.int
Get the current target sentence position in the file.int
Get the current target column number in the file.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getLineCount
int getLineCount()Get the current line number in the file.- Returns:
- The current line number.
-
getColumnCount
int getColumnCount()Get the current column number in the file.- Returns:
- The current column number.
-
getTargetColumnCount
int getTargetColumnCount()Get the current target column number in the file.- Returns:
- The current target column number.
-
getSentencePosition
int getSentencePosition()Get the current target sentence position in the file.- Returns:
- The current sentence position.
-
getCurrentLine
String getCurrentLine()Get the current line of the bitext input.- Returns:
- The complete line (including source, if any).
-