brmson / yodaqa

A Question Answering system built on top of the Apache UIMA framework.
http://ailao.eu/yodaqa
Other
619 stars 205 forks source link

Executing individual program #5

Closed karimkhanp closed 9 years ago

karimkhanp commented 9 years ago

Hey, just tried to run java files individually while testing.

javac -cp /user/Desktop/karim/software/UIMA/yagogit/yodaqa/gradle/wrapper/gradle-wrapper.jar LATByFocus.java

which gives

LATByFocus.java:5: package org.apache.uima does not exist import org.apache.uima.UimaContext; ^ LATByFocus.java:6: package org.apache.uima.analysis_engine does not exist import org.apache.uima.analysis_engine.AnalysisEngineProcessException; ^ LATByFocus.java:7: package org.apache.uima.fit.component does not exist import org.apache.uima.fit.component.JCasAnnotator_ImplBase; ^ LATByFocus.java:8: package org.apache.uima.fit.util does not exist import org.apache.uima.fit.util.JCasUtil;

....

and so on. Is it possible to execute files https://github.com/brmson/yodaqa/tree/master/src/main/java/cz/brmlab/yodaqa/analysis/question individually?

pasky commented 9 years ago

Hi! This is certainly not possible. These are UIMA annotators, so you need to run them within an UIMA pipeline - even a simple one, but you will need to reuse some dkpro parsing modules, roughly what is listed in QuestionAnalysisAE. And they do depend on a lot of other modules, so you need to take the dependencies from build.gradle and set up your own build system.

But sorry, this is not something I can help you with.

karimkhanp commented 9 years ago

Hey pasky, thanks, it cleared my doubt.