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.
The newest version!
package edu.stanford.nlp.process;
import java.io.Serializable;
import java.util.function.Function;
public class LowercaseAndAmericanizeFunction implements Function, Serializable {
@Override
public String apply(String input) {
if (input == null) {
return null;
}
return Americanize.americanize(input.toLowerCase());
}
private static final long serialVersionUID = 1L;
}