edu.stanford.nlp.trees.treebank.DefaultMapper 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.trees.treebank;
import java.io.File;
/**
*
* @author Spence Green
*
*/
public class DefaultMapper implements Mapper {
public boolean canChangeEncoding(String parent, String child) {
return true;
}
public String map(String parent, String element) {
return element;
}
public void setup(File path, String... options) {}
}