public interface Result
ListresultList = api.processCitationsFromString(terms); for (Result result: resultList) { List<AcronymsAbbrevs> aaList = result.getAcronymsAbbrevs(); System.out.println("Acronyms and Abbreviations:"); if (aaList.size() > 0) { for (AcronymsAbbrevs e: aaList) { String acronymText = e.getAcronym(); ... } } List<Negation> negList = result.getNegations(); if (negList.size() > 0) { for (Negation e: negList) { System.out.println("type: " + e.getType()); } } for (Utterance utterance: result.getUtteranceList()) { for (PCM pcm: utterance.getPCMList()) { String phraseText = pcm.getPhrase().getPhraseText() for (Ev ev: pcm.getCandidateList()) { int score = ev.getScore(); ... } for (gov.nih.nlm.nls.metamap.Map map: pcm.getMappings)) { for (Ev mapEv: map.getEvList()) { int score = ev.getScore(); ... } } } }
Created: Wed Apr 29 15:44:14 2009
Modifier and Type | Method and Description |
---|---|
List<AcronymsAbbrevs> |
getAcronymsAbbrevs()
Return a list of Acronym and Abbreviations objects.
|
List<AcronymsAbbrevs> |
getAcronymsAbbrevsList()
Return a list of Acronym and Abbreviations objects.
|
String |
getInputText()
Get input text that produced this result.
|
String |
getMachineOutput()
Return the raw string representation of MetaMap machine output.
|
se.sics.prologbeans.PBTerm |
getMMOPBlist()
Return a prolog beans list of terms representing machine output.
|
List<Negation> |
getNegationList()
Return a list of
Negation objects. |
List<Negation> |
getNegations()
Return a list of
Negation objects. |
List<Utterance> |
getUtteranceList()
Return a list of
Utterance objects. |
void |
setInputText(String theInputText)
Assign inputText that produced this result.
|
void |
traverse(PrintStream out)
Print machine output to stream.
|
void setInputText(String theInputText)
theInputText
- the input textString getInputText()
se.sics.prologbeans.PBTerm getMMOPBlist()
PBTerm
) of machine output termsString getMachineOutput()
String
containing the result as MetaMap
machine output.void traverse(PrintStream out)
out
- stream to send output.List<AcronymsAbbrevs> getAcronymsAbbrevs() throws Exception
AcronymsAbbrevs
objectsException
List<AcronymsAbbrevs> getAcronymsAbbrevsList() throws Exception
AcronymsAbbrevs
objectsException
List<Negation> getNegationList() throws Exception
Negation
objects.Copyright © 2016. All rights reserved.