标签: aspell

/ bin/sh:apt-get:找不到

我正在尝试将dockerFile更改为与aspell一起使用.我有一个bash脚本,我想要在一个码头包装

Step 4: Wrap the script in a Docker container.

The sample SDK we downloaded earlier contains an example of an action wrapped in a Docker container. In particular, the sample SDK includes a Dockerfile that builds the C program in client/example.c and installs the binary as /blackbox/client/action .

The key line in the sample Dockerfile is:

RUN cd /blackbox/client; gcc -o action example.c

Instead of compiling example.c and installing the binary as an action, we’ll change the Dockerfile to …
Run Code Online (Sandbox Code Playgroud)

bash aspell docker dockerfile

76
推荐指数
2
解决办法
7万
查看次数

R Aspell自制软件

使用OS 10.6在Macbook pro上工作.我最近用R包管理器安装了Aspell包,看起来安装很顺利(没有安装错误).但是当我尝试使用aspell时,我收到以下错误,

> aspell("love")
Error in getSpeller() :
  No word lists can be found for the language "en_US".
Run Code Online (Sandbox Code Playgroud)

我也试过了

> aspell("love", program = "/usr/local/bin/aspell")
Run Code Online (Sandbox Code Playgroud)

我还使用GitHubs自制软件分别安装了aspell和hunspell.当我使用自制软件安装aspell时,我使用了

brew install aspell --lang=en_US
Run Code Online (Sandbox Code Playgroud)

有什么地方我在我的Mac上搜索,仔细检查是否安装了en_US语言?如果我确实发现en_US在那里,有什么建议为什么R没有找到它?

当涉及源文件的安装细微之处时,我有点新手.任何帮助将非常感激.

homebrew r aspell

23
推荐指数
2
解决办法
6928
查看次数

Aspell Dictionary无法打开

当我尝试添加一个单词或忽略所有单词时,Aspell会抛出错误"文件"C:/ Program Files(x86)/Aspell/en.pws"无法打开以进行写入".有谁知道导致这个问题的原因以及如何解决这个问题?

permissions spell-checking aspell

21
推荐指数
3
解决办法
9589
查看次数

mac os x上的emacs,如何让拼写检查工作

我正在从Windows迁移到Mac,我花了整整一夜试图让emacs工作.

我已经安装了GNU emacs并简单地复制了我的Windows .emacs文件,除了拼写检查之外,这似乎没问题.我安装了cocoAspell并按照此设置说明添加路径并将ispell更改为aspell,但是当我运行拼写检查时,我得到了

Error: The file "/use/local/lib/aspell-0.60/english" can not be opened for reading.
Run Code Online (Sandbox Code Playgroud)

和FlySpell也不起作用.

好像它正在查看错误的目录,但我已经有了

