Live data from Hacker News

Knwl.js – A JavaScript NLP

loadfive.com

31–38 of 38 posts

Re: Knwl.js – A JavaScript NLP

#31

Nice parser collection. But there a more powerful NLP libraries out there for JS: https://github.com/spencermountain/nlp_compromise

That module looks pretty useful. I've been resorting to node-natural [0] and then using a quick part of speech tagger so far, but this looks a lot better and doesn't have a heap of baggage.

[0] https://github.com/NaturalNode/natural

Re: Knwl.js – A JavaScript NLP

#32
post #14

Earlier quoted context omitted.

dd/mm/yyyy and yyyy/mm/dd are as valid as each other, since it proceeds in either increasing or decreasing unit size. Having dates as mm/dd/yyyy makes about as much logical sense as writing: 10492 as 49210.

It doesn't make sense mathematically because it isn't a mathematical notation, it's linguistic in nature. In Europe, '4th May' is shortened to 4/5. In the US, 'May 4th' is shortened to 5/4. Neither is right, wrong or illogical. I'm from the UK, but have spent a lot of time working with US based clients/colleagues. They only way I've found to avoid confusion and ambiguity is to use YYYY/MM/DD.

It still makes no sense to have MM/DD/YYYY.

Re: Knwl.js – A JavaScript NLP

#33

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.

Even though it might not match some definition of NLP, it does process a natural language. It might not include AI of some sorts but it does its job. It's (probably) fast and extracting basic information from written text is quite useful.

Nice library!

Re: Knwl.js – A JavaScript NLP

#35
post #30

Earlier quoted context omitted.

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.

Yeah, I got that part. I was pointing out that this array of "adverbs" really contains adjectives.

Re: Knwl.js – A JavaScript NLP

#36
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.

It is NLP just not the latest "real" as you would call it. Its just rule based.

http://www.quora.com/Why-are-rule-based-methods-becoming-unp...

And http://en.wikipedia.org/wiki/Rule-based_system

Re: Knwl.js – A JavaScript NLP

#37

Nice parser collection. But there a more powerful NLP libraries out there for JS: https://github.com/spencermountain/nlp_compromise

That module looks pretty useful. I've been resorting to node-natural [0] and then using a quick part of speech tagger so far, but this looks a lot better and doesn't have a heap of baggage. [0] https://github.com/NaturalNode/natural

A while back when I used to work a lot with this stuff I wrote a library to do a lot of sentiment, tokenization, and part of speech tagging based on several corpus I came across when I realized natural didn't have what I needed at the time.

https://github.com/nyxtom/salient

Post reply on HN