public final class EntitiesOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static EntitiesOptions |
DEFAULT_OPTIONS |
| Constructor and Description |
|---|
EntitiesOptions()
Create a set of entity extraction options with default values.
|
EntitiesOptions(Boolean resolveNamedEntities,
Integer maxEntityTokens,
EnumSet<ExtractionMethod> extractionMethods,
Boolean allowPartialGazetteerMatches,
Boolean redactorPreferLength)
Constructor for
EntitiesOptions |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
if the param is a
EntitiesOptions, compare contents for equality |
Boolean |
getAllowPartialGazetteerMatches()
get whether to allow partial gazetteer matches
|
EnumSet<ExtractionMethod> |
getExtractionMethods()
get the set of active extraction methods
|
Integer |
getMaxEntityTokens()
get the max number of tokens allowed in an entity
|
Boolean |
getRedactorPreferLength()
get whether to prefer length over weights for redaction
|
Boolean |
getResolveNamedEntities()
get the resolve in-document named entities
|
int |
hashCode() |
void |
setAllowPartialGazetteerMatches(Boolean allowPartialGazetteerMatches)
set whether to allow partial gazetteer matches
|
void |
setExtractionMethods(EnumSet<ExtractionMethod> extractionMethods)
set the set of active extraction methods
|
void |
setMaxEntityTokens(Integer maxEntityTokens)
set the max number of tokens allowed in an entity
|
void |
setRedactorPreferLength(Boolean redactorPreferLength)
set whether to prefer length over weights for redaction
|
void |
setResolveNamedEntities(Boolean resolveNamedEntities)
set the resolve in-document named entities
|
public static final EntitiesOptions DEFAULT_OPTIONS
public EntitiesOptions()
null is used to represent defaults.public EntitiesOptions(Boolean resolveNamedEntities, Integer maxEntityTokens, EnumSet<ExtractionMethod> extractionMethods, Boolean allowPartialGazetteerMatches, Boolean redactorPreferLength)
EntitiesOptionsresolveNamedEntities - resolve in-document named entitiesmaxEntityTokens - max number of tokens allowed in an entityextractionMethods - get the set of active extraction methodsallowPartialGazetteerMatches - whether to allow partial gazetteer matchesredactorPreferLength - whether to prefer length over weights for redactionpublic Boolean getResolveNamedEntities()
public Integer getMaxEntityTokens()
public EnumSet<ExtractionMethod> getExtractionMethods()
public Boolean getAllowPartialGazetteerMatches()
public Boolean getRedactorPreferLength()
public void setResolveNamedEntities(Boolean resolveNamedEntities)
resolveNamedEntities - the resolve in-document named entitiespublic void setMaxEntityTokens(Integer maxEntityTokens)
maxEntityTokens - the max number of tokens allowed in an entitypublic void setExtractionMethods(EnumSet<ExtractionMethod> extractionMethods)
extractionMethods - the set of active extraction methodspublic void setAllowPartialGazetteerMatches(Boolean allowPartialGazetteerMatches)
allowPartialGazetteerMatches - whether to allow partial gazetteer matchespublic void setRedactorPreferLength(Boolean redactorPreferLength)
redactorPreferLength - whether to prefer length over weights for redactionCopyright © 2014–2016 Basis Technology Corp.. All rights reserved.