In the Builds folder, I am using the compromise.js
var doc = nlp('the quick brown fox jumped over the lazy dog')
var str = doc.nouns().out('text')
var ccc = doc.match('#Adjective fox').out('text')
var vrb = doc.verbs().out('text')
var frstn = doc.nouns().first().out('text')
print(ccc)
print(vrb)
print(frstn)
print(str)
and the output of this is:
Started
brown fox
jumped
fox
fox dog
Done (took: 00:00:00.1420776)
I added a Library tab to load JavaScript files into the compiler. You can access the library list in the Config window of the Javascript Plugin.
Get the updated plugin here: https://synthiam.com/redirect/legacy?table=plugin&id=224
@DJ You are Awesome! I am now going to try and work with an NLP library to process and analyze speech. Thank you
Which NLP are you going to use? I'm being nosey.
ARC isn't a web browser, so i'm not sure how that will work.
@DJ It works GREAT!
@Justin I am using Compromise. here is a link https://github.com/spencermountain/compromise
In the Builds folder, I am using the compromise.js
and the output of this is:
Don't judge the coding, Keep in mind I am just learning JavaScript.
Thats awesome!
This should take my Simple Robot Brain to the next level. After I get a better handle on JavaScript.