FAQ: Natural Language Parsing with Regular Expressions - Chunking Verb Phrases

This community-built FAQ covers the “Chunking Verb Phrases” exercise from the lesson “Natural Language Parsing with Regular Expressions”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Natural Language Processing

FAQs on the exercise Chunking Verb Phrases

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

can there be a cheatsheet for this course for regex stuff similar to this:
https://cheatography.com/davechild/cheat-sheets/regular-expressions/pdf/
including the part of speech tags would also be helpful. i need somewhere to reference all these new codes. thanks

What is the difference between the quantifiers being outside of the <> word brackets? How do they affect the words when they are outside like this?:

“VP: {<VB.>

?<RB.?>?}”
2 Likes

@bazeroni were you able to find the answer? I couldn’t find any answer to it

Codecademy says this: "You can match any verb with the notation <VB.*> and any adverb with <RB.?> " They also use this in the example earlier in the same lesson. Why do we need the distinction between * and ?.

I understand that * will match 0 or more of any character while ? will match 0 or 1 of any character, but according to the Penn Treebank document that Codecademy listed earlier in the lesson (Penn Treebank P.O.S. Tags) there would only ever be 1 additional character following VB or RB.

What I’m trying to say is that we could more concisely use <VB.?> and <RB.?> no?

Is RegexpParser to be used only for english… How can it be applied for Spanish texts? Should notations like NN, JJ work for all languages?