Mimino666 / langdetect

Port of Google's language-detection library to Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very inaccurate prediction in some cases

gormat opened this issue · comments

text = "所有厨房间转账、酒吧间转账、腐败报告、官员检查、娱乐、全瓶销售、宴会食品和饮料消费报告、迷你吧台控制表、蛋糕店控制表、直接厨房采购的费用和记录。\n10.\tCost standard recipes of food and beverage and update the cost whenever there is a price change of a major food ingredient.\n10.食品和饮料的标准配方的成本,并且每当主要食品成分的价格变化时更新成本。\n11.\tPrepare report on butchering test and file.\n11.准备屠宰检验报告并归档。\n12.\tCheck audit trial and up-date the file; then have a final check on the output before recording.\n12. ..."

langdetect.detect_langs(text)
# [en:0.999995326178482]

In cases when two languages exists on document, the function gives wrong result.