Class LangID

  • All Implemented Interfaces:
    java.lang.Comparable<LangID>

    public class LangID
    extends java.lang.Object
    implements java.lang.Comparable<LangID>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String langid  
      boolean primary  
      double probability  
      int score
      On a scale of 0 to 100, where 100 = 100% confident, how would you score this language identity? It is easier to compare scores 55 == 55, vs.
    • Constructor Summary

      Constructors 
      Constructor Description
      LangID​(java.lang.String l, double prob, boolean isFirstChoice)  
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(LangID o)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • langid

        public java.lang.String langid
      • probability

        public double probability
      • score

        public int score
        On a scale of 0 to 100, where 100 = 100% confident, how would you score this language identity? It is easier to compare scores 55 == 55, vs. 0.550 to 0.550.... in the decimal space. Errors out 3 significant figures is not useful for comparison.
      • primary

        public boolean primary
    • Constructor Detail

      • LangID

        public LangID​(java.lang.String l,
                      double prob,
                      boolean isFirstChoice)
    • Method Detail

      • compareTo

        public int compareTo​(LangID o)
        Specified by:
        compareTo in interface java.lang.Comparable<LangID>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object