gate

Read annotated data from GATE datastore

感情迁移 提交于 2019-12-08 02:50:34
问题 I use GATE for manually annotating a large amount of texts by its contained emotions. To further process this text, I like to export that out of the datastore into my own Java application. I didn't found documentation about how to do that. I already wrote a program to import data into the datastore, but I don't have an idea how to get the annotated out of the datastore. I also tried to open the lucene based datastore using Luke (https://code.google.com/p/luke/). It's a tool, that is able to

How do you use the GATE Twitter part-of-speech tagger as a model in the StanfordCoreNLP code?

女生的网名这么多〃 提交于 2019-12-06 17:04:03
问题 How do you use the GATE Twitter part-of-speech tagger as a model in the StanfordCoreNLP code? The models are here: https://gate.ac.uk/wiki/twitter-postagger.html . But, the models don't appear to be in the StanfordCoreNLP format. I tried downloading the model file from Gate, and putting in it my classpath. The file is found, but is does not have the right header: Properties props = new Properties(); props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref"); //props.put("pos

Read annotated data from GATE datastore

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 05:33:09
I use GATE for manually annotating a large amount of texts by its contained emotions. To further process this text, I like to export that out of the datastore into my own Java application. I didn't found documentation about how to do that. I already wrote a program to import data into the datastore, but I don't have an idea how to get the annotated out of the datastore. I also tried to open the lucene based datastore using Luke ( https://code.google.com/p/luke/ ). It's a tool, that is able to read a Lucene index. But it was not possible to open the Gate Lucene datastore using that tool :( Does

USE (NLP) GATE TOOL FOR NAMED-ENTITY [closed]

偶尔善良 提交于 2019-12-05 01:04:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Can I use GATE http://gate.ac.uk/ within my java program to extract named-entity. If yes, could you give any examples or guide me to some sources. Thank you 回答1: Your question is really two questions: how to use GATE to find named entities and maybe how to embed GATE into your

How do you use the GATE Twitter part-of-speech tagger as a model in the StanfordCoreNLP code?

会有一股神秘感。 提交于 2019-12-04 21:31:57
How do you use the GATE Twitter part-of-speech tagger as a model in the StanfordCoreNLP code? The models are here: https://gate.ac.uk/wiki/twitter-postagger.html . But, the models don't appear to be in the StanfordCoreNLP format. I tried downloading the model file from Gate, and putting in it my classpath. The file is found, but is does not have the right header: Properties props = new Properties(); props.put("annotators", "tokenize, ssplit, pos, lemma, ner, parse, dcoref"); //props.put("pos.model", "gate-EN-twitter-fast.model"); StanfordCoreNLP pipeline = new StanfordCoreNLP(props); Here is

Parse GATE Document to get Co-Reference Text

狂风中的少年 提交于 2019-12-04 15:30:24
I'm creating a GATE app which used to find co-reference text. It works fine and I have created zipped file of the app by export option provided in GATE. Now I'm trying to use the same in my Java code. Gate.runInSandbox(true); Gate.setGateHome(new File(gateHome)); Gate.setPluginsHome(new File(gateHome, "plugins")); Gate.init(); URL applicationURL = new URL("file:" + new Path(gateHome, "application.xgapp").toString()); application = (CorpusController) PersistenceManager.loadObjectFromUrl(applicationURL); corpus = Factory.newCorpus("Megaki Corpus"); application.setCorpus(corpus); Document

Getting OOM while using GATE on large data set

夙愿已清 提交于 2019-12-02 20:26:35
问题 I am quite new to NLP and am using GATE for it. I am getting OOM Exception if I run my code for large data set(containing 7K+ records). Below is the code where exception occurs. /** * Run ANNIE * * @param controller * @throws GateException */ public void execute(SerialAnalyserController controller) throws GateException { TestLogger.info("Running ANNIE..."); controller.execute(); /**** GateProcessor.java:217 ***/ // controller.cleanup(); TestLogger.info("...ANNIE complete"); } Here is the log

Getting OOM while using GATE on large data set

霸气de小男生 提交于 2019-12-02 12:34:52
I am quite new to NLP and am using GATE for it. I am getting OOM Exception if I run my code for large data set(containing 7K+ records). Below is the code where exception occurs. /** * Run ANNIE * * @param controller * @throws GateException */ public void execute(SerialAnalyserController controller) throws GateException { TestLogger.info("Running ANNIE..."); controller.execute(); /**** GateProcessor.java:217 ***/ // controller.cleanup(); TestLogger.info("...ANNIE complete"); } Here is the log : Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.HashMap.addEntry

Binding error with slf4j

丶灬走出姿态 提交于 2019-12-01 18:56:41
I am using a tool, GATE for text analysis and while installing a PR I get the following error- SLF4J: The requested version 1.5.6 by your slf4j binding is not compatible with [1.6, 1.7] Now, I have searched the internet regarding this and have found this- Mixing different versions of slf4j-api.jar and SLF4J binding can cause problems. For example, if you are using slf4j-api-1.7.2.jar, then you should also use slf4j-simple-1.7.2.jar, using slf4j-simple-1.5.5.jar will not work. I am using slf4j-api-1.7.12 , but this file- slf4j-simple-N does not exist on my computer. How can I resolve this