org.languagetool.bitext
Class WordFastTMReader

Object
  extended by TabBitextReader
      extended by 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

Constructor Summary
WordFastTMReader(String filename, String encoding)
           
 
Method Summary
 Iterator<StringPair> iterator()
           
 StringPair tab2StringPair(String line)
           
 
Methods inherited from class TabBitextReader
getColumnCount, getCurrentLine, getLineCount, getSentencePosition, getTargetColumnCount
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordFastTMReader

public WordFastTMReader(String filename,
                        String encoding)
                 throws IOException
Throws:
IOException
Method Detail

tab2StringPair

public final StringPair tab2StringPair(String line)

iterator

public Iterator<StringPair> iterator()
Specified by:
iterator in interface Iterable<StringPair>
Overrides:
iterator in class TabBitextReader


Copyright © 2005-2011 Daniel Naber