Package opennlp.tools.sentdetect
Class SentenceDetectorFactory
- java.lang.Object
- 
- opennlp.tools.util.BaseToolFactory
- 
- opennlp.tools.sentdetect.SentenceDetectorFactory
 
 
- 
 public class SentenceDetectorFactory extends BaseToolFactory The factory that provides SentenceDetecor default implementations and resources
- 
- 
Constructor SummaryConstructors Constructor Description SentenceDetectorFactory()Creates aSentenceDetectorFactorythat provides the default implementation of the resources.SentenceDetectorFactory(String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters)Creates aSentenceDetectorFactory.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SentenceDetectorFactorycreate(String subclassName, String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters)Map<String,Object>createArtifactMap()Creates aMapwith pairs of keys and objects.Map<String,String>createManifestEntries()Creates the manifest entries that will be added to the model manifestDictionarygetAbbreviationDictionary()EndOfSentenceScannergetEndOfSentenceScanner()char[]getEOSCharacters()StringgetLanguageCode()SDContextGeneratorgetSDContextGenerator()booleanisUseTokenEnd()voidvalidateArtifactMap()Validates the parsed artifacts.- 
Methods inherited from class opennlp.tools.util.BaseToolFactorycreate, create, createArtifactSerializersMap
 
- 
 
- 
- 
- 
Constructor Detail- 
SentenceDetectorFactorypublic SentenceDetectorFactory() Creates aSentenceDetectorFactorythat provides the default implementation of the resources.
 - 
SentenceDetectorFactorypublic SentenceDetectorFactory(String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters) Creates aSentenceDetectorFactory. Use this constructor to programmatically create a factory.- Parameters:
- languageCode-
- abbreviationDictionary-
- eosCharacters-
 
 
- 
 - 
Method Detail- 
validateArtifactMappublic void validateArtifactMap() throws InvalidFormatExceptionDescription copied from class:BaseToolFactoryValidates the parsed artifacts. If something is not valid subclasses should throw anInvalidFormatException. Note: Subclasses should generally invoke super.validateArtifactMap at the beginning of this method.- Specified by:
- validateArtifactMapin class- BaseToolFactory
- Throws:
- InvalidFormatException
 
 - 
createArtifactMappublic Map<String,Object> createArtifactMap() Description copied from class:BaseToolFactoryCreates aMapwith pairs of keys and objects. The models implementation should call this constructor that creates a model programmatically.The base implementation will return a HashMapthat should be populated by sub-classes.- Overrides:
- createArtifactMapin class- BaseToolFactory
 
 - 
createManifestEntriespublic Map<String,String> createManifestEntries() Description copied from class:BaseToolFactoryCreates the manifest entries that will be added to the model manifest- Overrides:
- createManifestEntriesin class- BaseToolFactory
- Returns:
- the manifest entries to added to the model manifest
 
 - 
createpublic static SentenceDetectorFactory create(String subclassName, String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters) throws InvalidFormatException - Throws:
- InvalidFormatException
 
 - 
getEOSCharacterspublic char[] getEOSCharacters() 
 - 
isUseTokenEndpublic boolean isUseTokenEnd() 
 - 
getAbbreviationDictionarypublic Dictionary getAbbreviationDictionary() 
 - 
getLanguageCodepublic String getLanguageCode() 
 - 
getEndOfSentenceScannerpublic EndOfSentenceScanner getEndOfSentenceScanner() 
 - 
getSDContextGeneratorpublic SDContextGenerator getSDContextGenerator() 
 
- 
 
-