public class LanguageDetectorFactory extends BaseToolFactory
LanguageDetectorContextGenerator
.
The default DefaultLanguageDetectorContextGenerator
will use char n-grams of
size 1 to 3 and the following normalizers:
Constructor and Description |
---|
LanguageDetectorFactory() |
Modifier and Type | Method and Description |
---|---|
static LanguageDetectorFactory |
create(String subclassName) |
LanguageDetectorContextGenerator |
getContextGenerator() |
void |
init() |
void |
validateArtifactMap()
Validates the parsed artifacts.
|
create, create, createArtifactMap, createArtifactSerializersMap, createManifestEntries
public LanguageDetectorContextGenerator getContextGenerator()
public static LanguageDetectorFactory create(String subclassName) throws InvalidFormatException
InvalidFormatException
public void init()
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
Copyright © 2021 The Apache Software Foundation. All rights reserved.