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
2012年12月12日星期三
HOME
Unlabelled
From english natural language text to java code
From english natural language text to java code
About Emirates Schools مدرستي الاماراتية
订阅:
博文评论 (Atom)
Post Top Ad
About the editor
Hello! My name is Mohamed, I work here on my blog and I share with you all new on the internet to benefit everyone and enrich the Arabic content, I am always happy to receive your comments and inquiries through the contact form :)
没有评论:
发表评论