Skip to main content

English PosTagger Library

Project description

Pos Tagging

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.

Video Lectures

For Developers

You can also see Python, Java, C++, C, Swift, Js, 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.5.tar.gz (410.2 kB view details)

Uploaded Source

File details

Details for the file nlptoolkit-postagger-cy-1.0.5.tar.gz.

File metadata

  • Download URL: nlptoolkit-postagger-cy-1.0.5.tar.gz
  • Upload date:
  • Size: 410.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.8

File hashes

Hashes for nlptoolkit-postagger-cy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 3678974fe027eeac4c85fce7ebba4b1e19cbf2df436130de98edc9e2ae673a55
MD5 a1b27900f2514e97e16cc7ba5020dc15
BLAKE2b-256 c90ec7d5f5bba402a0eff201ee52ae2951b7a28fb8e975a2db1077f131c40f53

See more details on using hashes here.

Supported by

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