beans
Class KeySentenceBean
java.lang.Object
beans.KeySentenceBean
public class KeySentenceBean
- extends java.lang.Object
KeySentenceBean is a simple class for storing the data of the key-sentences.
KeySentenceBean consists of two elements:
label is the name of the type of relationship this key-sentence signals, e.g. "hyponymy".
words is an array with all the words in the key-sentence. One word per entry in words.
- Author:
- Håvard Rykkelid
Field Summary |
private java.lang.String |
label
|
private java.lang.String[] |
words
|
Constructor Summary |
KeySentenceBean(java.lang.String label,
java.lang.String sentence)
The constructor for KeySentenceBean. |
Method Summary |
java.lang.String |
getLabel()
Standard getter method |
java.lang.String[] |
getWords()
Standard getter method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
label
private java.lang.String label
words
private java.lang.String[] words
KeySentenceBean
public KeySentenceBean(java.lang.String label,
java.lang.String sentence)
- The constructor for KeySentenceBean.
Takes two parameters.
The first is a String containing the label.
The second is a String containing the key-sentence.
- Parameters:
label
- - the name of the type of relationship this key-sentence signalssentence
- - the key-sentence
getLabel
public java.lang.String getLabel()
- Standard getter method
- Returns:
- the name of the type of relationship this key-sentence signals
getWords
public java.lang.String[] getWords()
- Standard getter method
- Returns:
- an array where each element is a word from the key-sentence