Install JUMAN++

pip install pyknp

is_halfwidth[source]

is_halfwidth(text)

Determine whether the text consists entirely of halfwidth characters. :param text: Input text string :return: True if all characters are halfwidth, otherwise False

halfwidth_to_fullwidth[source]

halfwidth_to_fullwidth(text)

annotate[source]

annotate(text)

pip install beautifulsoup4
pip install lxml

annotate_html[source]

annotate_html(content, interactive=False)