标签: spell-checking

特定于上下文的拼写引擎

我相信你们中的一些人会看到Google Wave的演示.我特别想知道拼写检查技术.一个拼写检查器是多么具有革命性,它通过弄清楚一个单词在句子中出现在哪里来提出这些建议?

我之前没有见过这种技术,但其他地方有这样的例子吗?
如果有,那么代码示例和文献在其工作中是什么?

spell-checking google-wave

2
推荐指数
1
解决办法
1268
查看次数

有没有办法检查字符向量中单词的拼写?

要检查的文本是希腊语,但我想知道是否也可以用英语单词.我最初的想法在这里描述,我已经找到了一种使用VBA的方法.但是我想知道是否有办法用R来做.如果在R中没有办法,你会想到比Excel-vba更好的东西吗?

text spell-checking r

2
推荐指数
1
解决办法
1462
查看次数

如何使Solr的拼写检查器忽略大小写?

你如何要求示例拼写检查器忽略大小写?我正在使用演示中显示的所有默认值.
现在我看到,如果我输入古代,它会问"你的意思是古代吗?"我该怎么办?

ps:我的schema.xml中没有"spell"这个词!它是如何工作的?

solr spell-checking

2
推荐指数
1
解决办法
3449
查看次数

如何检查在textview中输入的拼写?

I have one UITextview in which user enter text. after that i take that text as a string and display it in another textview and want the words which are grammatically incorrect.

How to do that?

iphone spell-checking objective-c textview

2
推荐指数
1
解决办法
4181
查看次数

如何不按频率对 SOLR 拼写检查建议进行排序?

如果您在我的暂存索引上搜索ahve,您会得到the作为第一个拼写检查更正,因为出现的内容比索引中的内容多(我索引了 500 个文档)。如果您在我的本地索引上 搜索ahve,您会得到had作为第一个拼写检查更正,因为has比索引中的任何其他单词出现的次数都多。(我有 21 个文档被索引)。 这是从我的暂存索引返回的一个简单的哑巴

<lst name="ahve">
<int name="numFound">5</int>
<int name="startOffset">0</int>
<int name="endOffset">4</int>
<int name="origFreq">0</int>
<arr name="suggestion">
<lst>
<str name="word">the</str>
<int name="freq">112</int>
</lst>
<lst>
<str name="word">are</str>
<int name="freq">67</int>
</lst>
<lst>
<str name="word">have</str>
<int name="freq">44</int>
</lst>
<lst>
<str name="word">acne</str>
<int name="freq">10</int>
</lst>
<lst>
<str name="word">ache</str>
<int name="freq">3</int>
</lst>
</arr>
</lst>
Run Code Online (Sandbox Code Playgroud)

添加spellcheck.onlyMorePopular=truespellcheck.onlyMorePopular=false不会改变任何东西。
有没有办法不按出现频率对返回的建议进行排序?

solr spell-checking

2
推荐指数
1
解决办法
2737
查看次数

Apache Lucene - 改进拼写检查器的结果

我最近使用 Apache Lucene 实现了一个拼写检查器。我的代码如下:

public void loadDictionary() {
    try {
        File dir = new File("c:/spellchecker/");
        Directory directory = FSDirectory.open(dir);
        spellChecker = new SpellChecker(directory);
        Dictionary dictionary = new PlainTextDictionary(new File("c:/dictionary.txt"));
        IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_40, null);
        spellChecker.indexDictionary(dictionary, config, false);
    } catch (IOException e) {
        e.printStackTrace();
    }
}

public String performSpellCheck(String word) {
    try {
         String[] suggestions = spellChecker.suggestSimilar(word, 1);
         if (suggestions.length > 0) {
             return suggestions[0];
         }
         else {
             return word; 
         }
    } catch (Exception e) {
        return "Error";
    }
} …
Run Code Online (Sandbox Code Playgroud)

java apache lucene performance spell-checking

2
推荐指数
1
解决办法
3675
查看次数

C#检查一个单词是否在英文字典中?

我试图通过一个单词列表,并确定每个单词是否是一个有效的英语单词(对于拼字游戏).我不知道如何处理这个问题,我是否必须找到所有英文单词的文本文件,然后使用文件读取和解析方法手动构建数据结构,如trie或hashmap - 或者我可以在某处找到premade ?最简单的方法是什么?

c# dictionary spell-checking

2
推荐指数
1
解决办法
9167
查看次数

自动弹出窗口中的字典建议

我使用 Vim 已经很多年了,但我仍然不知道如何在不按下任何快捷键的情况下在启用自动弹出字典建议的情况下输入文本(例如在记事本++或谷歌安卓键盘中)。

这些是我在 vimrc 中的选项:

set completeopt=longest,menuone  
set omnifunc=syntaxcomplete#Complete
Run Code Online (Sandbox Code Playgroud)

简而言之,我想要的是:
1)打字时自动弹出窗口中只有字典建议。
2) 仅在 supertab 中提供缓冲区词建议(使用 Tab 键)
(但......不包括缓冲区名称)

我怎样才能得到这个?

vim dictionary spell-checking popup

2
推荐指数
1
解决办法
1435
查看次数

如何在 intellij 中更快地纠正拼写错误?

我喜欢 intellij 中的拼写检查,但使用起来很烦人。要修复拼写错误,您必须右键单击,将鼠标悬停在“拼写”上,单击“拼写:更改为”,然后从弹出的新列表中选择一个替代选项。我只想右键单击并单击我想要的单词,或者悬停,或者使用键盘快捷键。一定有更好的办法。

spell-checking intellij-idea

2
推荐指数
1
解决办法
1559
查看次数

emacs __approximate__拼写检查

我需要一个近似的拼写检查器,因为我经常用法语写,没有法语键盘.

我写法语的一种方法是使用C-x 8 ' e组合,但多次使用它太累了.

另一种方法是错误地写单词,然后按ispell-word,以便更正它.例如,'j'ai marchee',为了写"j'aimarché".我必须按下这个组合,因为如果我写"j'ai marche",拼写检查器找不到语义错误.它只检查语法.

我想问一下Emacs中是否存在拼写检查器,我可以按"j'ai marche",它会找到所有近似匹配,包括"j'aimarché".多次按'ee'很累(很多次我找不到一个可以按照我需要的方式完成某种正确形式的近似坏形式).

或者,我感兴趣的是使用英式键盘在emacs中用法语方便地编写的另一种方法...

emacs spell-checking ispell

1
推荐指数
1
解决办法
150
查看次数