Whats is Part-of-speech (POS) tagging ?
It is a process of converting a sentence to forms – list of words, list of tuples (where each tuple is having a form (word, tag)). The tag in case of is a part-of-speech tag, and signifies whether the word is a noun, adjective, verb, and so on.
Example of Part-of-speech (POS) tagged corpus
The/at-tl expense/nn and/cc time/nn involved/vbn are/ber astronomical/jj ./.
format for a tagged corpus is of the form word/tag. Each word is with a tag denoting its POS. For example, nn refers to a noun, vb is a verb.
Code #1 : Creating a TaggedCorpusReader. for words
Words : ['The', 'expense', 'and', 'time', 'involved', 'are', ...] tag_words : [('The', 'AT-TL'), ('expense', 'NN'), ('and', 'CC'), ...]
Code #2 : For sentence
tagged_sent : [[('The', 'AT-TL'), ('expense', 'NN'), ('and', 'CC'), ('time', 'NN'), ('involved', 'VBN'), ('are', 'BER'), ('astronomical', 'JJ'), ('.', '.')]]
Code #3 : For paragraphs
para: [[['The', 'expense', 'and', 'time', 'involved', 'are', 'astronomical', '.']]] tagged_paras : [[[('The', 'AT-TL'), ('expense', 'NN'), ('and', 'CC'), ('time', 'NN'), ('involved', 'VBN'), ('are', 'BER'), ('astronomical', 'JJ'), ('.', '.')]]]
- NLP | Customization Using Tagged Corpus Reader
- NLP | Part of Speech - Default Tagging
- Python | Part of Speech Tagging using TextBlob
- Part of Speech Tagging with Stop words using NLTK in python
- Speech Recognition in Python using Google Speech API
- NLP | Custom corpus
- NLP | Wordlist Corpus
- NLP | Chunking using Corpus Reader
- NLP | Categorized Text Corpus
- Python: Convert Speech to text and text to Speech
- Python program to read file word by word
- Speech To Text using IBM Watson Studio
- Convert Text to Speech in Python
- Python | Text to Speech by using pyttsx3
- Python Text To Speech | pyttsx module
- Text-To-Speech changing voice in Python
- Python | Convert image to text and then to speech
- Convert Text to Speech in Python using win32com.client
- Python | Speech recognition on large audio files
- ML | Types of Learning - Part 2
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.