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