code: public Sentence makeSentence(String[] words, String[] posTags, boolean rootFirst, boolean lowerCased)
      {
          ArrayList<Integer> tokens = new ArrayList<Integer>();
          ArrayList<Integer> tags = new ArrayList<Integer>();
          ArrayList<Integer> bc4 = new ArrayList<Integer>();
          ArrayList<Integer> bc6 = new ArrayList<Integer>();
          ArrayList<Integer> bcf = new ArrayList<Integer>();
  
          int i = 0;
          for (String word : words)
          {
              if (word.length() == 0)
                  continue;
              String lowerCaseWord = word.toLowerCase();
              if (lowerCased)
                  word = lowerCaseWord;
  
              int[] clusterIDs = clusterId(word);
              bcf.add(clusterIDs[0]);
              bc4.add(clusterIDs[1]);
              bc6.add(clusterIDs[2]);
  
              String pos = posTags[i];
  
              int wi = -1;
              if (wordId.containsKey(word))
                  wi = wordId.get(word);
  
              int pi = -1;
              if (wordId.containsKey(pos))
                  pi = wordId.get(pos);
  
              tokens.add(wi);
              tags.add(pi);
  
              i++;
          }
  
          if (!rootFirst)
          {
              tokens.add(0);
              tags.add(0);
              bcf.add(0);
              bc6.add(0);
              bc4.add(0);
          }
  
          return new Sentence(tokens, tags, bc4, bc6, bcf);
      }
docs: 将句子中的字符串转换为id
  
  @param words
  @param posTags
  @param rootFirst
  @param lowerCased
  @return