code: public Edge getEdge(Node from, Node to)
      {
          // 首先尝试词+词
          Attribute attribute = get(from.compiledWord, to.compiledWord);
          if (attribute == null) attribute = get(from.compiledWord, WordNatureWeightModelMaker.wrapTag(to.label));
          if (attribute == null) attribute = get(WordNatureWeightModelMaker.wrapTag(from.label), to.compiledWord);
          if (attribute == null) attribute = get(WordNatureWeightModelMaker.wrapTag(from.label), WordNatureWeightModelMaker.wrapTag(to.label));
          if (attribute == null)
          {
              attribute = Attribute.NULL;
          }
          if (HanLP.Config.DEBUG)
          {
              System.out.println(from + " 到 " + to + " : " + attribute);
          }
          return new Edge(from.id, to.id, attribute.dependencyRelation[0], attribute.p[0]);
      }
docs: 打分
  @param from
  @param to
  @return