KoreanSyllableStrategy#

class scikitplot.corpus.KoreanSyllableStrategy[source]#

Space-delimited word segmentation for Korean Hangul.

Korean uses spaces to delimit eojeols (spacing units). Each eojeol is kept as one token. When config.unit == "grapheme_cluster" the strategy delegates to GraphemeClusterStrategy.

Optional: KSS (Korean Sentence Splitter) for unit="sentence".

Parameters:
(none)
segment(span, config)[source]#

Segment Korean span by eojeol (space) or syllable.

Parameters:
spanScriptSpan

Hangul script span.

configWritingSystemAdapterConfig

Adapter configuration.

Returns:
list[Chunk]

Eojeol, sentence, or grapheme-cluster chunks.

Parameters:
Return type:

list[Chunk]