johnmm / jatetoolkit

Automatically exported from code.google.com/p/jatetoolkit
0 stars 0 forks source link

Config files #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

java -Xmx1024m -classpath 
/home/minev/jate/dist/jate.jar:/home/minev/jate/libs/apache-log4j-1.2.15/log4j-1
.2.15.jar:/home/minev/jate/libs/apache-opennlp-1.51/jwnl-1.3.3.jar:/home/minev/j
ate/libs/apache-opennlp-1.51/opennlp-maxent-3.0.1-incubating.jar:/home/minev/jat
e/libs/apache-opennlp-1.51/opennlp-tools-1.5.1-incubating.jar:/home/minev/jate/l
ibs/dragon/dragontool.jar:/home/minev/jate/libs/hsqldb2.2.3/hsqldb.jar:/home/min
ev/jate/libs/hsqldb2.2.3/sqltool.jar:/home/minev/jate/libs/wit-commons/wit-commo
ns.jar: uk.ac.shef.dcs.oak.jate.test.TestFrequency 
/home/minev/jate/nlp_resources/ test/example test/output

What is the expected output? What do you see instead?

Exception in thread "main" java.io.FileNotFoundException: 
D:/work/JATR_SDK/jate_googlecode/nlp_resources/stoplist.txt (No such file or 
directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:120)
    at java.io.FileReader.<init>(FileReader.java:55)
    at uk.ac.shef.dcs.oak.jate.util.control.StopList.loadStopList(StopList.java:44)
    at uk.ac.shef.dcs.oak.jate.util.control.StopList.<init>(StopList.java:30)
    at uk.ac.shef.dcs.oak.jate.test.TestFrequency.main(TestFrequency.java:70)

What version of the product are you using? On what operating system?

Product version: 1.1
OS: Mac OS 10.6 and Ubuntu Linux 11.04

Please provide any additional information below.

I've updated the config file jate_1.1.properties (once in root dir and in /src).

Original issue reported on code.google.com by mihail.m...@gmail.com on 21 Feb 2013 at 4:38

GoogleCodeExporter commented 9 years ago
If you are using IntelliJ - check your Run configurations. 

There are predefined program arguments in the project referencing paths that 
you have to change.

Original comment by OakNi...@gmail.com on 24 Feb 2013 at 12:01

Attachments:

GoogleCodeExporter commented 9 years ago
Very sorry for late reply, I didnt get a notification email of this.

Also thanks to OakNinja

Hope you have managed to solve this problem. If not, you only need to edit 
"jate.properties" in "/src". Change the property "jate.system.nlp" to "[your 
jate path]/nlp_resources". The missing file "stoplist.txt" should be there.

Original comment by ziqizhan...@googlemail.com on 7 Mar 2013 at 11:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Copying the two property files from the src folder to the main folder solved 
the issue.

Great work guys!

Original comment by mihail.m...@gmail.com on 16 Apr 2013 at 3:54

GoogleCodeExporter commented 9 years ago
After changing the property also, I am getting the same error message. What 
else can I try.

Original comment by swami.n...@gmail.com on 26 Jun 2013 at 12:15

GoogleCodeExporter commented 9 years ago
Are you using the distributed jar in "dist"? If so , can you try changing the 
property file within the jar package? Open it with 7zip you can see the 
property file is bundled within. If you are using that jar in your library you 
need to change that property file. 

Original comment by ziqizhan...@googlemail.com on 25 Jul 2013 at 10:08

GoogleCodeExporter commented 9 years ago
Dear Mihail,

I a beginner in running jate and I'm really baffled on how to run it. I open 
runtime and copy this to there

java -jar "Address\dist\jate.jar"

Nothing happened.

I wonder if you tell me step by stem am I doing right or not?

Thanks

Original comment by nlpprogr...@gmail.com on 16 Feb 2014 at 3:47

GoogleCodeExporter commented 9 years ago
Hi there,

1. Add the *.jar files to your classpath, e.g.
export CLASSPATH=$CLASSPATH"path_to_all_jar_files"
2. Copy the two property files from /src to the main folder
3. If neccessary update the jate_1.1.properties file
4. Run with java -Xmx4g uk.ac.shef.dcs.oak.jate.test.TestTfIdf Input/ Output/

Mihail

Original comment by mihail.m...@gmail.com on 18 Feb 2014 at 10:05

GoogleCodeExporter commented 9 years ago
Hello,
I have the same problem,  he doesn't see the root. who can help me??

Original comment by bensaido...@gmail.com on 10 Mar 2015 at 9:07

GoogleCodeExporter commented 9 years ago
FWIW: I have fixed this by introducing a jar: prefix to the config settings 
which will either read the stream from within the jar or extract the necessary 
pieces to your platform's tmp directory.  My work is based off of Alpha2 
snapshot: https://github.com/etheriau/jatetoolkit

Original comment by etheriau...@gmail.com on 17 Apr 2015 at 4:10