2016-03-01 28 views
0

您好我工作Treetager從數據中提取名詞,但是我收到以下錯誤消息。treetager - Linux的 - 錯誤:指定的文件無法找到:

這裏是我的[R腳本

A <- Data_raw$SourceText[10:15] 
A 

## [1] "Hi ... they ... they rather do very helpful and I like your ... have to move with my ... problem dollars. So everything looks good. Thank you very much." 

library(koRpus) 
tagged.text <- treetag(A[1], treetagger="manual", lang="en", 
    TT.options = list(path= "~/bin/treetagger", preset="en")) 

錯誤:

**Error: Specified file cannot be found:** 
Hi ... they ... they rather do very helpful and I like your ... have to move with my ... problem dollars. So everything looks good. Thank you very much. 
**In addition: Warning message: 
In normalizePath(file) :** 
    path[1]="Hi ... they ... they rather do very helpful and I like your ... have to move with my ... problem dollars. So everything looks good. Thank you very much.": No such file or directory 

回答

1

我有我自己解決問題。 爲「treetag」命令的默認輸入是一個文本文件,並在TT.options「路徑」應該在哪裏treetager文件/文件夾存在(CMD,倉& LIB)

以下是更正命令的路徑。

library(koRpus) 
tagged.text <- treetag("~/inputfile.txt", treetagger="manual", lang="en", 
    TT.options = list(path= "~/", preset="en")) 
相關問題