Class BiolarkResult
java.lang.Object
org.monarchinitiative.hpotextmining.core.miners.biolark.BiolarkResult
The server performing text-mining analysis returns results as a collection of JSON objects. This class serves as a
model for those objects. Created by Daniel Danis on 6/19/17.
-
Constructor Summary
ConstructorsConstructorDescriptionBiolarkResult(int start, int end, int length, String original_text, String source, BiolarkToken term, boolean negated) Create instance from single response object. -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<BiolarkResult> static Comparator<BiolarkResult> booleanintgetEnd()intintgetStart()getTerm()inthashCode()booleantoString()
-
Constructor Details
-
BiolarkResult
public BiolarkResult(int start, int end, int length, String original_text, String source, BiolarkToken term, boolean negated) Create instance from single response object. This instance contains coordinates of the "term-containing" substring within the analyzed text.- Parameters:
start- start offset of substring in the original (text-mined) text.end- end offset of substring in the original (text-mined) text.length- length of the substring.original_text- substring text.source- not sure what this is but it is always "HPO"term- identifiedBiolarkTokennegated- indicates absence/non-presence of this label in the patient
-
-
Method Details
-
getStart
public int getStart() -
getEnd
public int getEnd() -
getLength
public int getLength() -
getOriginal_text
-
getSource
-
getTerm
-
isNegated
public boolean isNegated() -
hashCode
-
equals
-
toString
-
compareByStart
- Returns:
Comparatorfor sortingBiolarkResults by theirstartattribute in ascending order
-
compareByName
- Returns:
Comparatorfor sortingBiolarkResults by alphabetic sorting of the HPO label in ascending order
-