/artagger

RDR Post Tagger implementation

Primary LanguagePythonApache License 2.0Apache-2.0

ARTagger

Python 3.5 pypi PyPi downloads License

A Ripple Down Rules-based (RDR) Part-Of-Speech Tagger implementation based on RDRPOSTagger.

Assumption

This library assume that you are using Python 3.5 or later.

Assumption:

  • Python 3.5
  • Only support 1 sentence
  • The sentence must be tokenized

Current supported languages:

  • Thai

Installation

Installation is really straight forward, just:

pip install artagger

Quick Example

Just do a quick example if you want to use this library.

>> from artagger import Tagger
>> tagger = Tagger()
>> words = tagger.tag("ผม รัก คุณ")

The tag() function will return you an array of Word.

>> for word in words:
>>    print("%s/%s" % (word.word, word.tag))

Run above syntax to get any word and tag inside sentence.

CITATION