0 0
Parts of Speech Tagging With NLTK - Lexsense

Parts of Speech Tagging With NLTK

Read Time:3 Minute, 16 Second

Introduction

Rule Based POS Tagging

One of the oldest techniques of tagging is rule-based POS tagging. Rule-based taggers use a dictionary or lexicon for getting possible tags for each word. If the word has more than one possible tag, then rule-based taggers use hand-written rules to identify the correct tag. Disambiguation can also be performed in rule-based tagging by analyzing the linguistic features of a word along with its preceding as well as following words. For example, suppose if the preceding word of a word is an article then word must be a noun.

Stochastic Parts of Speech Tagging With NLTK is a comprehensive guide that covers the process of utilizing NLTK for accurate and efficient parts of speech tagging. This invaluable resource provides a formal and thorough understanding of the techniques and methodologies involved in stochastic POS tagging with NLTK. Dive into the world of natural language processing and enhance your skills with this authoritative guide.

Another technique of tagging is Stochastic POS Tagging. Now, the question that arises here is which model can be stochastic. The model that includes frequency or probability (statistics) can be called stochastic. Any number of different approaches to the problem of part-of-speech tagging can be referred to as stochastic tagger. The simplest stochastic tagger applies the following approaches for POS tagging:

Word Frequency Approach

In this approach, the stochastic taggers disambiguate the words based on the probability that a word occurs with a particular tag. We can also say that the tag encountered most frequently with the word in the training set is the one assigned to an ambiguous instance of that word.

Tag Sequence Probabilities

It is another approach of stochastic tagging, where the tagger calculates the probability of a given sequence of tags occurring. It is also called n-gram approach. It is called so because the best tag for a given word is determined by the probability at which it occurs with the n previous tags.

Part-of-speech tagging is harder than just having a list of words and their parts of speech, because some words can represent more than one part of speech at different times, and because some parts of speech are complex or unspoken, a large percentage of word-forms are ambiguous. For example, even “dogs”, which is usually thought of as just a plural noun, can also be a verb:

The sailor dogs the hatch

Correct grammatical tagging will reflect that “dogs” is here used as a verb, not as the more common plural noun. Grammatical context is one way to determine this; semantic analysis can also be used to infer that “sailor” and “hatch” implicate “dogs” as 1) in the nautical context and 2) an action applied to the object “hatch” (in this context, “dogs” is a nautical term meaning “fastens (a watertight door securely.

So, for something like the sentence above the word can has several semantic meanings. One being a model for question formation, another being a container for holding food or liquid, and yet another being a verb denoting the ability to do something.

Let’s learn with a NLTK Part of Speech example:

POS tag list:

CC coordinating conjunction

CD cardinal digit

DT determiner

IN preposition/subordinating conjunction

JJ adjective ‘big’

JJR adjective, comparative ‘bigger’

JJS adjective, superlative ‘biggest’

MD modal could, will

NN noun, singular ‘desk’

NNS noun plural ‘desks’

NNP proper noun, singular ‘Harrison’

NNPS proper noun, plural ‘Americans’

PRP personal pronoun I, he, she

PRP$ possessive pronoun my, his, hers

RB adverb very, silently,

RBR adverb, comparative better

RBS adverb, superlative best

UH interjection errrrrrrrm

VB verb, base form take

Happy
0 0 %
Sad
0 0 %
Excited
0 0 %
Sleepy
0 0 %
Angry
0 0 %
Surprise
0 0 %
chakir.mahjoubi

Recent Posts

What are the Advantages of Data Annotation

1. Introduction Machine learning models, especially those based on supervised learning, rely heavily on labeled…

2 weeks ago

Data Annotation Techniques: A Comprehensive Overview

Introduction The rise of machine learning, particularly deep learning, has established the critical role of…

2 weeks ago

What Is a Neural Network?

Introduction The quest to replicate human intelligence in machines has spurred significant research in artificial…

3 weeks ago

Understanding Neural Networks: The Backbone of Modern AI

Introduction Neural networks, inspired by the architecture of the human brain, have emerged as the…

3 weeks ago

Translation: Connecting Brands Worldwide

Introduction The Internet is a space without borders. It allows people to connect and discover…

3 weeks ago

Understanding the Translation Market: Trends and Challenges

Introduction In an increasingly globalized world, the translation market has gained significant importance. As businesses…

3 weeks ago