Package simplenlg.framework

Examples of simplenlg.framework.WordElement.toXML()


          word = lex.getWord(base, LexicalCategory.NOUN); // Kilgarriff;s interjections are mostly nouns in the lexicon
       
        if (word == null)
          System.out.println("Missing " + base + ":" + cat);
        else
          xmlFile.write(word.toXML());
        line = wordListFile.readLine();;
      }
      xmlFile.write(String.format("</lexicon>%n"));
      wordListFile.close();
      xmlFile.close();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.