https://github.com/cadmiumcr/pos_tagger
Part Of Speech Tagger
https://github.com/cadmiumcr/pos_tagger
nlp pos tagger
Last synced: about 1 year ago
JSON representation
Part Of Speech Tagger
- Host: GitHub
- URL: https://github.com/cadmiumcr/pos_tagger
- Owner: cadmiumcr
- License: mit
- Created: 2019-09-28T08:49:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T20:15:25.000Z (over 5 years ago)
- Last Synced: 2025-03-24T17:13:43.510Z (over 1 year ago)
- Topics: nlp, pos, tagger
- Language: Crystal
- Homepage:
- Size: 307 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pos_tagger

A Part Of Speech (POS) Tagger. It relies for now on `Cadmium::Classifier::Viterbi`.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
cadmium_pos_tagger:
github: cadmiumcr/pos_tagger
```
2. Run `shards install`
## Usage
```crystal
require "pos_tagger"
example = "Cadmium is getting better and better."
pp Cadmium::POSTagger.new.tag(example)[2]
# Cadmium::Token(@verbatim="getting", @pos="VBG", @univ_pos=:verb, @morphology=:none, @is_start_sentence=false, @lemma=nil, @is_punctuation=false, @is_oov=false, @language=:en)
```
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Rémy Marronnier](https://github.com/rmarronnier) - creator and maintainer