opennlp.maxent
Class BasicContextGenerator

java.lang.Object
  extended by opennlp.maxent.BasicContextGenerator
All Implemented Interfaces:
ContextGenerator

public class BasicContextGenerator
extends java.lang.Object
implements ContextGenerator

Generate contexts for maxent decisions, assuming that the input given to the getContext() method is a String containing contextual predicates separated by spaces. e.g:

cp_1 cp_2 ... cp_n

Version:
$Revision: 1.4 $, $Date: 2007/04/13 16:12:28 $
Author:
Jason Baldridge

Constructor Summary
BasicContextGenerator()
           
 
Method Summary
 java.lang.String[] getContext(java.lang.Object o)
          Builds up the list of contextual predicates given a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicContextGenerator

public BasicContextGenerator()
Method Detail

getContext

public java.lang.String[] getContext(java.lang.Object o)
Builds up the list of contextual predicates given a String.

Specified by:
getContext in interface ContextGenerator


Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.