public class Lemmatizer extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.FromDataModel, SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_LEMMATIZE_NORMALIZED_ANNOTATIONS |
java.lang.String |
language |
boolean |
lemmatizeNormalizedAnnotations |
java.lang.String |
resourceDir |
contexts, dataModelClass, dataModelProperty, dataModelState, DEFAULT_DISABLED, disabled, fromDataModel, name
Constructor and Description |
---|
Lemmatizer() |
Lemmatizer(Lemmatizer o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Lemmatizer.
|
static Lemmatizer |
fromString(java.lang.String s)
String representation of this Lemmatizer.
|
java.lang.String |
getLanguage()
Languages for which the processor is activated;
if no language is specified, the processor is activated for all languages. |
java.lang.String |
getResourceDir()
URL for the resource (data://, file;// or resource://).
|
boolean |
isLemmatizeNormalizedAnnotations() |
Lemmatizer |
makeCopy()
Creates and returns a deep copy of this Lemmatizer.
|
static Lemmatizer |
readFrom(java.io.InputStream is)
Read this Lemmatizer from an XML fragment.
|
void |
setLanguage(java.lang.String language)
Languages for which the processor is activated;
if no language is specified, the processor is activated for all languages. |
void |
setLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations) |
void |
setResourceDir(java.lang.String resourceDir)
URL for the resource (data://, file;// or resource://).
|
java.lang.String |
toString()
String representation of this Lemmatizer.
|
Lemmatizer |
withContexts(java.lang.String contexts) |
Lemmatizer |
withDataModelClass(java.lang.String dataModelClass) |
Lemmatizer |
withDataModelProperty(java.lang.String dataModelProperty) |
Lemmatizer |
withDataModelState(java.lang.String dataModelState) |
Lemmatizer |
withDisabled(boolean disabled) |
Lemmatizer |
withDisabled(java.lang.Boolean disabled) |
Lemmatizer |
withFromDataModel(SemanticProcessor fromDataModel) |
Lemmatizer |
withLanguage(java.lang.String language) |
Lemmatizer |
withLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations) |
Lemmatizer |
withLemmatizeNormalizedAnnotations(java.lang.Boolean lemmatizeNormalizedAnnotations) |
Lemmatizer |
withName(java.lang.String name) |
Lemmatizer |
withResourceDir(java.lang.String resourceDir) |
void |
writeTo(java.io.OutputStream os)
Write this Lemmatizer as an XML fragment
|
getContexts, getDataModelClass, getDataModelProperty, getDataModelState, getFromDataModel, getName, isDisabled, setContexts, setDataModelClass, setDataModelProperty, setDataModelState, setDisabled, setFromDataModel, setName
public java.lang.String resourceDir
public java.lang.String language
public boolean lemmatizeNormalizedAnnotations
public static final boolean DEFAULT_LEMMATIZE_NORMALIZED_ANNOTATIONS
public Lemmatizer()
public Lemmatizer(Lemmatizer o)
public Lemmatizer withName(java.lang.String name)
withName
in class SemanticProcessor
public Lemmatizer withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
public Lemmatizer withFromDataModel(SemanticProcessor fromDataModel)
public Lemmatizer withDataModelState(java.lang.String dataModelState)
withDataModelState
in class SemanticProcessor
public Lemmatizer withDataModelClass(java.lang.String dataModelClass)
withDataModelClass
in class SemanticProcessor
public Lemmatizer withDataModelProperty(java.lang.String dataModelProperty)
withDataModelProperty
in class SemanticProcessor
public Lemmatizer withDisabled(boolean disabled)
withDisabled
in class SemanticProcessor
public Lemmatizer withDisabled(java.lang.Boolean disabled)
withDisabled
in class SemanticProcessor
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public Lemmatizer withResourceDir(java.lang.String resourceDir)
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public Lemmatizer withLanguage(java.lang.String language)
public void setLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations)
public boolean isLemmatizeNormalizedAnnotations()
public Lemmatizer withLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations)
public Lemmatizer withLemmatizeNormalizedAnnotations(java.lang.Boolean lemmatizeNormalizedAnnotations)
public Lemmatizer makeCopy()
makeCopy
in class SemanticProcessor
public static Lemmatizer readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static Lemmatizer fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.