Interface BitextReader

  • All Superinterfaces:
    java.lang.Iterable<StringPair>
    All Known Implementing Classes:
    TabBitextReader, WordFastTMReader

    public interface BitextReader
    extends java.lang.Iterable<StringPair>
    Interface for classes that implement reading from bitext files, such as translation memory files, glossary files, aligned text...
    • 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

        java.lang.String getCurrentLine()
        Get the current line of the bitext input.
        Returns:
        The complete line (including source, if any).