Skip to main content

A simple interface for checking and fixing POS tags

Project description

Simple part of speech tag fixer

These functions are designed to fix POS tags.

For tag_fixer(), the presumed format of the data is a list of [word,tag] or (word,tag) pairs

l = [["The","DT"],["teacher","NNP"],["is","VBZ"],["awesome","JJ"]]
fixed_list = tag_fixer(l)

For tag_fixer_sents(), the presumed format of that data is a list sentences that are lists of [word,tag] pairs.

l2 = [[["The","DT"],["teacher","NNP"],["is","VBZ"],["awesome","JJ"]],[["This","DT"],["is","VBZ"],["another","JJ"]]]

Note that either function will automatically capitalize tags (so the user doesn't have to hit the [shift] key)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tag-fixer, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size tag_fixer-0.0.4-py3-none-any.whl (2.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tag_fixer-0.0.4.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page