Class ConfusionSetLoader


  • public class ConfusionSetLoader
    extends java.lang.Object
    Loads a confusion set from a plain text file (UTF-8). See confusion_sets.txt for a description of the file format.
    Since:
    2.7
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String CHARSET  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<ConfusionPair>> loadConfusionPairs​(java.io.InputStream stream)  
      • Methods inherited from class java.lang.Object

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

      • ConfusionSetLoader

        public ConfusionSetLoader()
    • Method Detail

      • loadConfusionPairs

        public java.util.Map<java.lang.String,​java.util.List<ConfusionPair>> loadConfusionPairs​(java.io.InputStream stream)
                                                                                               throws java.io.IOException
        Throws:
        java.io.IOException