public class JapaneseWordFinder extends TokenizerPlugin implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
addCharset |
boolean |
addNGrams |
boolean |
addPartOfSpeech |
boolean |
addRomaji |
boolean |
addTransliterations |
static boolean |
DEFAULT_ADD_CHARSET |
static boolean |
DEFAULT_ADD_N_GRAMS |
static boolean |
DEFAULT_ADD_PART_OF_SPEECH |
static boolean |
DEFAULT_ADD_ROMAJI |
static boolean |
DEFAULT_ADD_TRANSLITERATIONS |
static int |
DEFAULT_MAX_N_GRAM_LENGTH |
static int |
DEFAULT_MIN_N_GRAM_LENGTH |
static boolean |
DEFAULT_PROCESS_ROMAJI |
int |
maxNGramLength |
int |
minNGramLength |
boolean |
processRomaji |
java.lang.String |
resourceDir |
Constructor and Description |
---|
JapaneseWordFinder() |
JapaneseWordFinder(JapaneseWordFinder o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this JapaneseWordFinder.
|
static JapaneseWordFinder |
fromString(java.lang.String s)
String representation of this JapaneseWordFinder.
|
int |
getMaxNGramLength()
Maximum length of NGrams (1: monograms, 2: bigrams...)
|
int |
getMinNGramLength()
Minimum length of NGrams (1: monograms, 2: bigrams...)
|
java.lang.String |
getResourceDir()
URL for the resource (data://, file;// or resource://)
if null, use standard resource of product. |
boolean |
isAddCharset()
Annotates with charset
|
boolean |
isAddNGrams()
Annotates with NGrams
|
boolean |
isAddPartOfSpeech()
Annotates with part of speech.
|
boolean |
isAddRomaji()
Annotates each token with its romaji transliteration, when applicable.
|
boolean |
isAddTransliterations()
Annotates with transliterations (kanji, katakana, hiragana, romaji).
|
boolean |
isProcessRomaji()
Processes romaji tokens
|
JapaneseWordFinder |
makeCopy()
Creates and returns a deep copy of this JapaneseWordFinder.
|
static JapaneseWordFinder |
readFrom(java.io.InputStream is)
Read this JapaneseWordFinder from an XML fragment.
|
void |
setAddCharset(boolean addCharset)
Annotates with charset
|
void |
setAddNGrams(boolean addNGrams)
Annotates with NGrams
|
void |
setAddPartOfSpeech(boolean addPartOfSpeech)
Annotates with part of speech.
|
void |
setAddRomaji(boolean addRomaji)
Annotates each token with its romaji transliteration, when applicable.
|
void |
setAddTransliterations(boolean addTransliterations)
Annotates with transliterations (kanji, katakana, hiragana, romaji).
|
void |
setMaxNGramLength(int maxNGramLength)
Maximum length of NGrams (1: monograms, 2: bigrams...)
|
void |
setMinNGramLength(int minNGramLength)
Minimum length of NGrams (1: monograms, 2: bigrams...)
|
void |
setProcessRomaji(boolean processRomaji)
Processes romaji tokens
|
void |
setResourceDir(java.lang.String resourceDir)
URL for the resource (data://, file;// or resource://)
if null, use standard resource of product. |
java.lang.String |
toString()
String representation of this JapaneseWordFinder.
|
JapaneseWordFinder |
withAddCharset(boolean addCharset) |
JapaneseWordFinder |
withAddCharset(java.lang.Boolean addCharset) |
JapaneseWordFinder |
withAddNGrams(boolean addNGrams) |
JapaneseWordFinder |
withAddNGrams(java.lang.Boolean addNGrams) |
JapaneseWordFinder |
withAddPartOfSpeech(boolean addPartOfSpeech) |
JapaneseWordFinder |
withAddPartOfSpeech(java.lang.Boolean addPartOfSpeech) |
JapaneseWordFinder |
withAddRomaji(boolean addRomaji) |
JapaneseWordFinder |
withAddRomaji(java.lang.Boolean addRomaji) |
JapaneseWordFinder |
withAddTransliterations(boolean addTransliterations) |
JapaneseWordFinder |
withAddTransliterations(java.lang.Boolean addTransliterations) |
JapaneseWordFinder |
withMaxNGramLength(int maxNGramLength) |
JapaneseWordFinder |
withMaxNGramLength(java.lang.Integer maxNGramLength) |
JapaneseWordFinder |
withMinNGramLength(int minNGramLength) |
JapaneseWordFinder |
withMinNGramLength(java.lang.Integer minNGramLength) |
JapaneseWordFinder |
withProcessRomaji(boolean processRomaji) |
JapaneseWordFinder |
withProcessRomaji(java.lang.Boolean processRomaji) |
JapaneseWordFinder |
withResourceDir(java.lang.String resourceDir) |
void |
writeTo(java.io.OutputStream os)
Write this JapaneseWordFinder as an XML fragment
|
public java.lang.String resourceDir
public boolean processRomaji
public static final boolean DEFAULT_PROCESS_ROMAJI
public boolean addRomaji
public static final boolean DEFAULT_ADD_ROMAJI
public boolean addCharset
public static final boolean DEFAULT_ADD_CHARSET
public boolean addNGrams
public static final boolean DEFAULT_ADD_N_GRAMS
public int minNGramLength
public static final int DEFAULT_MIN_N_GRAM_LENGTH
public int maxNGramLength
public static final int DEFAULT_MAX_N_GRAM_LENGTH
public boolean addTransliterations
public static final boolean DEFAULT_ADD_TRANSLITERATIONS
public boolean addPartOfSpeech
public static final boolean DEFAULT_ADD_PART_OF_SPEECH
public JapaneseWordFinder()
public JapaneseWordFinder(JapaneseWordFinder o)
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public JapaneseWordFinder withResourceDir(java.lang.String resourceDir)
public void setProcessRomaji(boolean processRomaji)
public boolean isProcessRomaji()
public JapaneseWordFinder withProcessRomaji(boolean processRomaji)
public JapaneseWordFinder withProcessRomaji(java.lang.Boolean processRomaji)
public void setAddRomaji(boolean addRomaji)
public boolean isAddRomaji()
public JapaneseWordFinder withAddRomaji(boolean addRomaji)
public JapaneseWordFinder withAddRomaji(java.lang.Boolean addRomaji)
public void setAddCharset(boolean addCharset)
public boolean isAddCharset()
public JapaneseWordFinder withAddCharset(boolean addCharset)
public JapaneseWordFinder withAddCharset(java.lang.Boolean addCharset)
public void setAddNGrams(boolean addNGrams)
public boolean isAddNGrams()
public JapaneseWordFinder withAddNGrams(boolean addNGrams)
public JapaneseWordFinder withAddNGrams(java.lang.Boolean addNGrams)
public void setMinNGramLength(int minNGramLength)
public int getMinNGramLength()
public JapaneseWordFinder withMinNGramLength(int minNGramLength)
public JapaneseWordFinder withMinNGramLength(java.lang.Integer minNGramLength)
public void setMaxNGramLength(int maxNGramLength)
public int getMaxNGramLength()
public JapaneseWordFinder withMaxNGramLength(int maxNGramLength)
public JapaneseWordFinder withMaxNGramLength(java.lang.Integer maxNGramLength)
public void setAddTransliterations(boolean addTransliterations)
public boolean isAddTransliterations()
public JapaneseWordFinder withAddTransliterations(boolean addTransliterations)
public JapaneseWordFinder withAddTransliterations(java.lang.Boolean addTransliterations)
public void setAddPartOfSpeech(boolean addPartOfSpeech)
public boolean isAddPartOfSpeech()
public JapaneseWordFinder withAddPartOfSpeech(boolean addPartOfSpeech)
public JapaneseWordFinder withAddPartOfSpeech(java.lang.Boolean addPartOfSpeech)
public JapaneseWordFinder makeCopy()
makeCopy
in class TokenizerPlugin
public static JapaneseWordFinder 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 TokenizerPlugin
javax.xml.bind.JAXBException
java.io.IOException
public static JapaneseWordFinder 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 TokenizerPlugin
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class TokenizerPlugin
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.