public class Lemmatizer extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_LEMMATIZE_NORMALIZED_ANNOTATIONS |
static boolean |
DEFAULT_QUERY_MODE |
static boolean |
DEFAULT_UNIQ_ANNOTATION |
java.lang.String |
language |
boolean |
lemmatizeNormalizedAnnotations
Deprecated.
|
boolean |
queryMode
Deprecated.
|
java.lang.String |
resourceDir |
boolean |
uniqAnnotation |
contexts, name, src
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://)
Overrides the standard resource path for the specified language. If the language is not specified, the standard resources for all languages are used. |
boolean |
isLemmatizeNormalizedAnnotations()
Deprecated.
|
boolean |
isQueryMode()
Deprecated.
|
boolean |
isUniqAnnotation()
Use unique CSV-encoded annotations.
|
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)
Deprecated.
|
void |
setQueryMode(boolean queryMode)
Deprecated.
|
void |
setResourceDir(java.lang.String resourceDir)
URL for the resource (data://, file;// or resource://)
Overrides the standard resource path for the specified language. If the language is not specified, the standard resources for all languages are used. |
void |
setUniqAnnotation(boolean uniqAnnotation)
Use unique CSV-encoded annotations.
|
java.lang.String |
toString()
String representation of this Lemmatizer.
|
Lemmatizer |
withContexts(java.lang.String contexts) |
Lemmatizer |
withLanguage(java.lang.String language) |
Lemmatizer |
withLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations)
Deprecated.
|
Lemmatizer |
withLemmatizeNormalizedAnnotations(java.lang.Boolean lemmatizeNormalizedAnnotations)
Deprecated.
|
Lemmatizer |
withName(java.lang.String name) |
Lemmatizer |
withQueryMode(boolean queryMode)
Deprecated.
|
Lemmatizer |
withQueryMode(java.lang.Boolean queryMode)
Deprecated.
|
Lemmatizer |
withResourceDir(java.lang.String resourceDir) |
Lemmatizer |
withSrc(java.lang.String src)
Deprecated.
|
Lemmatizer |
withUniqAnnotation(boolean uniqAnnotation) |
Lemmatizer |
withUniqAnnotation(java.lang.Boolean uniqAnnotation) |
void |
writeTo(java.io.OutputStream os)
Write this Lemmatizer as an XML fragment
|
getContexts, getName, getSrc, setContexts, setName, setSrc
public java.lang.String resourceDir
public java.lang.String language
@Deprecated public boolean lemmatizeNormalizedAnnotations
public static final boolean DEFAULT_LEMMATIZE_NORMALIZED_ANNOTATIONS
public boolean uniqAnnotation
public static final boolean DEFAULT_UNIQ_ANNOTATION
@Deprecated public boolean queryMode
public static final boolean DEFAULT_QUERY_MODE
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
@Deprecated public Lemmatizer withSrc(java.lang.String src)
withSrc
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)
@Deprecated public void setLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations)
@Deprecated public boolean isLemmatizeNormalizedAnnotations()
@Deprecated public Lemmatizer withLemmatizeNormalizedAnnotations(boolean lemmatizeNormalizedAnnotations)
@Deprecated public Lemmatizer withLemmatizeNormalizedAnnotations(java.lang.Boolean lemmatizeNormalizedAnnotations)
public void setUniqAnnotation(boolean uniqAnnotation)
public boolean isUniqAnnotation()
public Lemmatizer withUniqAnnotation(boolean uniqAnnotation)
public Lemmatizer withUniqAnnotation(java.lang.Boolean uniqAnnotation)
@Deprecated public void setQueryMode(boolean queryMode)
@Deprecated public boolean isQueryMode()
@Deprecated public Lemmatizer withQueryMode(boolean queryMode)
@Deprecated public Lemmatizer withQueryMode(java.lang.Boolean queryMode)
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 © 2013 Dassault Systèmes, All Rights Reserved.