spell-checking

UITextView custom spelling and autocorrect

主宰稳场 提交于 2021-01-27 02:56:16
问题 I want to make an iOS text editor for a certain rare human language, and I want it to support my own spell checking and autocorrect systems for that language. In iOS, is it possible to get UITextView to use a custom spell checker and autocorrect system, rather than those of the system's current locale? Or do I have to resort to creating a text view from scratch using Core Text? 回答1: I don’t think there’s a way to actually change the spell-checking mechanism of UITextView . A good approach

Is it possible to find uncertainties of spaCy POS tags?

眉间皱痕 提交于 2021-01-05 09:01:16
问题 I am trying to build a non-English spell checker that relies on classification of sentences by spaCy, which allows my algorithm to then use the POS tags and the grammatical dependencies of the individual tokens to determine incorrect spelling (in my case more specifically: incorrect splits in Dutch compound words). However, spaCy appears to classify sentences incorrectly if they contain grammatical errors, for example classifying a noun as a verb, even though the classified word doesn't even

In spell checker how to get the word that are 3 edits away(norvig)

邮差的信 提交于 2020-08-06 06:10:29
问题 I have been trying to use spell corrector for my database table to correct the address from one table, for which I have used the reference of http://norvig.com/spell-correct.html Using the Address_mast table as a collection of strings I'm trying to correct and update the corrected string in " customer_master " Address_mast ID Address 1 sonal plaza,harley road,sw-309012 2 rose apartment,kell road, juniper, la-293889 3 plot 16, queen's tower, subbden - 399081 4 cognizant plaza, abs road, ziggar

“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

How to use hunspell package to suggest correct words in a column in R?

血红的双手。 提交于 2020-06-16 06:07:58
问题 I'm currently working with a large data frame containing lots of text in each row and would like to effectively identify and replace misspelled words in each sentence with the hunspell package. I was able to identify the misspelled words, but can't figure out how to do hunspell_suggest on a list. Here is an example of the data frame: df1 <- data.frame("Index" = 1:7, "Text" = c("A complec sentence joins an independet", "Mary and Samantha arived at the bus staton before noon", "I did not see

Visual Basic for MS Word code not working for Japanese

纵然是瞬间 提交于 2020-04-30 06:35:11
问题 I'm using the following VB code (authored by macropod, see this stackoverflow question) inside MS Word (Word for Mac v16.16.21) to mark errors and insert the first spell checker suggestion inside a document: Sub SpellCheck() Dim Rng As Range, oSuggestions As Variant For Each Rng In ActiveDocument.Range.SpellingErrors With Rng If .GetSpellingSuggestions.Count > 0 Then Set oSuggestions = .GetSpellingSuggestions .Text = "[" & .Text & "][" & oSuggestions(1) & "]" Else .Text = "[" & .Text & "][]"

Visual Basic for MS Word code not working for Japanese

我只是一个虾纸丫 提交于 2020-04-30 06:34:43
问题 I'm using the following VB code (authored by macropod, see this stackoverflow question) inside MS Word (Word for Mac v16.16.21) to mark errors and insert the first spell checker suggestion inside a document: Sub SpellCheck() Dim Rng As Range, oSuggestions As Variant For Each Rng In ActiveDocument.Range.SpellingErrors With Rng If .GetSpellingSuggestions.Count > 0 Then Set oSuggestions = .GetSpellingSuggestions .Text = "[" & .Text & "][" & oSuggestions(1) & "]" Else .Text = "[" & .Text & "][]"