public class PhraseTypeDefinition extends Object
Phrases are defined by a set of POS tags that can
Pos and String tags in addition to
LexicalCategory.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.stanbol.enhancer.nlp.pos.LexicalCategory |
phraseType |
protected Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
readOnlyContinuationTypes |
protected Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
readOnlyEndTypes |
protected Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
readOnlyPrefixTypes |
protected Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
readOnlyRequiredTypes |
protected Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
readOnlyStartTypes |
| Constructor and Description |
|---|
PhraseTypeDefinition(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory phraseType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContinuationType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
addEndType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
addPrefixType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
addRequiredType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
addStartType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
getContinuationType()
Getter for the read only set with the continuation types
|
Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
getEndType()
Getter for the read only set with the end types.
|
org.apache.stanbol.enhancer.nlp.pos.LexicalCategory |
getPhraseType()
Getter for the type of this phrase definition
|
Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
getPrefixType()
Getter for the read only set with the prefix types
|
Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
getRequiredType()
Getter for the read only set with the required types
|
Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> |
getStartType()
Getter for the read only set with the start types.
|
boolean |
removeContinuationType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
removeEndType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
removePrefixType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
removeRequiredType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
boolean |
removeStartType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types) |
String |
toString() |
protected final org.apache.stanbol.enhancer.nlp.pos.LexicalCategory phraseType
protected final Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> readOnlyStartTypes
protected final Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> readOnlyPrefixTypes
protected final Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> readOnlyContinuationTypes
protected final Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> readOnlyRequiredTypes
protected final Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> readOnlyEndTypes
public PhraseTypeDefinition(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory phraseType)
public boolean addStartType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean addPrefixType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean addContinuationType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean addRequiredType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean addEndType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean removeStartType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean removePrefixType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean removeContinuationType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean removeRequiredType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public boolean removeEndType(org.apache.stanbol.enhancer.nlp.pos.LexicalCategory... types)
public org.apache.stanbol.enhancer.nlp.pos.LexicalCategory getPhraseType()
public Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> getStartType()
LexicalCategories
that can start a phrase of that typepublic Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> getPrefixType()
LexicalCategories
that can continue a phrase that does not yet include a token classified
with a required type. A typical Example are
LexicalCategory.Adjective in Noun Phrases that need to be
considered in prefixes (e.g. "A nice weekend") but excluded after the
first noun (e.g. "the trip last week").public Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> getContinuationType()
LexicalCategories
that can continue a phrase that does already include a token classified
with a required type. A typical Example are
LexicalCategory.Adjective in Noun Phrases that need to be
considered in prefixes (e.g. "A nice weekend") but excluded after the
first noun (e.g. "the trip last week").public Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> getRequiredType()
LexicalCategories
that MUST occur within a phrase of that typepublic Set<org.apache.stanbol.enhancer.nlp.pos.LexicalCategory> getEndType()
LexicalCategories
that can end a phrase of that typeCopyright © 2014 The Apache Software Foundation. All Rights Reserved.