@Test public void testToGrmmInput1() { String expected = "TEXT ---- F1 F2 F3"; String actual = GrmmUtils.toGrmmInput("TEXT", Arrays.asList("F1", "F2", "F3")); assertEquals(expected, actual); }
public static String toGrmmInput(String label, List<String> features) { StringBuilder builder = new StringBuilder(); builder.append(label); builder.append(LABEL_SEPARATOR); for (int i = 0; i < features.size(); i++) { builder.append(features.get(i)); if (i + 1 < features.size()) { builder.append(SEPARATOR); } } return builder.toString(); }
GrmmUtils { public static String toGrmmInput(String label, List<String> features) { StringBuilder builder = new StringBuilder(); builder.append(label); builder.append(LABEL_SEPARATOR); for (int i = 0; i < features.size(); i++) { builder.append(features.get(i)); if (i + 1 < features.size()) { builder.append(SEPARATOR); } } return builder.toString(); } }
GrmmUtils { public static String toGrmmInput(String label, List<String> features) { StringBuilder builder = new StringBuilder(); builder.append(label); builder.append(LABEL_SEPARATOR); for (int i = 0; i < features.size(); i++) { builder.append(features.get(i)); if (i + 1 < features.size()) { builder.append(SEPARATOR); } } return builder.toString(); }  }
GrmmUtils { public static String toGrmmInput(String label, List<String> features) { StringBuilder builder = new StringBuilder(); builder.append(label); builder.append(LABEL_SEPARATOR); for (int i = 0; i < features.size(); i++) { builder.append(features.get(i)); if (i + 1 < features.size()) { builder.append(SEPARATOR); } } return builder.toString(); }  static String toGrmmInput(String label, List<String> features); static String toGrmmInput(List<T> tokens,
            int neighborInfluenceThreshold); }
GrmmUtils { public static String toGrmmInput(String label, List<String> features) { StringBuilder builder = new StringBuilder(); builder.append(label); builder.append(LABEL_SEPARATOR); for (int i = 0; i < features.size(); i++) { builder.append(features.get(i)); if (i + 1 < features.size()) { builder.append(SEPARATOR); } } return builder.toString(); }  static String toGrmmInput(String label, List<String> features); static String toGrmmInput(List<T> tokens,
            int neighborInfluenceThreshold);  }