code: public int[] getSentenceIds() {
          ArrayList<IntNaryTree> leaves = getLeaves();
          int[] sent = new int[leaves.size()];
          for (int i=0; i<sent.length; i++) {
              sent[i] = leaves.get(i).symbol;
          }
          return sent;
      }
docs: Gets the lexical item ids comprising the sentence.