Live data from Hacker News

Knwl.js – A JavaScript NLP

loadfive.com

21–30 of 38 posts

Re: Knwl.js – A JavaScript NLP

#22
post #2

This is going to look like "oh typical HN shooting things down", but: Parses 13/4/2012 as: year: 2012 month: 13 day: 4

Yeah seems obvious, but I don't think it really makes sense to guess that it's a UK format date based on whether one of the numbers is bigger than 12. 4/5/2012 could be 4th May or 5th April and it would be impossible to tell programmatically. People really need to start using yyyy/mm/dd :-)

I live in Switzerland; I speak English (and a very slowly increasing amount of German). Switzerland uses DD.MM.YYYY almost exclusively (yes, with dots).

I was filling in a web form using Google Translate. It took me several phone calls and about two weeks to sort out the problems caused when Translate back-converted some (but not all) of the dates that I'd entered into the form from DD.MM.YYYY to MM.DD.YYYY before submitting.

/self rage

Re: Knwl.js – A JavaScript NLP

#23
post #21

This is not NLP. The code just finds words in list of pre-defined words. It ignores the context of the sentence or perform any "real" NLP analyzing.

You are correct, it is not NLP. But I wouldn't downplay the potential of this javascript library.

I have hundreds of digital documents that need to be sorted and archived. I am able to extract a document's text via OCR, but now have to find a way to sort/file them based off certain keywords present within the document (date, time, place, etc).

I think Knwl.js will be a perfect fit for this. So far I have only spent a couple of minutes looking through the demo and GitHub repository, but it looks like with this library I will be able to write an extension that can help detect restaurants and stores I frequently visit (which will further help me sort all those pesky paper receipts).

I will definitely start playing around with Knwl.js once I get home. Good job!

Re: Knwl.js – A JavaScript NLP

#24
It is faster than some of the others I've tried. Good thing is, since it is built to be basic and domain specific, the core should be kept as simple as it is, and allow extensions to be built on top.

There are mess ups around sanity checks, but looking at their source it's actually trivial to fix. Forking it, I hope they accept community pull requests.

Re: Knwl.js – A JavaScript NLP

#26
knwl.english.adverbs = [ 'red', 'blue', 'green', 'orange', 'black', 'white', 'yellow', 'purple', 'really', 'sweet', 'sour', 'bitter', 'evil', ];

NLP. You keep using that word. I do not think it means what you think it means.

Re: Knwl.js – A JavaScript NLP

#27

knwl.english.adverbs = [ 'red', 'blue', 'green', 'orange', 'black', 'white', 'yellow', 'purple', 'really', 'sweet', 'sour', 'bitter', 'evil', ]; NLP. You keep using that word. I do not think it means what you think it means.

NLP or adverbs? Both seemed to be applied incorrectly...

Re: Knwl.js – A JavaScript NLP

#30

knwl.english.adverbs = [ 'red', 'blue', 'green', 'orange', 'black', 'white', 'yellow', 'purple', 'really', 'sweet', 'sour', 'bitter', 'evil', ]; NLP. You keep using that word. I do not think it means what you think it means.

NLP or adverbs? Both seemed to be applied incorrectly...

He means to say that Natural Language Processing isn't just scanning a text for patterns, like this library does, hence it's not a NLP library in the strict meaning of the term. It's an interesting project but it's really a parser, not a NLP.
Post reply on HN