Ejemplo n.º 1
0
 private static Sentence wordify(List wList) {
   Sentence s = new Sentence();
   for (Object obj : wList) {
     s.add(new Word(obj.toString()));
   }
   return s;
 }
Ejemplo n.º 2
0
 private static Sentence addLast(Sentence s) {
   Sentence s2 = new Sentence(s);
   // s2.add(new StringLabel(Lexicon.BOUNDARY));
   s2.add(new Word(Lexicon.BOUNDARY));
   return s2;
 }