How to use Matlab to analyze the sentence structure for text analysis?

1 view (last 30 days)
How to make matlab generate the structure of sentence analysis, like object, subject, verb, clause (like object clouse etc) like Python NLTK?
For example, 'I like you because you are smart'. "I": object, "like": verb, "you": subject, "becuase you are smart": adverb clouse of cause. Can matlab do that and how ?
Thanks!
  4 Comments
Jan
Jan on 21 Jun 2019
There is a Java interface, which contacts CoreNLP: https://github.com/stanfordnlp/CoreNLP . You can call Java from Matlab also. If there is a working Python toolbox, why not using it?
Miao
Miao on 21 Jun 2019
Because matlab is the primary software our company use, but if matlab cannot do this, I will move to use python.

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 21 Jun 2019
I'm not certain if Text Analytics Toolbox does all of what you want but I recommend reviewing the documentation, specifically the Text Data Preparation chapter, to check. If not, you could submit an enhancement request with details about your application and the functionality you wanted to see to Technical Support by using the telephone handset icon in the upper-right corner of that page.
  1 Comment
Miao
Miao on 21 Jun 2019
I searched in text data preparation and seems that there is no function to analyze sentence structure to get verb, subject, clause etc. I just submitted a requst through tech support. This funcitno is important for NLP analysis to increase the accuracy on sentence understanding, it is nice for matlab to have this function.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!