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, waitforEach, spliteratorprotected 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()
BitextReadergetColumnCount in interface BitextReaderpublic int getTargetColumnCount()
BitextReadergetTargetColumnCount in interface BitextReaderpublic int getLineCount()
BitextReadergetLineCount in interface BitextReaderpublic int getSentencePosition()
BitextReadergetSentencePosition in interface BitextReaderpublic String getCurrentLine()
BitextReadergetCurrentLine in interface BitextReader