(setq ispell-program-name "aspell"
      ispell-dictionary "english"
      ispell-dictionary-alist
      (let ((default '("[A-Za-z]" "[^A-Za-z]" "[']" nil
                       ("-B" "-d" "english" "--dict-dir"
                        "/Library/Application Support/cocoAspell/aspell6-en-6.0-0")
                       nil iso-8859-1)))
        `((nil ,@default)
          ("english" ,@default))))
Run Code Online (Sandbox Code Playgroud)

它指向正确的字典目录"/ Library/Application Support/cocoAspell/aspell6-en-6.0-0".我无法弄清楚为什么我得到错误以及如何解决它.


更新:

现在我删除了我的GNU emacs和cocoAspell,并使用自制软件重新安装(和链接)emacs/aspell,如@katspaugh所建议的那样.我删除了上面显示的代码,只留下

(setq ispell-program-name "aspell")
Run Code Online (Sandbox Code Playgroud)

现在,当我进行拼写检查时,我得到了

Searching for program: No such file or directory, aspell
Run Code Online (Sandbox Code Playgroud)

我已经链接了aspell brew link aspell,为什么它仍然无法找到它?

macos emacs spell-checking aspell flyspell

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

如何在php5/ubuntu中安装pspell?

我正在尝试在Ubuntu中为PHP 5安装pspell.我已经安装了这是需要pspell运行如图所示的aspell库在这里

我不确定是否有任何需要更改的设置等.

当我尝试执行下面提到的代码行时

$pspell_link = pspell_new("en");

我收到一个错误

Fatal error: Call to undefined function pspell_new()

什么可能是错的?

任何帮助非常感谢.

php ubuntu aspell

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

使用命令行拼写检查文件,非交互式

我有一个大文本文件,包含许多错误/拼写错误的英文单词.我正在寻找一种在Linux中使用命令行拼写检查器编辑此文件的方法.我找到了一些方法来做到这一点,但根据我的搜索,他们都以互动的方式工作.我的意思是,看到一个错误/拼写错误的单词,他们建议对用户进行一些更正,他/她应该选择其中一个.由于我的文件相当大,并且包含许多错误的单词,我无法以这种方式编辑它.我正在寻找一种方法来告诉拼写检查器使用第一个候选人替换所有错误的单词.有没有办法做到这一点?(a/hun)法术有没有选择这样做?

问候.

linux command-line spell-checking aspell hunspell

11
推荐指数
2
解决办法
5821
查看次数

自动使用Vim和XML进行拼写检查

当vim检查XML文档的拼写时,它似乎默认为检查属性等,而不是标记之间的文本.这可以通过运行以下两个命令轻松解决:

:syn spell toplevel
:redraw
Run Code Online (Sandbox Code Playgroud)

我希望Vim默认这样做.但是,将这两个命令添加到我的vimrc似乎没有任何影响; 每次启动Vim时都必须手动执行它们.还有另一种方法可以让Vim默认检查XML标签之间的拼写吗?

xml vim aspell

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

Emacs Windows拼写检查 - aspell或hunspell

我在Windows XP操作系统上使用emacs 23.1.50版本.我无法使用emacs wiki提供的示例设置hunspell或aspell作为emacs的一部分.任何人都有Windows XP的工作混淆,请帮助我.

windows emacs installation aspell hunspell

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

红宝石中简单的拼写检查方法/宝石?

我正在寻找一种相对快速的方法来检查单词是否拼写错误,无论是使用gem还是API.

我尝试过使用几种宝石 - raspell,ffi-aspell,hunspell-ffi,spell_cheker和spellchecker--每种都有不同的错误.

我对ruby很新,并希望有一个简单的解决方案(我正在处理大量的短文本文件,并且想要计算错误拼写的单词的百分比),这不包括从头开始构建的东西.

尝试ffi-aspell时,我收到以下错误:

/Users/ntaylorthompson/.rvm/gems/ruby-1.9.2-p320/gems/ffi-aspell-0.0.3/lib/ffi/aspell/speller.rb:121: [BUG] Segmentation fault
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin11.4.0]

-- control frame ----------
c:0005 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC  :speller_check
c:0004 p:0113 s:0013 b:0013 l:000012 d:000012 METHOD /Users/ntaylorthompson/.rvm/gems/ruby-1.9.2-p320/gems/ffi-aspell-0.0.3/lib/ffi/aspell/speller.rb:121
c:0003 p:0049 s:0007 b:0007 l:0005a8 d:0005d0 EVAL   ffi-aspell_test.rb:5
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0005a8 d:0005a8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
ffi-aspell_test.rb:5:in `<main>'
/Users/ntaylorthompson/.rvm/gems/ruby-1.9.2-p320/gems/ffi-aspell-0.0.3/lib/ffi/aspell/speller.rb:121:in `correct?'
/Users/ntaylorthompson/.rvm/gems/ruby-1.9.2-p320/gems/ffi-aspell-0.0.3/lib/ffi/aspell/speller.rb:121:in `speller_check'

-- C level backtrace information -------------------------------------------

[NOTE]
You may …
Run Code Online (Sandbox Code Playgroud)

ruby spell-checking aspell spelling hunspell

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

自动更正拼写检查程序

我有一个TSV(制表符分隔值)文件,我需要拼写检查拼写错误和组合单词(即'我爱你'和'Iloveyou').

我在我的机器上安装了Aspell,可以使用aspell()函数在R中运行它.

files <- "train2.tsv"
 res <- aspell(files)
 str(res)
 summary(res)
Run Code Online (Sandbox Code Playgroud)

但是,在R中运行它的输出只是拼写错误的单词列表和可能的建议.

>  summary(res)
Possibly mis-spelled words:
 [1] "amant"        "contaneir"    "creat"        "ddition"      "EssaySet"     "EssayText"    "experiament"  "expireiment"  "expirement"  
[10] "Fipst"        "infomation"   "Inorder"      "measureing"   "mintued"      "neccisary"    "officialy"    "renuminering" "rinsen"      
[19] "sticlenx"     "sucessfully"  "tipe"         "vineager"     "vinigar"      "yar"   

>  str(res)
Classes ‘aspell’ and 'data.frame':      27 obs. of  5 variables:
 $ Original   : chr  "EssaySet" "EssayText" "expirement" "expireiment" ...
 $ File       : chr  "train2.tsv" "train2.tsv" "train2.tsv" "train2.tsv" ...
 $ Line       : int  1 1 3 3 …
Run Code Online (Sandbox Code Playgroud)

python spell-checking r aspell nltk

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