FAQ: Natural Language Parsing with Regular Expressions - Part-of-Speech Tagging

This community-built FAQ covers the “Part-of-Speech Tagging” 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 Part-of-Speech Tagging

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!

I made a comment on a previous exercise in this section about POS tags. The resource linked in the learn section of this exercise is helpful and might be even more helpful when provided earlier in the section.

Can someone help me to understand the use of the below code

part-of-speech tag each sentence and append to pos_tagged_oz here

pos_tagged_oz.append(pos_tag(word_tokenized_sentence))
what exactly are we trying to do using the append function here

# Create a for-loop through each word tokenized sentence in word_tokenized_oz.

# Within the for-loop, part-of-speech tag each word tokenized sentence and append the result to pos_tagged_oz.

for word in word_tokenized_oz:

    pos_tagged_oz.append(pos_tag(word))

This might be helpful. It is adding word to the previously empty list.

Hi, just one question in relation with POT tagging. Some of the tags are somehow thought for English. How could I do the same for other languages? For example: Spanish.

Thanks.