dbpackage
Class Analyze

java.lang.Object
  extended bydbpackage.Analyze
All Implemented Interfaces:
Pos

public class Analyze
extends java.lang.Object
implements Pos


Field Summary
 
Fields inherited from interface naturalpackage.Pos
ADJ, adjexceptions, ADV, ALL_S, ART, ARTS, CONJ, CONJS, DET, DETS, HOW, MEASUREMENT, NOUN, NP, NUM_S, NUMBER, PP, PREP, PREPS, PRON, PRONS, UNKNOWN, VERB, VP, WHAT, WHEN, WHERE, WHO, WHY
 
Constructor Summary
Analyze()
           
 
Method Summary
 AnswerHolder analyzeIt(java.lang.String[] sentence, int[] pos)
          This method is the driver for analyzing the question see internal code for precise documentationon details
 java.lang.String checkForKeyword(java.lang.String[] sentence)
          This method checks for a keyword (point of reference)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Analyze

public Analyze()
Method Detail

analyzeIt

public AnswerHolder analyzeIt(java.lang.String[] sentence,
                              int[] pos)
This method is the driver for analyzing the question see internal code for precise documentationon details

Parameters:
sentence - this is just the sentence you are analyzing
pos - this is an int array that contains POS see POS class for constants and what they represent
Returns:
AnwserHolder(rather cleverly named)
See Also:
AtnMain

checkForKeyword

public java.lang.String checkForKeyword(java.lang.String[] sentence)
This method checks for a keyword (point of reference)

Parameters:
sentence - The sentence you want checked
Returns:
String This contains the keyword
See Also:
AtnMain