public static void setIntermediatePhraseBoundary(List<Word> data_points, String attribute_name) {
    for (Word word : data_points) {
      String label = "NONBOUNDARY";
      if (word.getBreakAfter() != null && (
          word.getBreakAfter().equals("3") || word.getBreakAfter().equals("3p") ||
              word.getBreakAfter().equals("3-")))
        label = "INTERMEDIATE_BOUNDARY";
      if ((word.getBreakAfter() != null) && (
          word.getBreakAfter().equals("4-") || word.getBreakAfter().equals("4")))
        label = "INTONATIONAL_BOUNDARY";
      word.setAttribute(attribute_name, label);
    }
  }