From english natural language text to java code - Chinese Muslims

最新帖子

Post Top Ad

2012年12月12日星期三

From english natural language text to java code

It seems that the easiest way to convert/transform/translate an english natural language text to java code is as it is said, i.e. we do not need to use uml, xml, xmi or what ever.

We have to create a java program that parses the natural language text (using opennlp for example), extract subject-verb-object sentences and transform text into java code lines, for example :

Franck goes to the mosk every day five time.

Class Person {

 ///bla bla :)
}

void public main() {

Person Franck;
int day;
int time;

for day  in 1..7 {
for time in 1 .. 5 {
Franck.go(mosk);
}
}

}


of course, there are many errors, but it just to gives an idea of how we could create a Natural Langage Translator to Java.

没有评论:

发表评论

Post Top Ad

聯繫我們

超過600,000+通過社交媒體關注我們的網站立即加入我們  

Ramadhan

博客統計

Sparkline 3258645

نموذج الاتصال

名称

电子邮件 *

消息 *

關於網站

author Chinese Muslims" 是中國穆斯林最高的博客,您將在其中獲得有關伊斯蘭新聞的所有信息。

學到更多 ←