Is there any way to identify phrasal verbs in a lengthy text by using the compromise library? #1159
Replies: 2 comments 1 reply
-
hey Behnam, yep we will tag standard phrasal verbs, which are mostly defined here doc.match('#PhrasalVerb+').json() if you wanted to add chosen words on each side, I would do something like: doc.match('will? #PhrasalVerb+ (with|for|by)?').forEach(m=>{
//add some kind of checks for your analysis
if(m.after('^the').found){ }
if(m.sentence().has('look after the')){ }
}) and you should be able to do any kind of further classification of them. |
Beta Was this translation helpful? Give feedback.
-
hey, thank you Behnam - it would be really useful to find situations where our phrasal-verb tagger is wrong. I think this is a really important part of sentence understanding, and I'm happy to fix any examples you can find. I couldn't find any mistaken txt = `i sent the documents up the hill`
txt = `he would up stage his friend`
txt = `he couldn't off gas`
txt = `he got up over the hill`
nlp(txt).debug() If it were possible to get a list of sentences that have a mis-tagged phrasal, I'll add them to the tests. |
Beta Was this translation helpful? Give feedback.
-
I’m working on a text analysis project and need to identify phrasal verbs in various forms within a lengthy text. I’m particularly interested in understanding how to detect:
What are some effective methods or tools for automatically identifying these types of phrasal verbs in text? I have found some discussions on phrasal verbs, but they are outdated and lack practical solutions.
Beta Was this translation helpful? Give feedback.
All reactions