Korean Sentence Analyser v0.1.2 KoreanSentenceAnalyser View Source
Analyses Korean text Returns their stem/base form and additional information, like whether it's a noun
Link to this section Summary
Functions
Analyses a sentence Returns a Map, or nil if nothing found
Analyse a single word Returns a string with the stem, or nil if empty
Link to this section Functions
Link to this function
analyse_sentence(sentence) View Source
Analyses a sentence Returns a Map, or nil if nothing found
Example response
iex> KoreanSentenceAnalyser.analyse_sentence("한국어 배우기가 재미있어용")
%{
"tokens" => [
%{
"token" => "한국어",
"type" => "Noun"
},
%{
"token" => "배우다",
"type" => "Verb"
},
%{
"token" => "재미있다",
"type" => "Adjective"
}
]
}
Link to this function
get_the_stem_of_a_word(word) View Source
Analyse a single word Returns a string with the stem, or nil if empty
iex> KoreanSentenceAnalyser.get_the_stem_of_a_word("완벽했지")
"완벽하다"