Class Aligner


  • public class Aligner
    extends java.lang.Object
    Class to drive alignment of input files. Responsible for filtering and performing automatic alignment with mALIGNa.
    See Also:
    mALIGNa
    • Constructor Summary

      Constructors 
      Constructor Description
      Aligner​(java.lang.String srcFile, Language srcLang, java.lang.String trgFile, Language trgLang)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> align()
      Align the input files according to the current settings to a list of pairs where key = source text value = target text Calls loadFiles() if it has not yet been called.
      void writePairsToTMX​(java.io.File outFile, java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> pairs)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Aligner

        public Aligner​(java.lang.String srcFile,
                       Language srcLang,
                       java.lang.String trgFile,
                       Language trgLang)
    • Method Detail

      • writePairsToTMX

        public void writePairsToTMX​(java.io.File outFile,
                                    java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> pairs)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • align

        public java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> align()
                                                                                           throws java.lang.Exception
        Align the input files according to the current settings to a list of pairs where
        1. key = source text
        2. value = target text
        Calls loadFiles() if it has not yet been called.
        Returns:
        Throws:
        java.lang.Exception