How to run Jate on Eclipse ide

54 views
Skip to first unread message

TIAN Changhai

unread,
Feb 13, 2017, 4:33:30 AM2/13/17
to JATE2
Hi,Gao,
I have downloaded the source code of jate2 from github, and import this project into eclipse by using 'Existing Maven Projects'. But I have met a problem when I use 'maven build or install':

[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Java Automatic Term Extraction Toolkit (JATE) 2.0-beta
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.161 s
[INFO] Finished at: 2017-02-13T10:48:44+08:00
[INFO] Final Memory: 20M/228M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jate: Could not resolve dependencies for project uk.ac.shef.dcs:jate:jar:2.0-beta: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path D:\software\java\jre1.8.0_72/../lib/tools.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Would you tell me how to fix it?
Thank you very much.I hope to hear from you soon.
    Best wishes.
TTAN

jieg...@googlemail.com

unread,
Mar 5, 2017, 7:33:10 PM3/5/17
to JATE2
It seems not an issue of JATE2. You may need to try to re-install your SDK. See examples via https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/.

Hope it helps.
Jerry

lotu...@gmail.com

unread,
Jul 13, 2018, 9:11:34 AM7/13/18
to JATE2
Hello 

I m trying to run JATE2  in Intellij IDEA ...
i have imported jate-2.0-beta.7-jar-with-dependencies.jar as a library in my project and this is my first try to run the Class AppTTF  

please if someone can give me direction how to get the output file , 
what I have already tried doesn't work and it gives me only msg and there is no output file!!


import uk.ac.shef.dcs.jate.JATEException;
import uk.ac.shef.dcs.jate.app.AppTTF;
import java.util.HashMap;
import java.util.Map;

public class Jate_Test {


    public Jate_Test() throws JATEException {


        Map<String,String> map = new HashMap<String, String>(  );

        ImmutableMap<String,String> m=new ImmutableMap<String, String>( map );

        m.put("corpusDir", "/Users/carbon/Desktop/donne2/nabil/activities");
        m.put("o", "/Users/carbon/Desktop/test.txt");
        m.put("/Users/carbon/Downloads/solr-testbed ","ACLRDTE");

        AppTTF t=new AppTTF(m);
        t.setOutputFile( "/Users/carbon/Desktop/test.txt" );

    }

    public static void main(String[] args) throws JATEException {

        new Jate_Test();

    }
}


 RESULT

Process finished with exit code 0

Thanks
Best Regards


Jie Gao

unread,
Jul 13, 2018, 10:18:37 AM7/13/18
to JATE2
Hi,

You have to index the document properly first and then use your preferred extractor to extract terms (use 'extract()' method) and then export your candidate terms (use the 'write' method) into the pre-defined output files.

There are plenty of examples in our test cases (e.g., uk.ac.shef.dcs.jate.app.AppATEGENIATest.java).

Hope it helps,
Jerry

Jie Gao

unread,
Jul 13, 2018, 10:45:20 AM7/13/18
to JATE2
To use JATE2 as library, the recommended (more flexible and configurable) way is documented in our wikipage. You can also find an example in my previous work.

Hope it helps,
Jerry

On Friday, 13 July 2018 14:11:34 UTC+1, lotu...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages