Package opennlp.tools.postag
Klasse POSSample
java.lang.Object
opennlp.tools.postag.POSSample
- Alle implementierten Schnittstellen:
Serializable
,Sample
Represents an pos-tagged
sentence
.- Siehe auch:
-
Konstruktordetails
-
POSSample
Initializes aPOSSample
instance.- Parameter:
sentence
- The sentence of tokens to be tagged.tags
- An array of pos tags for each token provided insentence
.
-
POSSample
Initializes aPOSSample
instance.- Parameter:
sentence
- The sentence to be tagged.tags
- AList
of pos tags for each token provided insentence
.
-
POSSample
Initializes aPOSSample
instance.- Parameter:
sentence
- The sentence to be tagged.tags
- AList
of pos tags for each token provided insentence
.additionalContext
- A 2D array which holds additional information for the context.
-
POSSample
Initializes aPOSSample
instance.- Parameter:
sentence
- The sentence to be tagged.tags
- An array of pos tags for each token provided insentence
.additionalContext
- A 2D array which holds additional information for the context.
-
-
Methodendetails
-
getSentence
- Gibt zurück:
- Retrieves the sentence as array.
-
getTags
- Gibt zurück:
- Retrieves the tags as array.
-
getAdditionalContext
- Gibt zurück:
- Retrieves additional information for the context.
-
toString
-
parse
Parses asentenceString
.- Parameter:
sentenceString
- The sentence to be parsed.- Gibt zurück:
- A valid
POSSample
result. - Löst aus:
InvalidFormatException
- Thrown if errors occurred during parsing.
-
hashCode
public int hashCode() -
equals
-