public static class VocabularyHolder.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
VocabularyHolder |
build() |
VocabularyHolder.Builder |
externalCache(VocabCache cache) |
VocabularyHolder.Builder |
hugeModelExpected(boolean reallyExpected)
With this argument set to true, you'll have your vocab scanned for low-freq words periodically.
|
VocabularyHolder.Builder |
minWordFrequency(int threshold) |
VocabularyHolder.Builder |
scavengerActivationThreshold(int threshold)
Activation threshold defines, how ofter scavenger will be executed, to throw away low-frequency keywords.
|
VocabularyHolder.Builder |
scavengerRetentionDelay(int delay)
Retention delay defines, how long low-freq word will be kept in vocab, during building.
|
public VocabularyHolder.Builder externalCache(@NonNull VocabCache cache)
public VocabularyHolder.Builder minWordFrequency(int threshold)
public VocabularyHolder.Builder hugeModelExpected(boolean reallyExpected)
reallyExpected - public VocabularyHolder.Builder scavengerActivationThreshold(int threshold)
threshold - public VocabularyHolder.Builder scavengerRetentionDelay(int delay)
delay - public VocabularyHolder build()