semeval.mapping
Class NBRoleset

java.lang.Object
  extended by semeval.mapping.NBRoleset

public class NBRoleset
extends java.lang.Object

Represents a nombank roleset. Contains an Id, and optionally 'source' and 'vnclass'.

Author:
Fabian Shirokov

Constructor Summary
NBRoleset(java.lang.String lemma, java.lang.String id)
          Default constructor that takes the value of the 'id' attribute as an argument.
 
Method Summary
 java.lang.String getId()
          Returns the value of the 'id' attribute, e. g.
 java.lang.String getLemma()
          Returns the lemma this roleset belongs to.
 java.lang.String getName()
          Returns the value of the 'name' attribute, e. g.
 java.lang.String getSource()
          Returns the value of the 'source', e. g.
 java.lang.String getVnclass()
          Returns the value of 'vnclass', e. g. '22.1-2'.
 void setId(java.lang.String id)
          Sets the value of the 'id' attribute, e. g.
 void setLemma(java.lang.String lemma)
          Sets the lemma this roleset belongs to (out of the 'lemma' attribute in the 'predicate' element).
 void setName(java.lang.String name)
          Sets the value of the 'name' attribute, e. g.
 void setSource(java.lang.String source)
          Sets the value of the 'source', e. g.
 void setVnclass(java.lang.String vnclass)
          Sets the value of 'vnclass', e. g. '22.1-2'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NBRoleset

public NBRoleset(java.lang.String lemma,
                 java.lang.String id)
Default constructor that takes the value of the 'id' attribute as an argument.

Parameters:
id -
Method Detail

getId

public java.lang.String getId()
Returns the value of the 'id' attribute, e. g. 'accessory.01'.

Returns:
the id

getLemma

public java.lang.String getLemma()
Returns the lemma this roleset belongs to.

Returns:
the lemma

getName

public java.lang.String getName()
Returns the value of the 'name' attribute, e. g. 'nomlike'.

Returns:
the name

getSource

public java.lang.String getSource()
Returns the value of the 'source', e. g. 'verb-add.02'.

Returns:
the source

getVnclass

public java.lang.String getVnclass()
Returns the value of 'vnclass', e. g. '22.1-2'.

Returns:
the vnclass

setId

public void setId(java.lang.String id)
Sets the value of the 'id' attribute, e. g. 'accessory.01'.

Parameters:
id - the id to set

setLemma

public void setLemma(java.lang.String lemma)
Sets the lemma this roleset belongs to (out of the 'lemma' attribute in the 'predicate' element).

Parameters:
lemma - the lemma to set

setName

public void setName(java.lang.String name)
Sets the value of the 'name' attribute, e. g. 'nomlike'.

Parameters:
name - the name to set

setSource

public void setSource(java.lang.String source)
Sets the value of the 'source', e. g. 'verb-add.02'.

Parameters:
source - the source to set

setVnclass

public void setVnclass(java.lang.String vnclass)
Sets the value of 'vnclass', e. g. '22.1-2'.

Parameters:
vnclass - the vnclass to set