edu.stanford.nlp.ie.regexp
Class RegexpsFieldExtractorCreator

java.lang.Object
  |
  +--edu.stanford.nlp.ie.regexp.RegexpsFieldExtractorCreator

public class RegexpsFieldExtractorCreator
extends Object

Utility for creating and serializing RegexpExtractors. See main() comment for more details. This version works with Apache ORO regular expression package. (but uses the 1.4 regular expressions for parsing input file)


Method Summary
static void main(String[] args)
          Creates and serializes a RegexpsFieldExtractor based on field names and regexps passed in from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Creates and serializes a RegexpsFieldExtractor based on field names and regexps passed in from a file.

Usage: java RegexpsFieldExtractorCreator filename outfile.obj
(example: java RegexpsFieldExtractorCreator phonefile phoneRegexpExtractor.obj)
The format of the file should be a series of lines consisting of a concept name, field name, group to extract (0 for whole match, regular expression. Each of these should be separated by whitespace. The final regexp can contain embedded whitespace (but may not begin with it), but other fields may not.

Parameters:
args - See above


Stanford NLP Group