rfdiaz / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

If no NGrams found, return no language or empty list instead of throwing an exception #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Detector with the language profiles bundled with this libray
2. call detector.append("")
3. call detector.getProbabilities()

What is the expected output? What do you see instead?
Should return an empty list, instead throws a LangDetectException("no features 
in text")

What version of the product are you using? On what operating system?
langdetect-1.1-20120112

Please provide any additional information below.

Original issue reported on code.google.com by jenne...@foursquare.com on 20 Sep 2012 at 5:23