An unsupervised Korean Natural Language Processing toolkit for tokenization, stemming, part-of-speech tagging, and noun extraction. The current version is 0.0.493. Development has stalled since 2020; the repository is archived and no longer maintained as of version 0.1.1 (which is not on PyPI).
pip install soynlpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic unsupervised tokenization using word extraction scores.
Consider migrating to modern Korean NLP libraries such as Kiwi (kiwipiepy), KoNLPy, or Hugging Face tokenizers.
Replace 'from soynlp.words import WordExtractor' with 'from soynlp.word import WordExtractor'.
Extract scores as shown in quickstart: scores = {word:score.cohesion_forward for word, score in scores.items()}.Ensure input file has tokens separated by two spaces, or preprocess accordingly.
Use 'from soynlp.word import WordExtractor' instead.
Extract scores: scores = {word:score.cohesion_forward for word, score in word_extractor.extract().items()}Call word_extractor.train(corpus) before word_extractor.extract()