edu.stanford.nlp.process.AmericanizeFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.process;
import java.io.Serializable;
import java.util.function.Function;
public class AmericanizeFunction implements Function, Serializable {
public String apply(String input) {
if (input == null) {
return null;
}
return Americanize.americanize(input);
}
private static final long serialVersionUID = 1L;
}