nlptoolkit-postagger
v1.0.1
Published
Pos Tagging ============
Downloads
3
Readme
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, Cython, C++, Swift, Java, or C# repository.
Requirements
Node.js
To check if you have a compatible version of Node.js installed, use the following command:
node -v
You can find the latest version of Node.js here.
Git
Install the latest version of Git.
Npm Install
npm 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 util will be created. Or you can use below link for exploring the code:
git clone https://github.com/starlangsoftware/englishpostagger-js.git
Open project with Webstorm IDE
Steps for opening the cloned project:
- Start IDE
- Select File | Open from main menu
- Choose
Postagger-Js
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(corpus: PosTaggedCorpus): void;
To tag a sentence, using a newly trained or loaded PosTagger model
posTag(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