Questions tagged [pyenchant]

Python bindings for the Enchant spellchecking system

The pyenchant package provides a set of Python language bindings for the Enchant spellchecking library (also see tag ).

126 questions
3
votes
2 answers

pyenchant installation on OS X Yosemite

I am trying to install pyenchant on Mac OS X Yosemite. It works fine on linux machines but not in mac, I am having the following error: ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a…
user2161903
  • 577
  • 1
  • 6
  • 22
3
votes
2 answers

Error Importing Pyenchant in Python 3

I was able to install pyenchant, using pip install pyenchant and brew install enchant. However, when I go to import enchant, I get the following error: >>> import enchant Traceback (most recent call last): File "", line 1, in
Adam_G
  • 7,337
  • 20
  • 86
  • 148
3
votes
1 answer

Python - Check if string is the start of an English word

I've been playing around with various modules (e.g. PyEnchant), and what I want to do is determine if a string is the beginning of an English word. E.g. Smo -> Smoke A x -> x-ray Elx -> NULL Don -> Done Brj -> NULL Bes -> Besiege Nix -> Nixed But…
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
3
votes
1 answer

PyEnchant raises WinError 193 on import, using Python 3.3.4

PyEnchant throws an error when I try to import it. I've installed and uninstalled it using both pip and the exe they provide on their site. Just an example using Python through Command Prompt: >>> import enchant Traceback (most recent call…
Koraken
  • 115
  • 1
  • 11
3
votes
1 answer

pyenchant cirtial enchant_is_all_caps and enchant_is_title_case assertion message

I use pyenchant to auto-correct words, e.g. import enchant myDic = enchant.Dict('en_EN') print myDict.check('foo') Problem: I get the following error message from enchant, though it does not crash ** (process:24563): CRITICAL **:…
ezdazuzena
  • 6,120
  • 6
  • 41
  • 71
3
votes
1 answer

Python PyEnchant Segmentation fault or invalid pointer

I have a multi-threaded Python application which calls PyEnchant. I am no Python expert and much of the code comes from a third party. What I have done is to add code to call PyEnchant from the multi-threaded application. Since I made the change the…
Dan-Dev
  • 8,957
  • 3
  • 38
  • 55
2
votes
2 answers

How to check the frequency of a word in the English language

My problem: I want to check if the provided word is a common English word. I'm using pyenchant currently to see if a word is an actual word but I can't find a function in it that returns the frequency of a word/if it's a common word. Example…
Brian C
  • 73
  • 7
2
votes
1 answer

pyenchant for other languages

I know this was a topic before but unfortunately, nothing is working when it comes to the old solutions. So I need to figure out how to use pyenchant for german. If I use enchant.list_languages() it just shows me all kinds of English…
RoKa
  • 105
  • 6
2
votes
1 answer

How to iterate over pandas rows containing lists of string to check whether each word is in english or not?

I have a pandas dataframe which contains review texts. After text preprocessing I ended up with list of strings in each row. Now I want to iterate over each row of these lists of strings to check whether each string is in english or not. I want to…
2
votes
0 answers

PyEnchant - correct mistakes with words from personal word list

I am using PyEnchant to spellcheck a large German text with lots of medical terms. To avoid that the medical terms are wrongly marked as errors, I am using enchant.DictWithPWL as explained here. My personal word list (PWL) contains many medical…
Lemon
  • 1,394
  • 3
  • 14
  • 24
2
votes
1 answer

Creating a Custom Filter using PyEnchant

I am new to using the PyEnchant Library. With PyEnchant, I want to write a custom code to : Ignore certain words like "Internet Slangs" from the Spell Check - May be a Custom Filter can be helpful ??? Replace abbreviations like gonna with "going…
Gauri Padbidri
  • 371
  • 4
  • 15
2
votes
1 answer

Facing difficulty while installing pyenchant in python 3.6(windows 7)

I am unable to install pyenchant library in python 3.6. I tried to install it using pip install pyenchant command but it didn't work.
Shirohige
  • 243
  • 1
  • 3
  • 14
2
votes
1 answer

Aspell installed but not in the list of pyenchant providers

I'm currently trying to improve the spelling of some textual data, and to do that I'm using pyEnchant 1.6.8 (python3.3, Windows 8). As far as providers go, only Myspell and Ispell are available. I would like to try to use Aspell, as I've read…
Gu Chams
  • 21
  • 3
2
votes
0 answers

How do I increase performance of PyEnchant for spelling correction?

Consider there is a big list of words and PyEnchant spelling correction has to be performed on every single word in this list. I use a custom dictionary for spelling correction which gets updated over time. As I have seen, Spelling correction…
ngrj
  • 337
  • 1
  • 3
  • 12
2
votes
1 answer

EC2 Enchant Can't Find Dictionary en_US

I'm trying to run the command d = enchant.Dict('en_US') but am getting an error message "enchant.errors.DictNotFoundError: Dictionary for language 'en_US' could not be found" I've run the command sudo yum install aspell -en and tried setting the…
Howard Zoopaloopa
  • 3,798
  • 14
  • 48
  • 87
1 2
3
8 9