tt4j inizialization

88 views
Skip to first unread message

Leonardo Ceppi

unread,
Mar 11, 2016, 6:13:28 AM3/11/16
to tt4j-users
hi,
i have a problem: I cannot run tt4j on java. I have a project to be completed and to do this I need to run the postagger. I downloaded the tree-tagger in Italian by http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/#Linux and I ran from the terminal (just like the website says). Then I downloaded the project tt4j from github but well i dont go. someone would know tell me what else I have to do to make tt4j of eclipse?

Thanks
Leonardo

Richard Eckart de Castilho

unread,
Mar 11, 2016, 10:46:06 AM3/11/16
to tt4j-...@googlegroups.com
Hi Leonardo,

tt4j is a Maven project. If you really want to use it from the sources, check out how to use Maven projects in Eclipse [1].

Alternatively, download the tt4j JAR file from Maven Central and add it as a library to your Eclipse project [2]

Hope that helps. If you have further questions, please try to be more explicit on which steps exactly you tried, what did not work as expected and in which way did it not work.

Best,

-- Richard

[1] https://books.sonatype.com/m2eclipse-book/reference/creating-sect-importing-projects.html
[2] http://search.maven.org/#artifactdetails%7Corg.annolab.tt4j%7Corg.annolab.tt4j%7C1.2.1%7Cjar

Leonardo Ceppi

unread,
Mar 13, 2016, 7:16:01 AM3/13/16
to tt4j-users
ok, i downloaded the JAR files(org.annolab.tt4j-1.2.1-javadoc.jar, org.annolab.tt4j-1.2.1-sources.jar, org.annolab.tt4j-1.2.1.jar) and i downloaded the gitHub project. So i imported the tt4j project on eclipse. The first step is to run the postagger in italian on eclipse, after i must to import the postagger in my project and to run it. But i don't understand how tree-tagger that i run on the terminal can iteract on eclipse... Of course there are some settings to do the project tt4j, but i don't know this. Can you help me?
thanks
Leonardo

Richard Eckart de Castilho

unread,
Mar 13, 2016, 8:02:17 AM3/13/16
to tt4j-...@googlegroups.com
Hi,

tt4j is for people who know Java and want to call Treetagger from a Java program.
In your Java program, you make calls agains the TT4J API, and TT4J will internally
call treetagger on the command line, pass it input, process its output and give
it back to you in Java.

You will only need the org.annolab.tt4j-1.2.1.jar file.

Assuming you know Java and Linux (because the path names in the examples are Linux-style),
you should be able to use the example on the TT4J homepage to get Treetagger running
on a simple sentence. You also need to download a model from the Treetagger
homepage and specific the path to it.

https://reckart.github.io/tt4j/

If you are not familiar with Java and Eclipse, you should be able to locate lots
of tutorials on Google.

Best,

-- Richard
> --
> You received this message because you are subscribed to the Google Groups "tt4j-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tt4j-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages