Windows での,PyEnchant のインストール手順を説明する.
PyEnchant は,英語のスペルチェックと,正しい単語の提案の機能を持ったパッケージである.
URL: https://pyenchant.github.io/pyenchant/
謝辞:このページで紹介するソフトウェアの作者に感謝します.
【サイト内の関連ページ】
【関連する外部ページ】
Python の公式ページ: https://www.python.org/
コマンドプロンプトを管理者として実行: 別ページ »で説明
次のコマンドを実行.
※ 「 python -m pip install ...」は,Python パッケージをインストールするためのコマンド.
python -m pip install -U pip setuptools
python -m pip install pyenchant
https://pyenchant.github.io/pyenchant/tutorial.htmlで公開されているプログラムを使用.
import enchant d = enchant.Dict("en_US") d.check("Hello") d.check("Helo")
from enchant.checker import SpellChecker chkr = SpellChecker("en_US") chkr.set_text("This is sme sample txt with erors.") for err in chkr: print("ERROR:", err.word)