Download the PHP package nai-php/naipostagger without Composer
On this page you can find all versions of the php package nai-php/naipostagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nai-php/naipostagger
More information about nai-php/naipostagger
Files in nai-php/naipostagger
Package naipostagger
Short Description A part of speech tagger written in PHP.
License MIT
Informations about the package naipostagger
N-ai php pos tagger
A lightweight framework-agnostic library in pure PHP for part-of-speech tagging. Can be used for chatbots, personal assistants, keywords extraction etc. Being written in PHP, it can be easily integrated in pre existent or new applications, giving the real ability to understand what users write.
It is based on vocabularies and predefined grammatical rules, without wrappers to third part systems, neural networks, machine learning or models that requires huge resources.
This is the english version. Documentation and TODO are coming, more info and demo on n-ai.cloud
Precision
In this table I'll put results of differents type of sentences corpus.
Corpus | Total tokens | Correctly tagged | Not correctly tagged | % of total correct |
---|---|---|---|---|
"Just Shoot Me" movie subtitles | 3403 | 3381 | 22 | 99,35 |
Installation
-
in your project folder e.g. "myproject" install the package via composer;
-
create folder "dictionaries";
-
inside folder "dictionaries" clone or download the english dictionary repository;
- run this example script:
And the output will be:
To do list
- [ ] Find contributors
- [ ] Clean, check, fix and tag term in dictionaries
- [ ] Clean, check, fix brill rules
- [ ] Add more ngrams
- [ ] Add more tests, expecially for filters
- [ ] Collect and load frill words
- [ ] Better Oop for some classes?
- [ ] In module for logical analysis (yet not published) collect synonyms and temporal expressions