Class PathNode

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

    class PathNode
    extends java.lang.Object
    implements java.lang.Comparable<PathNode>
    SmartChineseAnalyzer internal node representation

    Used by BiSegGraph to maximize the segmentation with the Viterbi algorithm.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int preNode  
      double weight  
    • Constructor Summary

      Constructors 
      Constructor Description
      PathNode()  
    • Field Detail

      • weight

        public double weight
      • preNode

        public int preNode
    • Constructor Detail

      • PathNode

        PathNode()
    • Method Detail

      • compareTo

        public int compareTo​(PathNode pn)
        Specified by:
        compareTo in interface java.lang.Comparable<PathNode>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)