News for hackers. Stuff that matters.
Re:Show HN: My Leeds Hack Day project, a language detection API by lgeek on Sunday November 07, 2010 @03:57PM (#1880296)
Sorry, only supports English, German and French at the moment
Re:Show HN: My Leeds Hack Day project, a language detection API by zbanks on Sunday November 07, 2010 @04:02PM (#1880310)
"Je t'aime" is wrongly classified as English. (Although understandable, since it's short)

How does this work? You claim it has "zero language knowledge," so how does it classify? Did it start out with nothing, and then train it on a corpus?

EDIT: nevermind, found your slides (http://polyglossy.com/presentation.pdf [pdf]) How big of a corpus did you use?

Re:Show HN: My Leeds Hack Day project, a language detection API by lgeek on Sunday November 07, 2010 @04:13PM (#1880335)
I've used around 40KB of text per language for training.
Re:Show HN: My Leeds Hack Day project, a language detection API by catch23 on Sunday November 07, 2010 @05:02PM (#1880454)
wouldn't something like 2-gram bayes be more accurate & faster?
Re:Show HN: My Leeds Hack Day project, a language detection API by lgeek on Sunday November 07, 2010 @05:31PM (#1880546)
I don't know. I haven't really done NLP before. My guess is that it would be slower, but not by a significant amount. It might be more accurate, so I could give it a shot.
Re:Show HN: My Leeds Hack Day project, a language detection API by catch23 on Monday November 08, 2010 @02:44PM (#1883688)
I don't think 2-gram bayes uses any NLP at all. To my understanding, it's just like naive bayes, but can use word combinations to improve accuracy. In terms of complexity, bayes classification is not much more than O(N).
Re:Show HN: My Leeds Hack Day project, a language detection API by zbanks on Sunday November 07, 2010 @06:50PM (#1880763)
Any chance of posting the source?
Re:Show HN: My Leeds Hack Day project, a language detection API by lgeek on Monday November 08, 2010 @08:29AM (#1882385)
Yeah, I'll probably push it to github later this week.
Re:Show HN: My Leeds Hack Day project, a language detection API by lgeek on Tuesday November 16, 2010 @06:33PM (#1912209)
...and here it is: https://github.com/lgeek/polyglossy (with a slight delay because I've worked on improving the accuracy)