code: public double scorePath(DependencyPath path) {
          double score = 0;
          for (DependencyRelation wordRelation : path) {
              if (wordRelation.relation().equals("SBJ"))
                  score += 5;
              else if (wordRelation.relation().equals("OBJ"))
                  score += 4;
              else if (wordRelation.relation().equals("OBL"))
                  score += 3;
              else if (wordRelation.relation().equals("GEN"))
                  score += 2;
              else 
                  score += 1;
          }
          return score;
      }
docs: {@inheritDoc}