Skip to main content

English PosTagger Library

Project description

This is a tool meant for tagging words with their part-of-speech, a grammatical category based on their function within a sentence, such as noun, adjective, verb, and so forth.

For Developers

You can also see Python, Java, C++, Swift, or C# repository.

Requirements

Python

To check if you have a compatible version of Python installed, use the following command:

python -V

You can find the latest version of Python here.

Git

Install the latest version of Git.

Pip Install

pip3 install NlpToolkit-PosTagger-Cy

Download Code

In order to work on code, create a fork from GitHub page. Use Git for cloning the code to your local or below line for Ubuntu:

git clone <your-fork-git-link>

A directory called EnglishPosTagger will be created. Or you can use below link for exploring the code:

git clone https://github.com/starlangsoftware/EnglishPosTagger-Cy.git

Open project with Pycharm IDE

Steps for opening the cloned project:

  • Start IDE
  • Select File | Open from main menu
  • Choose EnglishPosTagger-Cy file
  • Select open as project option
  • Couple of seconds, dependencies will be downloaded.

Detailed Description

PosTagger

To train the PosTagger which is used for English pos tagging

train(self, corpus: PosTaggedCorpus)

To save the trained PosTagger model

saveModel(self)

To load an already trained PosTagger model

loadModel(self)

To tag a sentence, using a newly trained or loaded PosTagger model

posTag(self, sentence: Sentence) -> Sentence

3 different PosTagger models are supported: The one that is used to tag the sentences with a random tag

DummyPosTagger

the one that tags the word with the most used tag for a given word

NaivePosTagger

the one that does an Hmm based training and tags the words accordingly

HmmPosTagger

Project details


Download files

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

Source Distribution

NlpToolkit-PosTagger-Cy-1.0.1.tar.gz (234.6 kB view details)

Uploaded Source

File details

Details for the file NlpToolkit-PosTagger-Cy-1.0.1.tar.gz.

File metadata

  • Download URL: NlpToolkit-PosTagger-Cy-1.0.1.tar.gz
  • Upload date:
  • Size: 234.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for NlpToolkit-PosTagger-Cy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f19ff5de925ae543de066e73cc9fa254d993df42735ad3373b3a3d88e29c130c
MD5 050f9c2e5cb66c0b356c0b1f9f87094b
BLAKE2b-256 34e8020f188ee393b486dfb186fb75ca66473e61d97914bc3469540189090bbb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page