As the FAQ of the library is stating:

Can langdetect handle short texts?

This library requires that a detection text has some length, almost 10-20 words over.

It may return a wrong language for very short text with 1-10 words.

You are trying it on one-word or two-word texts, this is not the use case this library is build for, so you're gonna have wrong results.

For single words without context, you can try to match them with dictionaries of the languages you are targetting.

Python3:语言探测工具langdetect和langid_小太阳~-CSDN博客_ ...

https://blog.csdn.net/quiet_girl/article/details/79653037

2018年3月22日 ... 一、写在前面本篇博客主要介绍两款语言探测工具langdetect和langid,用于 ... 篇 中文论文的题目,但是探测错误,所以个人觉得langdetect准确率不是很高。 ... 还 没来得及看代码,所以下述可能说的有不准确的地方,还望斧正。

Language Detection does not working as expected - Stack Overflow

https://stackoverflow.com/questions/19566633/language-detection-does-not-working-as-expected

As the FAQ of the library is stating: Can langdetect handle short texts? This library requires that a detection text has some length, almost 10-20 words over.

45个小众而实用的NLP开源字典和工具- 知乎

https://zhuanlan.zhihu.com/p/108458110

2020年2月22日 ... pip install langdetect. from langdetect import detectfrom langdetect import detect_langs s1 = "本 ... 跟上一个语言检测比较,准确率低,效率高。

fedelopez77/langdetect: A language detection software - GitHub

https://github.com/fedelopez77/langdetect

Oct 22, 2017 ... A language detection software. Contribute to fedelopez77/langdetect development by creating an account on GitHub.

Language detection not accurate for French text · Issue #79 ...

https://github.com/Mimino666/langdetect/issues/79

Oct 27, 2020 ... When I try using detect on French text, the language detection is way off. For example: bonjour -> 'hr' (croatian) je m'appelle -> 'sl' (slovenian)

语言检测工具language-detection - Bryan Wong - 博客园

https://www.cnblogs.com/makemelaugh/archive/2012/09/26/2704802.html

2012年9月26日 ... 一个是Apache Tika,一个是language-detectionlanguage-detection是google Code上开源的一个语言检测软件包,不折不扣的日货,但使用 ...

Python使用谷歌langdetect检测语言- 云+社区- 腾讯云

https://cloud.tencent.com/developer/article/1405132

2019年3月19日 ... 介绍一些Python str类的方法. 上面的代码正确的返回了'0.333333',但是当x = 1 / 2 时,由于小数只有一位, ...

Getting wrong answer byy langdetect.detect - Stack Overflow

https://stackoverflow.com/questions/53618279/getting-wrong-answer-byy-langdetect-detect

Language detection usually requires at least a longer sentence to do a decent job. One or two short words is probably not going to be enough.

Language Detection for twitter with 99.1% Accuracy – Shuyo's Weblog

https://shuyo.wordpress.com/2012/02/21/language-detection-for-twitter-with-99-1-accuracy/

Feb 21, 2012 ... It detects tweets in 17 languages with 99.1% accuracy (Czech, ... My language- detection (langdetect) is not good at short text detection, so that ...

Benchmarking Language Detection for NLP | by Jenny Lee ...

https://towardsdatascience.com/benchmarking-language-detection-for-nlp-8250ea8b67c

This is because langdetect's algorithm is non-deterministic, which means if you ... nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)doc ...

langdetect · PyPI

https://pypi.org/project/langdetect/

Language detection library ported from Google's language-detection. ... from langdetect import detect >>> detect("War doesn't show who's right, just who's left. ... Language detection algorithm is non-deterministic, which means that if you try to ...

How I trained a language detection AI in 20 minutes with a 97 ...

https://towardsdatascience.com/how-i-trained-a-language-detection-ai-in-20-minutes-with-a-97-accuracy-fdeca0fb7724

Apr 25, 2018 ... This story is a step-by-step guide to how I built a language detection model using machine learning (that ended up being 97% accurate) in under 20 minutes. ... Here is some not-great Go code I wrote in case you're interested, ...

spacy-langdetect · PyPI

https://pypi.org/project/spacy-langdetect/

Feb 12, 2019 ... Fully customizable language detection pipeline for spaCy. ... Suppose you are not happy with the accuracy of the out of the box language ...

Detecting Languages During Indexing | Apache Solr Reference ...

https://solr.apache.org/guide/6_6/detecting-languages-during-indexing.html

In general, the LangDetect implementation supports more languages with higher ... true. no. Enables and disables language detection. langid.fl. string. none. yes.

Language Detection — polyglot 16.07.04 documentation

http://polyglot.readthedocs.io/en/latest/Detection.html

WARNING:polyglot.detect.base:Detector is not able to detect the language reliably. Prediction is reliable: False Language 1: name: English code: en confidence: ...