edu.stanford.nlp.trees.tregex
Class Macros

java.lang.Object
  extended by 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

Method Summary
static void addAllMacros(TregexPatternCompiler compiler, String filename, String encoding)
           
static List<Pair<String,String>> readMacros(BufferedReader bin)
           
static List<Pair<String,String>> readMacros(String filename)
           
static List<Pair<String,String>> readMacros(String filename, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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