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 Cython, 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
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-Py.git
Open project with Pycharm IDE
Steps for opening the cloned project:
- Start IDE
- Select File | Open from main menu
- Choose
EnglishPosTagger-Pyfile - 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
Metadata
Release files for nlptoolkit-postagger 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nlptoolkit_postagger-1.0.9.tar.gz | 16.9 kB | Without provenance | Details |
Release files / nlptoolkit_postagger-1.0.9.tar.gz
| Download URL | nlptoolkit_postagger-1.0.9.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3f6645345e5a8c863df089609c58d92972599e2af3e6e2106f5db2da99a7360
|
|
BLAKE2b-256 checksum How to use checksums |
76425addbb4d552ce941b2851a6ab975284bde38ae5daa9546a8e9ffda4b96d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.8
|
Security for nlptoolkit-postagger 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.