@Override
    public List<Word> arrangeWords(XmlList xfact) {
      List<Word> verbs = xfact.part("verb").getWords();
      List<Word> subject = xfact.part("subject").getWords();
      List<Word> object = xfact.part("object").getWords();
      List<Word> adverbs = xfact.part("adverbs").getWords();

      List<Word> arranged = new ArrayList<Word>();
      arranged.addAll(subject);
      arranged.addAll(verbs);
      arranged.addAll(object);
      arranged.addAll(adverbs);

      return arranged;
    }
예제 #2
0
 @Override
 public String phrase(XmlList best) {
   return best.printStr();
 }