Knwl.js – A JavaScript NLP
21–30 of 38 posts
Re: Knwl.js – A JavaScript NLP
#22This 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 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
#23This 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.
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
#24There 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
#25Re: Knwl.js – A JavaScript NLP
#26NLP. You keep using that word. I do not think it means what you think it means.
Re: Knwl.js – A JavaScript NLP
#27knwl.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
#28Re: Knwl.js – A JavaScript NLP
#29Re: Knwl.js – A JavaScript NLP
#30knwl.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...