Comments (4)
it's a bit hard to say without knowing anything about your setup, but does the directory ~/bin/treetagger/bin
actually exist? if "directory cannot be found" comes up, it usually means you need to check your TreeTagger location. a correct TreeTagger installation would also contain a bin
directory below it's root directory.
assuming you're using GNU/linux, what does the command ls -l ~/bin/treetagger
show?
from korpus.
This is what I get with the following:
PSY-078GG7:~ dwlab$ ls -l Desktop/TreeTagger/bin
total 440
-rwxr-xr-x@ 1 dwlab staff 72940 Apr 8 2019 train-tree-tagger
-rwxr-xr-x@ 1 dwlab staff 75028 Apr 8 2019 tree-tagger
-rwxr-xr-x@ 1 dwlab staff 71052 Apr 8 2019 tree-tagger-flush
But even if I use ~Desktop/TreeTagger/bin/tree-tagger, I get the same error.
tagged.text <- treetag(
"sample_text.txt",
treetagger="manual",
lang="en",
TT.options=list(
path="~Desktop/TreeTagger/bin/tree-tagger",
preset="en"
),
doc_id="sample"
)
Error: Specified directory cannot be found:
~Desktop/TreeTagger/bin/tree-tagger/bin
from korpus.
looks like you have installed TreeTagger to Desktop/TreeTagger
, you shouldn't point treetag()
to ~/bin/treetagger
.
also, you must not omit a /
after ~
because ~Desktop
will be interpreted as a directory with a tilde as it's first character, but ~/Desktop
means the directory Desktop
in your home directory, which is what you want.
so using path="~/Desktop/TreeTagger"
should do the trick.
from korpus.
That did the trick! Thanks so much.
from korpus.
Related Issues (20)
- Missing tags for Danish HOT 6
- incomplete import of LCC corpus HOT 7
- URLs and sequences of punctuation in documents cause some readability measures to fail HOT 1
- How can I extract proper nouns? HOT 8
- Issue on Windows HOT 1
- Error in path.expand(path) : argument 'path' incorrect HOT 24
- Error: english-lexicon.txt not found HOT 3
- Working in Python? HOT 1
- option lexicon HOT 6
- Treetagger do not worh in both koRpus and teststem packages HOT 1
- Incorrect calculation of MTLD? HOT 3
- readability() returns error message HOT 9
- treetegger working with a dataset in R HOT 6
- Error in reading corpus database HOT 5
- Can I use the udpipe annotated results? HOT 2
- character vector "measure" seems to be ignored by lex.div; Fehler in x[["end"]] : Indizierung außerhalb der Grenzen; Fehler in 1:lastValidIndex : Resultat wäre zu langer Vektor HOT 2
- Getting "Awww, this should not happen" error even though the sys.tt.call runs sucessfully HOT 6
- TT.tokenizer not found HOT 3
- Flesch Formula multiplier HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from korpus.