2016-03-01 3 views
0

Salut, je travaille treetager pour extraire les noms à partir des données, mais je reçois le message d'erreur ci-dessous.treetager - Linux - erreur: Le fichier spécifié est introuvable:

Voici mon script 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")) 

L'erreur:

**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 

Répondre

1

Je résoudre le problème moi-même. L'entrée par défaut de commande « treetag » est un fichier texte et le « chemin » dans TT.options devrait être le chemin où les fichiers treetager/dossiers existent (cmd, bin & lib)

Voici la commande corrigée.

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