开发者

ANTLR for Writing JAPE Grammar

I am using GATE to process texts written in natural language. I have to extract height, weight, bp etc from the text and store it in structured form. Now, these things(i.e height, weight etc) can be written in many forms which is unknown to me. Writing JAPE grammar for all the different ways I can come up with, is merely hard-coding it. Do I hav开发者_开发问答e any other option to process the docs in a more flexible way?

Also, I am confused as to whether I can use ANTLR to generate jape grammar by presenting different ways of writing height, weight etc?

The text will contain the following:

Vitals: Height: 72 inches, Weight is 170 pounds, T is 89.9 degree Fahrenheit. OR
Vitals: He is 184 cm tall, his weight was 67.8 Kg, RR 16 (its respiration rate). OR
Vitals: height is 6ft 3 in, he weighs 70 kg, pulse is 67, Temperature 99.8 degrees.

Now I use JAPE grammar and ANNIE to tokenize the text to extract these vitals and store in structured form. Will using ANTLR be flexible to tokenize this such text? Flexible in the sense that I should not hard-code it for each way of representation, as you see height, weight etc can be represented in many forms.

Will that be a good idea to search for or develop any grammar generator that would generate jape grammars?

If you require any detail to better understand the problem pls let me know.

Thanks a lot!!


You can try JAPE lightway alternative Gexp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