-
Notifications
You must be signed in to change notification settings - Fork 5
2.4 Tutorials on using the NLP Blocks
You can program CAIT to analyze sentences as well. For example, when you say "My name is Michael", as a human being, we know you are trying to tell us your name, and your name is "Michael". CAIT can do this too. By using a software package called RASA, it can understand the meaning of your sentence and extract the information you wanted to provide. You can try it out yourself by using the "analyze" block like the program shown below.
You may have noticed when we initialize the NLP module, we selected a model called "english_default". This is because for the NLP module to work, it needs to be trained, and the result of training is a model that it can use to analyze the text data. You can refer to the NLP training tutorial to understand how to create your own model.
When you run the program, nothing will happen. This is because we simply store the result of the analysis in a variable. You can use the program shown below to examine the results.
It looks complicated because the result returned from the "analyze" block is a combination of dictionaries and lists. If you want to know more about parsing these data structures, please refer to the Block Reference Wiki page.