class Cadmium::POSTagger

Included Modules

Defined in:

cadmium/pos_tagger/pos_tagger.cr

Constant Summary

DEFAULT_CLASSIFIER = Viterbi.new
DEFAULT_MODEL_PATH = "/srv/crystaldoc.info/github-rmarronnier-pos_tagger-master/src/cadmium/pos_tagger/data/en/pos.zip"

Constructors

Instance Method Summary

Instance methods inherited from module Cadmium::Languages

get_language_by_code(code) get_language_by_code

Constructor Detail

def self.new(classifier : Cadmium::Classifier::Viterbi = DEFAULT_CLASSIFIER, model : String = DEFAULT_MODEL_PATH, language : Symbol = :en) #

[View source]

Instance Method Detail

def classifier : Cadmium::Classifier::Viterbi #

[View source]
def classifier=(classifier : Cadmium::Classifier::Viterbi) #

[View source]
def language : Symbol #

[View source]
def language=(language : Symbol) #

[View source]
def model : String #

[View source]
def model=(model : String) #

[View source]
def tag(tokens : Array(String) | String) : Array(Token) #

[View source]