edu.stanford.nlp.process.LowercaseAndAmericanizeFunction 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 LowercaseAndAmericanizeFunction implements Function, Serializable {
public String apply(String input) {
if (input == null) {
return null;
}
return Americanize.americanize(input.toLowerCase());
}
private static final long serialVersionUID = 1L;
}