Korean Sentence Analyser v0.4.0 Ksa View Source

Analyse Korean text

Link to this section Summary

Functions

Analyse a sentence

Analyse a sentence and give verbose output

Analyse a sentence and return it's type

Link to this section Functions

Link to this function

analyse(sentence)

View Source
analyse(String.t()) :: list()

Analyse a sentence

iex> Ksa.analyse("저는 공부하느라고 청소를 못 했어요")
[
  %{"공부하느라고" => "공부"},
  %{"못" => "못"},
  %{"저는" => "저"},
  %{"청소를" => "청소"},
  %{"했어요" => "하다"}
]
Link to this function

analyse_verbose(sentence)

View Source
analyse_verbose(String.t()) :: list()

Analyse a sentence and give verbose output

You need to create your own filter

Link to this function

analyse_with_type(sentence)

View Source
analyse_with_type(String.t()) :: list()

Analyse a sentence and return it's type

iex> Ksa.analyse_with_type("저는 공부하느라고 청소를 못 했어요")
[
  %{"공부하느라고" => {"noun", "공부"}},
  %{"못" => {"noun", "못"}},
  %{"저는" => {"noun", "저"}},
  %{"청소를" => {"noun", "청소"}},
  %{"했어요" => {"verb", "하다"}}
]