public class ResultImpl extends Object implements Result
Result
interface, a container
for the result of a MetaMap query.
Created: Wed May 20 13:50:35 2009
Modifier and Type | Class and Description |
---|---|
(package private) class |
ResultImpl.AcronymsAbbrevsImpl
aas(["ABC"*"American Broadcasting System" *[1,3,5,28]*[],
"CBS"*"Columbia Broadcasting System" *[1,3,5,28]*[]]).
|
(package private) class |
ResultImpl.NegationImpl |
(package private) class |
ResultImpl.UtteranceImpl |
Modifier and Type | Field and Description |
---|---|
private static int |
ACRONYMS_ABBREVS_INDEX |
private static int |
FIRST_UTTERANCE_INDEX |
String |
inputText |
private se.sics.prologbeans.PBTerm |
mmoTermList |
private static int |
NEGATIONLIST_INDEX |
Constructor and Description |
---|
ResultImpl()
Creates a new
ResultImpl instance. |
ResultImpl(se.sics.prologbeans.PBTerm mmoTerm)
Creates a new
ResultImpl instance. |
ResultImpl(se.sics.prologbeans.PBTerm mmoTerm,
String theInputText)
Creates a new
ResultImpl instance. |
Modifier and Type | Method and Description |
---|---|
List<AcronymsAbbrevs> |
getAcronymsAbbrevs()
Describe
getAcronymsAbbrevs method here. |
List<AcronymsAbbrevs> |
getAcronymsAbbrevsList()
Describe
getAcronymsAbbrevsList method here. |
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()
Describe
getNegationList method here. |
List<Negation> |
getNegations()
Describe
getNegations method here. |
private List<PCM> |
getPCMList(int utterancePosition)
Deprecated.
|
List<Utterance> |
getUtteranceList()
Describe
getUtterances method here. |
void |
setInputText(String theInputText)
Assign inputText that produced this result.
|
String |
toString()
Implementation of toString method for Result.
|
void |
traverse(PrintStream out)
Print machine output to stream.
|
private se.sics.prologbeans.PBTerm mmoTermList
private static final int ACRONYMS_ABBREVS_INDEX
private static final int NEGATIONLIST_INDEX
private static final int FIRST_UTTERANCE_INDEX
public String inputText
public ResultImpl()
ResultImpl
instance.public ResultImpl(se.sics.prologbeans.PBTerm mmoTerm) throws Exception
ResultImpl
instance.mmoTerm
- a prolog term containing MetaMap machine output.Exception
public void setInputText(String theInputText)
Result
setInputText
in interface Result
theInputText
- the input text that produced this result.public String getInputText()
Result
getInputText
in interface Result
public se.sics.prologbeans.PBTerm getMMOPBlist()
Result
getMMOPBlist
in interface Result
public void traverse(PrintStream out)
Result
public String getMachineOutput()
Result
getMachineOutput
in interface Result
String
containing the result as MetaMap
machine output.public final List<AcronymsAbbrevs> getAcronymsAbbrevs() throws Exception
getAcronymsAbbrevs
method here.getAcronymsAbbrevs
in interface Result
List
ofException
public final List<AcronymsAbbrevs> getAcronymsAbbrevsList() throws Exception
getAcronymsAbbrevsList
method here.getAcronymsAbbrevsList
in interface Result
List
ofException
public final List<Negation> getNegations() throws Exception
getNegations
method here.getNegations
in interface Result
List
of Negation Instances.Exception
public final List<Negation> getNegationList() throws Exception
getNegationList
method here.getNegationList
in interface Result
List
of Negation Instances.Exception
public List<Utterance> getUtteranceList() throws Exception
getUtterances
method here.getUtteranceList
in interface Result
Utterance
termsException
private List<PCM> getPCMList(int utterancePosition) throws Exception
PCM
(Phrase/Candidate/Mapping)
objects starting at start in machine output. It is recommended
to use the Utterance
implementation of getPCMList
rather than this one.utterancePosition
- position of relevant utteranceException
Copyright © 2016. All rights reserved.