extractTerms
Class ExtractTermsExample

java.lang.Object
  extended byextractTerms.ExtractTermsExample

public class ExtractTermsExample
extends java.lang.Object

Example for the method extract of ExtractTerms class.

Since:
27/03/2003
Version:
0.2 09/07/2003
Author:
Thomas Heitz for LRI Paris XI University
See Also:
ExtractTerms

Constructor Summary
ExtractTermsExample()
           
 
Method Summary
static void main(java.lang.String[] args)
          Just extract possible terms of the input file and write results in the output file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractTermsExample

public ExtractTermsExample()
Method Detail

main

public static void main(java.lang.String[] args)
Just extract possible terms of the input file and write results in the output file. The default parameters works with Penn Treebank tags and extract adjective-noun and noun-adjective-noun possible terms.

Parameters:
args - arguments of program
1 - name of input file containing text to analyse
2 - name of output file containing results

The default hard-coded other parameters are :

 regexUnit = "([^/]+/\\S+) "
 regexSentPhraSeparator = "([^/]+/[.,?!;:()\"])"
 regexNameOfText = "---/(.*)"
 regex2Units1 = "[^/]+/JJ[RS]? "
 regex2Units2 = "[^/]+/NN[PS]?[S] "
 tagKept2Units = 2
 regex3Units1 = "[^/]+/NN[PS]?[S] "
 regex3Units2 = "[^/]+/IN "
 regex3Units3 = "[^/]+/NN[PS]?[S] "
 tagKept3Units = 3
 formula = 1
 tfidf = false
 pruning2Units = 4
 pruning3Units = 4
 maxResults2Units = 500
 maxResults3Units = 500
 separator = "/"
 relation2Units = 0
 relation3Units = 0
 occFirst = false
 
See Also:
ExtractTerms constructor for more information on default parameters.