0

こんにちは、データから名詞を抽出する作業をしている treetager ですが、以下のエラー メッセージが表示されます。

ここに私の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
4

1 に答える 1

1

私は自分で問題を解決しました。「treetag」コマンドのデフォルトの入力はテキスト ファイルであり、TT.options の「パス」は、treetager ファイル/フォルダーが存在するパス (cmd、bin、lib) である必要があります。

これが修正されたコマンドです。

library(koRpus)
tagged.text <- treetag("~/inputfile.txt", treetagger="manual", lang="en", 
    TT.options = list(path= "~/", preset="en"))
于 2016-03-03T16:06:24.367 に答える