konlp.stem package

Submodules

konlp.stem.api module

Korean Natural Language Toolkit stemmer interface

class konlp.stem.api.SimpleStemmer[source]

Bases: konlp.stem.api.StemmerI

For an example about how to use the interface above

stem(token)[source]

주격, 목적격 조사를 제거하는 stemmer

Parameters:token (str) – 조사를 제거할 토큰
Returns:조사가 제거된 토큰
Return type:str
class konlp.stem.api.StemmerI[source]

Bases: object

Stemmer Interface

stem(token)[source]

Strip affixes from the token and return the stem.

Parameters:token (str) – The token that should be stemmed.
Returns:Stemming token
Return type:str
Raises:NotImplementedError – If not implement this method on a class that extends this class

Module contents

we are preparing this module