edu.stanford.nlp.trees.tregex
Class Macros
java.lang.Object
edu.stanford.nlp.trees.tregex.Macros
public class Macros
- extends Object
This defines how to use macros from a file in Tregex. Macro files
are expected to be lines of macros, one per line, with the original
and the replacement separated by tabs. Blank lines and lines
starting with # are ignored.
- Author:
- John Bauer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readMacros
public static List<Pair<String,String>> readMacros(String filename)
readMacros
public static List<Pair<String,String>> readMacros(String filename,
String encoding)
readMacros
public static List<Pair<String,String>> readMacros(BufferedReader bin)
addAllMacros
public static void addAllMacros(TregexPatternCompiler compiler,
String filename,
String encoding)
Stanford NLP Group