Git Product home page Git Product logo

Comments (4)

unDocUMeantIt avatar unDocUMeantIt commented on July 19, 2024

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.

michperdomo avatar michperdomo commented on July 19, 2024

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.

unDocUMeantIt avatar unDocUMeantIt commented on July 19, 2024

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.

michperdomo avatar michperdomo commented on July 19, 2024

That did the trick! Thanks so much.

from korpus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.