|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.util.BaseToolFactory
opennlp.tools.sentdetect.SentenceDetectorFactory
public class SentenceDetectorFactory
The factory that provides SentenceDetecor default implementations and resources
Constructor Summary | |
---|---|
SentenceDetectorFactory()
Creates a SentenceDetectorFactory that provides the default
implementation of the resources. |
|
SentenceDetectorFactory(String languageCode,
boolean useTokenEnd,
Dictionary abbreviationDictionary,
char[] eosCharacters)
Creates a SentenceDetectorFactory . |
Method Summary | |
---|---|
static SentenceDetectorFactory |
create(String subclassName,
String languageCode,
boolean useTokenEnd,
Dictionary abbreviationDictionary,
char[] eosCharacters)
|
Map<String,Object> |
createArtifactMap()
Creates a Map with pairs of keys and objects. |
Map<String,String> |
createManifestEntries()
Creates the manifest entries that will be added to the model manifest |
Dictionary |
getAbbreviationDictionary()
|
EndOfSentenceScanner |
getEndOfSentenceScanner()
|
char[] |
getEOSCharacters()
|
String |
getLanguageCode()
|
SDContextGenerator |
getSDContextGenerator()
|
boolean |
isUseTokenEnd()
|
void |
validateArtifactMap()
Validates the parsed artifacts. |
Methods inherited from class opennlp.tools.util.BaseToolFactory |
---|
create, create, createArtifactSerializersMap |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SentenceDetectorFactory()
SentenceDetectorFactory
that provides the default
implementation of the resources.
public SentenceDetectorFactory(String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters)
SentenceDetectorFactory
. Use this constructor to
programmatically create a factory.
languageCode
- abbreviationDictionary
- eosCharacters
- Method Detail |
---|
public void validateArtifactMap() throws InvalidFormatException
BaseToolFactory
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.
validateArtifactMap
in class BaseToolFactory
InvalidFormatException
public Map<String,Object> createArtifactMap()
BaseToolFactory
Map
with pairs of keys and objects. The models
implementation should call this constructor that creates a model
programmatically.
The base implementation will return a HashMap
that should be
populated by sub-classes.
createArtifactMap
in class BaseToolFactory
public Map<String,String> createManifestEntries()
BaseToolFactory
createManifestEntries
in class BaseToolFactory
public static SentenceDetectorFactory create(String subclassName, String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters) throws InvalidFormatException
InvalidFormatException
public char[] getEOSCharacters()
public boolean isUseTokenEnd()
public Dictionary getAbbreviationDictionary()
public String getLanguageCode()
public EndOfSentenceScanner getEndOfSentenceScanner()
public SDContextGenerator getSDContextGenerator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |