Class POSSample

  • All Implemented Interfaces:
    java.io.Serializable

    public class POSSample
    extends java.lang.Object
    implements java.io.Serializable
    Represents an pos-tagged sentence.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      POSSample​(java.lang.String[] sentence, java.lang.String[] tags)  
      POSSample​(java.lang.String[] sentence, java.lang.String[] tags, java.lang.String[][] additionalContext)  
      POSSample​(java.util.List<java.lang.String> sentence, java.util.List<java.lang.String> tags)  
      POSSample​(java.util.List<java.lang.String> sentence, java.util.List<java.lang.String> tags, java.lang.String[][] additionalContext)  
    • Constructor Detail

      • POSSample

        public POSSample​(java.lang.String[] sentence,
                         java.lang.String[] tags)
      • POSSample

        public POSSample​(java.util.List<java.lang.String> sentence,
                         java.util.List<java.lang.String> tags)
      • POSSample

        public POSSample​(java.util.List<java.lang.String> sentence,
                         java.util.List<java.lang.String> tags,
                         java.lang.String[][] additionalContext)
      • POSSample

        public POSSample​(java.lang.String[] sentence,
                         java.lang.String[] tags,
                         java.lang.String[][] additionalContext)
    • Method Detail

      • getSentence

        public java.lang.String[] getSentence()
      • getTags

        public java.lang.String[] getTags()
      • getAddictionalContext

        public java.lang.String[][] getAddictionalContext()
      • toString

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

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

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