|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hops.common.RecognizedUserInput
public class RecognizedUserInput
Field Summary | |
---|---|
answer_coverage |
coverage_result
|
answer_expected |
expected_result
|
answer_result |
parser_result
|
double |
score
|
java.lang.String |
sentence
|
ut_status |
status
|
java.lang.String |
xmlparser
|
Constructor Summary | |
---|---|
RecognizedUserInput()
Creates a new instance of RecognizedUserInput |
Method Summary | |
---|---|
HopsAttribute |
addAttribute(HopsAttribute attribute)
Adds an attribute to the RecognizedUserInput If the key exists, then replaces the old attribute with the new one. |
void |
addAttribute(HopsAttribute[] attributes)
Adds a list of attributes to the RecognizedUserInput |
void |
clear()
Clear the RecognizedUserInput |
HopsAttribute[] |
getAllAttributes()
Returns all the attributes recognized |
HopsAttribute |
getAttribute(java.lang.String key)
Returns an attribute recognized |
java.util.Collection |
getAttributes()
Returns all the attributes stored |
java.util.Set |
getKeys()
Returns all the keys of the attributes stored |
void |
removeAttribute(java.lang.String key)
Remove the attribute ( if found ) |
int |
size()
Gets the size of the attributes stored in the RecognizedUserInput |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String sentence
public double score
public ut_status status
public answer_result parser_result
public answer_expected expected_result
public answer_coverage coverage_result
public java.lang.String xmlparser
Constructor Detail |
---|
public RecognizedUserInput()
Method Detail |
---|
public HopsAttribute addAttribute(HopsAttribute attribute)
attribute
- The attribute to add
public void addAttribute(HopsAttribute[] attributes)
attributes
- List of attributes to addpublic HopsAttribute getAttribute(java.lang.String key)
key
- The key of the attribue
public void removeAttribute(java.lang.String key)
key
- The key of the attribuepublic HopsAttribute[] getAllAttributes()
public java.util.Set getKeys()
public java.util.Collection getAttributes()
public void clear()
public int size()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |