public float getRawScore() {
        return (float) (1 - distance);
    }
1 - vector distance between the language model and the content

@return
tika-langdetect/tika-langdetect-tika/src/main/java/org/apache/tika/langdetect/tika/LanguageIdentifier.java