示例#1
0
 private static Sentence wordify(List wList) {
   Sentence s = new Sentence();
   for (Object obj : wList) {
     s.add(new Word(obj.toString()));
   }
   return s;
 }
示例#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;
 }
示例#3
0
 private static Sentence cutLast(Sentence s) {
   return new Sentence(s.subList(0, s.size() - 1));
 }