有没有一种好方法可以让 MS Word 2010 拼写检查忽略技术文档中的变量名称(例如:像带有下划线的单词)?
我不应该加载数据字典来完成此操作,或将这些单词添加到 MS Word 中的字典中。
我尝试创建一个样式“代码”,但它将字体更改为全部粗体或非粗体,这不是我想要的。
我在WMD textarea和markdown上卖了,但我也想给我的用户提供相同的功能!
我试图在Node.js中同步检查单个单词的拼写.我找到的所有库(拼写检查器,教师,拼写器......)都有异步调用,这对我不起作用.
这是我的代码的结构:
function mycheck(w) {
spell.check(w, function(err, correct, suggestions) {
if (correct) {
return true;
}
else {
return false;
}
});
}
Run Code Online (Sandbox Code Playgroud)
问题是,mycheck始终是未定义的,因为它spell.check是异步的.此外,我不能只是mycheck异步,因为这不适合我的程序的其余部分.
还有另一种拼写检查方法(同步)或同步方法吗?我可以使用某种"帮助"包来使函数同步.
非常感谢!:d
我正在尝试完成拼写检查项目并遇到一些问题.我正在尝试使用strlen和strcmp比较文章和字典中的单词,但编译器告诉我标识符"strlen"和"strcmp"是未定义的.我不知道该怎么做.此外,当我加载char(article)到int ArticleLength,它告诉我,我不能烧焦文章INT使用.我是一个初学者,需要一些帮助.到目前为止,这是我的代码.
#include <stdio.h> // provides declarations for printf and putchar
#include <stdint.h> // provides declarations for int32_t uint32_t and the other (new) standard C type
/* You must write this function (spellCheck). Do not change the way the function is declared (i.e., it has
* exactly two parameters, each parameter is a standard (mundane) C string (see SpellCheck.pdf).
* You are expected to use reasonable programming style. I *insist* that you …Run Code Online (Sandbox Code Playgroud) 我想知道拼写正确的 api 可用于 google/bing 以外的商业/非商业用途。
我正在寻找自动拼写一个单词的方法,如果该单词拼写错误并且似乎是两个单词的组合。例如,“ considerationof”应为“ consideration of”。任何线索或任何示例将不胜感激。谢谢!
拼写更正时请考虑以下事项:
from autocorrect import spell
import re
WORD = re.compile(r'\w+')
def reTokenize(doc):
tokens = WORD.findall(doc)
return tokens
text = ["Hi, welcmoe to speling.","This is jsut an exapmle, but cosnider a veri big coprus."]
def spell_correct(text):
sptext = []
for doc in text:
sptext.append(' '.join([spell(w).lower() for w in reTokenize(doc)]))
return sptext
print(spell_correct(text))
Run Code Online (Sandbox Code Playgroud)
这是上面一段代码的输出:
如何停止在 jupyter 笔记本中显示输出?特别是如果我们有大量的文本文档,就会产生大量的输出。
我的第二个问题是:在大数据上应用时,如何提高代码的速度和准确性(例如,请检查输出中的“veri”一词)?有没有更好的方法来做到这一点?我感谢您以更快的速度做出回应和(替代)解决方案。
api ×1
autocorrect ×1
c ×1
c# ×1
dictionary ×1
javascript ×1
ms-word ×1
nlp ×1
node.js ×1
python ×1
spelling ×1
strcmp ×1
strlen ×1
wmd ×1
wpf ×1