mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Minimum 7 words for language detection
This commit is contained in:
@@ -60,7 +60,7 @@ import javax.xml.transform.stream.StreamResult;
|
||||
import javax.xml.transform.stream.StreamSource;
|
||||
|
||||
public class TextHelper {
|
||||
private static final int MIN_WORDS = 10;
|
||||
private static final int MIN_WORDS = 7;
|
||||
private static final int MAX_DETECT_SAMPLE_SIZE = 8192;
|
||||
private static final float MIN_DETECT_PROBABILITY = 0.80f;
|
||||
private static final String TRANSLITERATOR = "Any-Latin; Latin-ASCII";
|
||||
|
||||
Reference in New Issue
Block a user