pyenchant

PyEnchant without German dictionary

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-18 07:11:21
问题 Thanks to Stackoverflow, I learnt about pyenchant library. I am looking for German dictionary "de_DE" to use through enchant, but could not find one. Where can I get it and which directory should I put it so that pyenchant can see it? I am using a linux box running Ubuntu. 回答1: From the terminal type: sudo apt-get install myspell-de-de You can check that you have it available, from a Python prompt type: import enchant print enchant.list_languages() To check it works, from a Python prompt type

PyEnchant without German dictionary

99封情书 提交于 2021-02-18 07:09:18
问题 Thanks to Stackoverflow, I learnt about pyenchant library. I am looking for German dictionary "de_DE" to use through enchant, but could not find one. Where can I get it and which directory should I put it so that pyenchant can see it? I am using a linux box running Ubuntu. 回答1: From the terminal type: sudo apt-get install myspell-de-de You can check that you have it available, from a Python prompt type: import enchant print enchant.list_languages() To check it works, from a Python prompt type

PyEnchant without German dictionary

三世轮回 提交于 2021-02-18 07:06:03
问题 Thanks to Stackoverflow, I learnt about pyenchant library. I am looking for German dictionary "de_DE" to use through enchant, but could not find one. Where can I get it and which directory should I put it so that pyenchant can see it? I am using a linux box running Ubuntu. 回答1: From the terminal type: sudo apt-get install myspell-de-de You can check that you have it available, from a Python prompt type: import enchant print enchant.list_languages() To check it works, from a Python prompt type

PyEnchant without German dictionary

不想你离开。 提交于 2021-02-18 07:05:20
问题 Thanks to Stackoverflow, I learnt about pyenchant library. I am looking for German dictionary "de_DE" to use through enchant, but could not find one. Where can I get it and which directory should I put it so that pyenchant can see it? I am using a linux box running Ubuntu. 回答1: From the terminal type: sudo apt-get install myspell-de-de You can check that you have it available, from a Python prompt type: import enchant print enchant.list_languages() To check it works, from a Python prompt type

How to install PyEnchant on Heroku?

馋奶兔 提交于 2021-02-08 19:54:13
问题 It seems that PyEnchant requires the C enchant library. How would I go about installing this on Heroku, is that possible? According to this question, I would need to write my own build pack for Heroku, so I guess that's one way. But I'm hoping there is a simpler technique to use? 回答1: For these kind of things we are using heroku-buildpack-apt, which let's you install any package. 来源: https://stackoverflow.com/questions/16928072/how-to-install-pyenchant-on-heroku

How to install PyEnchant on Heroku?

我的未来我决定 提交于 2021-02-08 19:54:08
问题 It seems that PyEnchant requires the C enchant library. How would I go about installing this on Heroku, is that possible? According to this question, I would need to write my own build pack for Heroku, so I guess that's one way. But I'm hoping there is a simpler technique to use? 回答1: For these kind of things we are using heroku-buildpack-apt, which let's you install any package. 来源: https://stackoverflow.com/questions/16928072/how-to-install-pyenchant-on-heroku

Add dictionary to pyenchant

你说的曾经没有我的故事 提交于 2021-02-08 07:42:34
问题 Using Mac OSX 10.12.3 with Python 3. I have installed pyenchant but it only works with the preinstalled dictionaries. import enchant print(enchant.list_languages()) ['de_DE', 'en_AU', 'en_GB', 'en_US', 'fr_FR'] I have installed Homebrew and tried to install the Swedish language dictionary from ftp://ftp.gnu.org/gnu/aspell/dict/0index.html following this answer: https://stackoverflow.com/a/35757817/4802426 brew install aspell-sv Error: No available formula with the name "aspell-sv" ==>

“Large” scale spell checking in Python

若如初见. 提交于 2020-07-05 07:52:58
问题 Surprisingly I've been unable to find anyone else really doing this, but surely someone has. I'm working on a python project currently that involves spell checking some 16 thousand words. That number of words is only going to grow unfortunately. Right now I'm pulling words from Mongo, iterating through them, and then spell checking them with pyenchant. I've removed mongo as the potential bottleneck by grabbing all my items from there first. That leaves me with around 20 minutes to process

“Large” scale spell checking in Python

元气小坏坏 提交于 2020-07-05 07:52:02
问题 Surprisingly I've been unable to find anyone else really doing this, but surely someone has. I'm working on a python project currently that involves spell checking some 16 thousand words. That number of words is only going to grow unfortunately. Right now I'm pulling words from Mongo, iterating through them, and then spell checking them with pyenchant. I've removed mongo as the potential bottleneck by grabbing all my items from there first. That leaves me with around 20 minutes to process

Spelling mistakes - Pyenchant

a 夏天 提交于 2020-01-13 20:23:30
问题 I tried using python library for spell-check,correcting and replacing. For some complex spelling correction, I need to have a second opinion and to see replaced word underlined or strike through. Even if the file output is in rtf format, it is ok. How to solve it? Efforts so far. import enchant from enchant.checker import SpellChecker chkr = SpellChecker("en_UK","en_US") spacedfile = "This is a setence. It has speeelinng mistake." chkr.set_text(spacedfile) for err in chkr: sug = err.suggest()