edu.washington.cs.knowitall.util
Class VerbalRelationNormalizer

java.lang.Object
  extended by edu.washington.cs.knowitall.util.VerbalRelationNormalizer

public class VerbalRelationNormalizer
extends java.lang.Object

A class for taking a verbal relation string and normalizing it by removing auxiliary verbs, modal verbs, and inflection.

Author:
afader

Constructor Summary
VerbalRelationNormalizer()
           
 
Method Summary
static void main(java.lang.String[] args)
          Reads tab-delimited (tokens, pos tags) from standard input and prints the resulting normalized string.
 java.lang.String[] normalize(java.lang.String[] tokensAr, java.lang.String[] posTagsAr)
          Normalizes the given (token, POS tag) pairs by doing the following: - Removes inflection in each token using the Morpha class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbalRelationNormalizer

public VerbalRelationNormalizer()
Method Detail

normalize

public java.lang.String[] normalize(java.lang.String[] tokensAr,
                                    java.lang.String[] posTagsAr)
Normalizes the given (token, POS tag) pairs by doing the following: - Removes inflection in each token using the Morpha class. - Removes any tokens that are modal verbs, determiners, adjectives, and adverbs. - Removes auxiliary verbs.

Parameters:
tokensAr -
posTagsAr -
Returns:

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Reads tab-delimited (tokens, pos tags) from standard input and prints the resulting normalized string. The tokens and tags should be delimited by spaces.

Parameters:
args -
Throws:
java.lang.Exception