edu.illinois.cs.cogcomp.lbj.coref.ir.relations
Class RelationMention

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.relations.RelationMention
All Implemented Interfaces:
java.io.Serializable

public class RelationMention
extends java.lang.Object
implements java.io.Serializable

Represents the mention of a relation in a document.

Author:
Eric Bengtson
See Also:
Serialized Form

Field Summary
private  Chunk m_extent
           
private  java.lang.String m_id
           
private  java.lang.String m_ldcLexicalCondition
           
private  RelationMentionArgument m_mArg1
           
private  RelationMentionArgument m_mArg2
           
private static long serialVersionUID
           
 
Constructor Summary
RelationMention()
          Constructs an empty relation mention.
RelationMention(java.lang.String id, java.lang.String ldcLexicalCondition, Chunk extent, RelationMentionArgument a1, RelationMentionArgument a2)
          Constructs a relation mention.
 
Method Summary
 RelationMentionArgument getArg1()
          Gets the first relation mention argument.
 RelationMentionArgument getArg2()
          Gets the second relation mention argument.
 java.lang.String getID()
          Gets the relation mention ID.
 Chunk getLDCExtent()
          Gets the LDC extent of the relation mention.
 java.lang.String getLDCLexicalCondition()
          Gets the LDC lexical condition.
 java.lang.String toString()
          Constructs a string representation of this relation mention.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_id

private java.lang.String m_id

m_ldcLexicalCondition

private java.lang.String m_ldcLexicalCondition

m_extent

private Chunk m_extent

m_mArg1

private RelationMentionArgument m_mArg1

m_mArg2

private RelationMentionArgument m_mArg2
Constructor Detail

RelationMention

public RelationMention()
Constructs an empty relation mention.


RelationMention

public RelationMention(java.lang.String id,
                       java.lang.String ldcLexicalCondition,
                       Chunk extent,
                       RelationMentionArgument a1,
                       RelationMentionArgument a2)
Constructs a relation mention.

Parameters:
id - The relation mention ID.
ldcLexicalCondition - The LDC lexical condition.
extent - The extent of the relation mention text.
a1 - The first relation mention argument.
a2 - The second relation mention argument, which may be null if no second argument exists.
Method Detail

toString

public java.lang.String toString()
Constructs a string representation of this relation mention.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the relation mention.

getID

public java.lang.String getID()
Gets the relation mention ID.

Returns:
The relation mention ID.

getLDCLexicalCondition

public java.lang.String getLDCLexicalCondition()
Gets the LDC lexical condition.

Returns:
The LDC lexical condition.

getLDCExtent

public Chunk getLDCExtent()
Gets the LDC extent of the relation mention.

Returns:
The LDC extent of the relation mention.

getArg1

public RelationMentionArgument getArg1()
Gets the first relation mention argument.

Returns:
The first relation mention argument.

getArg2

public RelationMentionArgument getArg2()
Gets the second relation mention argument.

Returns:
The second relation mention argument.