Package org.languagetool.bitext
Class WordFastTMReader
- java.lang.Object
-
- org.languagetool.bitext.TabBitextReader
-
- org.languagetool.bitext.WordFastTMReader
-
- All Implemented Interfaces:
Iterable<StringPair>
,BitextReader
public class WordFastTMReader extends TabBitextReader
Reader of WordFast Translation Memory text files. They are simple tab-delimited text files.- Author:
- Marcin MiĆkowski
-
-
Field Summary
-
Fields inherited from class org.languagetool.bitext.TabBitextReader
in, nextLine, nextPair, sentencePos
-
-
Constructor Summary
Constructors Constructor Description WordFastTMReader(String filename, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<StringPair>
iterator()
@Nullable StringPair
tab2StringPair(String line)
-
Methods inherited from class org.languagetool.bitext.TabBitextReader
getColumnCount, getCurrentLine, getLineCount, getSentencePosition, getTargetColumnCount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
WordFastTMReader
public WordFastTMReader(String filename, String encoding) throws IOException
- Throws:
IOException
-
-
Method Detail
-
tab2StringPair
@Nullable public final @Nullable StringPair tab2StringPair(String line)
- Overrides:
tab2StringPair
in classTabBitextReader
-
iterator
public Iterator<StringPair> iterator()
- Specified by:
iterator
in interfaceIterable<StringPair>
- Overrides:
iterator
in classTabBitextReader
-
-