Package org.languagetool.bitext
Interface BitextReader
-
- All Superinterfaces:
Iterable<StringPair>
- All Known Implementing Classes:
TabBitextReader
,WordFastTMReader
public interface BitextReader extends Iterable<StringPair>
Interface for classes that implement reading from bitext files, such as translation memory files, glossary files, aligned text...- Author:
- Marcin MiĆkowski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getColumnCount()
Get the current column number in the file.String
getCurrentLine()
Get the current line of the bitext input.int
getLineCount()
Get the current line number in the file.int
getSentencePosition()
Get the current target sentence position in the file.int
getTargetColumnCount()
Get the current target column number in the file.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
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).
-
-