Package opennlp.tools.langdetect
Klasse LanguageDetectorConfig
java.lang.Object
opennlp.tools.langdetect.LanguageDetectorConfig
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final LanguageDetectorConfigstatic final intstatic final intstatic final double -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintAfter processing a chunk of this size, the probing detection will compute probabilities and determine if there is enough confidence to stop.intintIf this value equals0, probing detection will rely solely ongetMinDiff()doubleIf this value equals0, probing detection will rely solely ongetMinConsecImprovements()voidsetChunkSize(int chunkSize) voidsetMaxLength(int maxLength) voidsetMinConsecImprovements(int minConsecImprovements) voidsetMinDiff(double minDiff)
-
Felddetails
-
DEFAULT_MAX_LENGTH
public static final int DEFAULT_MAX_LENGTH- Siehe auch:
-
DEFAULT_CHUNK_SIZE
public static final int DEFAULT_CHUNK_SIZE- Siehe auch:
-
DEFAULT_MIN_CONSEC_IMPROVEMENTS
public static final int DEFAULT_MIN_CONSEC_IMPROVEMENTS- Siehe auch:
-
DEFAULT_MIN_DIFF
public static final double DEFAULT_MIN_DIFF- Siehe auch:
-
DEFAULT_LANGUAGE_DETECTOR_CONFIG
-
-
Konstruktordetails
-
LanguageDetectorConfig
public LanguageDetectorConfig()
-
-
Methodendetails
-
getMaxLength
public int getMaxLength()- Gibt zurück:
- The maximum length in codepoints of text to process.
-
setMaxLength
public void setMaxLength(int maxLength) -
getChunkSize
public int getChunkSize()After processing a chunk of this size, the probing detection will compute probabilities and determine if there is enough confidence to stop.- Gibt zurück:
- The size in codepoints of chunk to process at each step for the probing detection.
-
setChunkSize
public void setChunkSize(int chunkSize) -
getMinConsecImprovements
public int getMinConsecImprovements()If this value equals0, probing detection will rely solely ongetMinDiff()- Gibt zurück:
- The minimum number of consecutive increased probabilities for the top language required in probing detection to stop early.
-
setMinConsecImprovements
public void setMinConsecImprovements(int minConsecImprovements) -
getMinDiff
public double getMinDiff()If this value equals0, probing detection will rely solely ongetMinConsecImprovements()- Gibt zurück:
- The minimum difference in confidence between the top predicted language and the next most likely language.
-
setMinDiff
public void setMinDiff(double minDiff)
-