sudachipy.morphemelist package


  • Import from sudachipy.morphemelist is deprecated.
    • Use from sudachipy import MorphemeList instead.

  • Class Method MorphemeList.empty() -> MorphemeList is deprecated.
    • Use Tokenizer.tokenize("") if you need.

Module contents

class sudachipy.morphemelist.MorphemeList

A list of morphemes

empty(dict: sudachipy.Dictionary) sudachipy.MorphemeList

Returns an empty morpheme list with dictionary

get_internal_cost($self) int

Returns the total cost of the path

size($self) int

Returns the number of morpheme in this list.