Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 3
0
 private static Sentence cutLast(Sentence s) {
   return new Sentence(s.subList(0, s.size() - 1));
 }