public class SentenceDetectorFactory extends BaseToolFactory
| Constructor and Description | 
|---|
| SentenceDetectorFactory()Creates a  SentenceDetectorFactorythat provides the default
 implementation of the resources. | 
| SentenceDetectorFactory(String languageCode,
                       boolean useTokenEnd,
                       Dictionary abbreviationDictionary,
                       char[] eosCharacters)Creates a  SentenceDetectorFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| static SentenceDetectorFactory | create(String subclassName,
      String languageCode,
      boolean useTokenEnd,
      Dictionary abbreviationDictionary,
      char[] eosCharacters) | 
| Map<String,Object> | createArtifactMap()Creates a  Mapwith 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. | 
create, create, createArtifactSerializersMappublic 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 - public void validateArtifactMap()
                         throws InvalidFormatException
BaseToolFactoryInvalidFormatException.
 Note:
 Subclasses should generally invoke super.validateArtifactMap at the beginning
 of this method.validateArtifactMap in class BaseToolFactoryInvalidFormatExceptionpublic Map<String,Object> createArtifactMap()
BaseToolFactoryMap 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 BaseToolFactorypublic Map<String,String> createManifestEntries()
BaseToolFactorycreateManifestEntries in class BaseToolFactorypublic static SentenceDetectorFactory create(String subclassName, String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters) throws InvalidFormatException
InvalidFormatExceptionpublic char[] getEOSCharacters()
public boolean isUseTokenEnd()
public Dictionary getAbbreviationDictionary()
public String getLanguageCode()
public EndOfSentenceScanner getEndOfSentenceScanner()
public SDContextGenerator getSDContextGenerator()
Copyright © 2018 The Apache Software Foundation. All rights reserved.