code: public double getTagSequenceProb() {
      //System.err.println("Parse.getTagSequenceProb: "+type+" "+this);
      if (parts.size() == 1 && ((Parse) parts.get(0)).type.equals(ParserME.TOK_NODE)) {
        //System.err.println(this+" "+prob);
        return (Math.log(prob));
      }
      else if (parts.size() == 0) {
        System.err.println("Parse.getTagSequenceProb: Wrong base case!");
        return (0.0);
      }
      else {
        double sum = 0.0;
        for (Iterator pi = parts.iterator(); pi.hasNext();) {
          sum += ((Parse) pi.next()).getTagSequenceProb();
        }
        return (sum);
      }
    }
docs: Returns the probability associed with the pos-tag sequence assigned to this parse.
  @return The probability associed with the pos-tag sequence assigned to this parse.