Tag Archives: natural

用 JavaScript 寫的 NLP Library

nlp-compromise/nlp_compromise 是一個 JavaScript 寫的 NLP library,網頁上給的用法也很特別... 過去式: nlp.text('She sells seashells').to_past() // She sold seashells 複數形: nlp.noun("dinosaur").pluralize(); // "dinosaurs" 還有這種用法: nlp.statement('She sells seashells').negate().text() // She doesn't sell seashells 也有這種用法: nlp.sentence('I fed the dog').replace('the [Noun]', 'the cat').text() // I fed the cat … Continue reading

Posted in Computer, Murmuring, Programming, Science, Social, Software | Tagged , , , , , | Leave a comment