dragon.nlp
Class Triple
java.lang.Object
|
+--dragon.nlp.Triple
- All Implemented Interfaces:
- java.lang.Comparable, FrequencySortable, IndexSortable, SortedElement, WeightSortable
- public class Triple
- extends java.lang.Object
- implements java.lang.Comparable, SortedElement
Triple is data structure for binary relation extracted from text
Copyright: Copyright (c) 2003
Company:
- Version:
- 1.0
- Author:
- not attributable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Triple
public Triple(Concept first,
Concept second)
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo in interface java.lang.Comparable
getIndex
public int getIndex()
- Specified by:
getIndex in interface IndexSortable
setIndex
public void setIndex(int index)
- Specified by:
setIndex in interface IndexSortable
getMemo
public java.lang.Object getMemo()
setMemo
public void setMemo(java.lang.Object memo)
getFirstConcept
public Concept getFirstConcept()
getSecondConcept
public Concept getSecondConcept()
getTUI
public java.lang.String getTUI()
setTUI
public void setTUI(java.lang.String rel)
getCandidateTUI
public java.lang.String[] getCandidateTUI()
getCandidateTUI
public java.lang.String getCandidateTUI(int index)
getCandidateTUINum
public int getCandidateTUINum()
setCandidateTUI
public void setCandidateTUI(java.lang.String[] can_rel)
getWeight
public double getWeight()
- Specified by:
getWeight in interface WeightSortable
setWeight
public void setWeight(double weight)
- Specified by:
setWeight in interface WeightSortable
getFrequency
public int getFrequency()
- Specified by:
getFrequency in interface FrequencySortable
setFrequency
public void setFrequency(int freq)
- Specified by:
setFrequency in interface FrequencySortable
addFrequency
public void addFrequency(int inc)
equalTo
public boolean equalTo(Triple triple)