code: public T permute(T vector, DependencyPath path) {
          int bestRelationScore = 0; 
          for (DependencyRelation link : path)
              vector = permFunc.permute(
                      vector, getRelationScore(link.relation()));
          return vector;
      }
  
      private static int getRelationScore(String relation) {
          if (relation.length() == 0)
              return 0;
          if (relation.equals("SBJ"))
              return 6;
          if (relation.equals("OBJ"))
              return 5;
          if (relation.equals("NMOD"))
              return 4;
          if (relation.equals("VMOD"))
              return 3;
          if (relation.equals("ADV"))
              return 2;
          return 1;
      }
  }
docs: {@inheritDoc}