public class TabBitextReader extends Object implements BitextReader
Modifier and Type | Field and Description |
---|---|
protected BufferedReader |
in |
protected String |
nextLine |
protected StringPair |
nextPair |
protected int |
sentencePos |
Constructor and Description |
---|
TabBitextReader(String filename,
String encoding) |
Modifier and Type | Method and 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.
|
Iterator<StringPair> |
iterator() |
protected StringPair |
tab2StringPair(String line) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected BufferedReader in
protected StringPair nextPair
protected String nextLine
protected int sentencePos
@Nullable protected StringPair tab2StringPair(String line)
public Iterator<StringPair> iterator()
iterator
in interface Iterable<StringPair>
public int getColumnCount()
BitextReader
getColumnCount
in interface BitextReader
public int getTargetColumnCount()
BitextReader
getTargetColumnCount
in interface BitextReader
public int getLineCount()
BitextReader
getLineCount
in interface BitextReader
public int getSentencePosition()
BitextReader
getSentencePosition
in interface BitextReader
public String getCurrentLine()
BitextReader
getCurrentLine
in interface BitextReader