public class LemmatizationModule extends QueryExpansionModule implements com.exalead.util.Checkable, java.io.Serializable
QueryExpansionModule.Transformer<T>, QueryExpansionModule.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
language |
java.lang.String |
resourceDir |
name
Constructor and Description |
---|
LemmatizationModule() |
LemmatizationModule(LemmatizationModule o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(QueryExpansionModule.Transformer<T> transformer,
T[] t) |
void |
accept(QueryExpansionModule.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this LemmatizationModule.
|
static LemmatizationModule |
fromString(java.lang.String s)
String representation of this LemmatizationModule.
|
java.lang.String |
getLanguage()
Language in which the lemmatization should be enabled.
If null, all languages are enabled. |
java.lang.String |
getResourceDir()
Optional resource dir, default value is resource:///lemmatizer/LANGUAGE
|
LemmatizationModule |
makeCopy()
Creates and returns a deep copy of this LemmatizationModule.
|
static LemmatizationModule |
readFrom(java.io.InputStream is)
Read this LemmatizationModule from an XML fragment.
|
void |
setLanguage(java.lang.String language)
Language in which the lemmatization should be enabled.
If null, all languages are enabled. |
void |
setResourceDir(java.lang.String resourceDir)
Optional resource dir, default value is resource:///lemmatizer/LANGUAGE
|
java.lang.String |
toString()
String representation of this LemmatizationModule.
|
LemmatizationModule |
withLanguage(java.lang.String language) |
LemmatizationModule |
withName(java.lang.String name) |
LemmatizationModule |
withResourceDir(java.lang.String resourceDir) |
void |
writeTo(java.io.OutputStream os)
Write this LemmatizationModule as an XML fragment
|
getName, setName
public java.lang.String language
public java.lang.String resourceDir
public LemmatizationModule()
public LemmatizationModule(LemmatizationModule o)
public LemmatizationModule withName(java.lang.String name)
withName
in class QueryExpansionModule
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public LemmatizationModule withLanguage(java.lang.String language)
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public LemmatizationModule withResourceDir(java.lang.String resourceDir)
public LemmatizationModule makeCopy()
makeCopy
in class QueryExpansionModule
public static LemmatizationModule 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 QueryExpansionModule
javax.xml.bind.JAXBException
java.io.IOException
public static LemmatizationModule 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 QueryExpansionModule
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class QueryExpansionModule
com.exalead.util.TypedException
public void accept(QueryExpansionModule.Visitor visitor) throws com.exalead.util.TypedException
accept
in class QueryExpansionModule
com.exalead.util.TypedException
public <T> T accept(QueryExpansionModule.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class QueryExpansionModule
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.