public class ToAsciiApi
extends java.lang.Object
History:
| Constructor and Description |
|---|
ToAsciiApi()
Creates a ToAsciiApi object and initiate related data (default).
|
ToAsciiApi(Configuration conf)
Creates a ToAsciiApi object and initiate related data using a specified
configuration file.
|
ToAsciiApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates a ToAsciiApi object and initiate related data with properties
needs to be overwritten
|
ToAsciiApi(java.lang.String configFile)
Creates a ToAsciiApi object and initiate related data using a specified
configuration file.
|
ToAsciiApi(java.lang.String configFile,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
Creates a ToAsciiApi object and initiate related data using a specified
configuration file with properties to be wverwritten.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
GetConfiguration()
A method to get the configuration object
|
LexItem |
Mutate(LexItem in)
A method to get the ASCII strings of an input LexItem
|
LexItem |
Mutate(LexItem in,
boolean showDetails)
A method to get the normalized strings of an input string along with
details information of norm operations
|
java.lang.String |
Mutate(java.lang.String inTerm)
A method to get the ASCII strings of an input string
|
public ToAsciiApi()
public ToAsciiApi(java.lang.String configFile)
configFile - the absolute path of the configuration filepublic ToAsciiApi(Configuration conf)
conf - lvg configuration objectpublic ToAsciiApi(java.util.Hashtable<java.lang.String,java.lang.String> properties)
properties - properties to be overwritten in configpublic ToAsciiApi(java.lang.String configFile,
java.util.Hashtable<java.lang.String,java.lang.String> properties)
configFile - the absolute path of the configuration fileproperties - properties to be overwritten in configpublic java.lang.String Mutate(java.lang.String inTerm)
inTerm - an input term in a string format to be mutatedpublic LexItem Mutate(LexItem in)
in - an input LexItem to be mutatedpublic LexItem Mutate(LexItem in, boolean showDetails)
in - an input LexItem to be mutatedshowDetails - a boolean flag of showing detailspublic Configuration GetConfiguration()