class Cadmium::EmotionAnalysis::Intensity

Included Modules

Defined in:

cadmium/emotion_analysis/emotion_analysis.cr

Constant Summary

DEFAULT_MODELS_PATH = "/srv/crystaldoc.info/github-rmarronnier-cadmium_emotion_analysis-main/src/cadmium/emotion_analysis/data/all.json"

property stop_words

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(models_path = DEFAULT_MODELS_PATH) #

[View source]

Instance Method Detail

def analyse(text : String, language = "en") : Hash(String, Float32) #

[View source]
def data : AllLanguagesModel #

include StopWords TODO : rework the whole language symbol / string structure and rework the stopwords macro


[View source]
def data=(data : AllLanguagesModel) #

include StopWords TODO : rework the whole language symbol / string structure and rework the stopwords macro


[View source]