Package net.didion.jwnl.data
Class VerbFrame
java.lang.Object
net.didion.jwnl.data.VerbFrame
- All Implemented Interfaces:
Serializable
A
VerbFrame
is the frame of a sentence in which it is proper to use a given verb.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private Resolvable
private int
private static boolean
private static VerbFrame[]
(package private) static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFrame()
static String
getFrame
(int index) Get frame at index index.static String[]
Get the frames at the indexes encoded in l.int
getIndex()
static final String
getKeyString
(int i) static int[]
getVerbFrameIndicies
(BitSet bits) Gets the verb frame indices for a synset.static int
int
hashCode()
static void
toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
_verbFrames
-
_initalized
private static boolean _initalized -
_frame
-
_index
private int _index -
_cachedToString
-
-
Constructor Details
-
VerbFrame
-
-
Method Details
-
initialize
public static void initialize() -
getKeyString
-
getVerbFramesSize
public static int getVerbFramesSize() -
getFrame
Get frame at index index. -
getFrames
Get the frames at the indexes encoded in l. Verb Frames are encoded withinWord
s as a long. Each bit represents the frame at its corresponding index. If the bit is set, that verb frame is valid for the word. -
getVerbFrameIndicies
Gets the verb frame indices for a synset. This is the collection of f_num values for a synset definition. In the case of a synset, this is only the values that are true for all words with the synset. In other words, only the sentence frames that belong to all words.- Parameters:
bits
- the bit set- Returns:
- an integer collection
-
getFrame
-
getIndex
public int getIndex() -
toString
-
hashCode
public int hashCode()
-