gate

Jape file to find the pattern within a sentence

回眸只為那壹抹淺笑 提交于 2019-12-01 09:12:12
I need to annotate a part of a sentence if the words i have written in my jape rule appear in the same sentence. Eg the sentence is "The child cannot resist any changes to his routine". I have put words like resist in "trouble.lst" file and changes in "alteration.lst" file. Now in this sentence i need to annotate the part "resist any changes" as "A3b". I have tried using the below code but it is not considering words in the same sentence. My jape rule is taking words from different sentences as well. Suppose resist comes in one sentence and changes in some other later sentence, so this code is

Sentence Classification (Categorization)

别说谁变了你拦得住时间么 提交于 2019-11-30 16:45:39
I have been reading about text classification and found several Java tools which are available for classification, but I am still wondering: Is text classification the same as sentence classification! Is there any tool which focuses on sentence classification? Theres no formal difference between 'Text classification' and 'Sentence classification'. After all, a sentence is a type of text. But generally, when people talk about text classification, IMHO they mean larger units of text such as an essay, review or speech. Classifying a politician's speech into democrat or republican is a lot easier

Sentence Classification (Categorization)

主宰稳场 提交于 2019-11-30 16:20:37
问题 I have been reading about text classification and found several Java tools which are available for classification, but I am still wondering: Is text classification the same as sentence classification! Is there any tool which focuses on sentence classification? 回答1: Theres no formal difference between 'Text classification' and 'Sentence classification'. After all, a sentence is a type of text. But generally, when people talk about text classification, IMHO they mean larger units of text such

How to add new Lookup into DefaultGazetteer programatically

孤街浪徒 提交于 2019-11-28 10:06:32
问题 I want to add new Lookup into loaded DefaultGazetteer programatically. If I add this string via file, it works perfectly Any help will be much welcomed. Thanks String test="hello@code=555.5@code_asociated_description=World@code1=@code2=@code3=@code4=@code5=@code6=@code7="; gazetter.add(test, new Lookup("glossary.lst", "test", "test", "en")); theList.add(new GazetteerNode(test, "@")); 回答1: This will add a Lookup only: Lookup l = new Lookup("glossary.lst", "major", "minor", "en", "AnnotType");

Tools for text simplification (Java) [closed]

一曲冷凌霜 提交于 2019-11-27 11:03:44
What is the best tool that can do text simplification using Java? Here is an example of text simplification: John, who was the CEO of a company, played golf. ↓ John played golf. John was the CEO of a company. Khairul I see your problem as a task of converting complex or compound sentence into simple sentences. Based on literature Sentence Types , a simple sentence is built from one independent clause. A compound and complex sentence is built from at least two clauses. Also, clause must have subject and verb. So your task is to split sentence into clauses that form your sentence. Dependency

Tools for text simplification (Java) [closed]

匆匆过客 提交于 2019-11-26 22:19:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What is the best tool that can do text simplification using Java? Here is an example of text simplification: John, who was the CEO of a company, played golf. ↓ John played golf. John was the CEO of a company. 回答1: I see your problem as a task of converting complex or compound sentence into simple sentences.