protected int[] splitSentence(String sentence){
  String[] w=sentence.split("\\s+");
  int[] words=new int[w.length];
  for (int i=0; i < w.length; i++)   words[i]=Vocabulary.id(w[i]);
  return words;
}

protected int [ ] splitSentence ( String sentence ) { String [ ] w = sentence . split ( "\\s+" ) ; int [ ] words = new int [ w . length ] ; for ( int i = 0 ; i < w . length ; i ++ ) words [ i ] = Vocabulary . id ( w [ i ] ) ; return words ; }
splits a sentence ( on white space ) , then looks up the integer representations of each word using the supplied symbol table .
