code: public static EquivalenceClasser<List<String>, String> typedDependencyClasser() {
      return new EquivalenceClasser<List<String>, String>() {
        public String equivalenceClass(List<String> s) {
          if(s.get(5).equals(leftHeaded))
            return s.get(2) + '(' + s.get(3) + "->" + s.get(4) + ')';
          return s.get(2) + '(' + s.get(4) + "<-" + s.get(3) + ')';
        }
      };
    }
docs: Returns an EquivalenceClasser that classes typed dependencies
  by the syntactic categories of mother, head and daughter,
  plus direction.
  
  @return An Equivalence class for typed dependencies