|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basistech.rlp.RLPResultRandomAccess
public class RLPResultRandomAccess
Low-level data access to RLP results. This class retrieves results from a RLP context in 'minimally-processed' form.
Constructor Summary | |
---|---|
RLPResultRandomAccess(RLPContext a_context)
Creates a result accessor for the given context. |
Method Summary | |
---|---|
boolean |
getConsistentType()
Get consistent named entity type setting |
LanguageCode |
getDetectedLanguage()
Returns an object describing the language of the data in the context. |
NamedEntityData[] |
getNamedEntities(boolean stripAffixes)
Returns all of the named entities from the context, optionally stripping affixes. |
Object |
getResultData(int resultType)
Retrieves data for a RLP result item with minimal processing for access from java. |
void |
setConsistentType(boolean flag)
Set consistent named entity type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RLPResultRandomAccess(RLPContext a_context)
a_context
- Source contextMethod Detail |
---|
public void setConsistentType(boolean flag)
flag
- if true, assign named entity type of the 1st occurring named entity to all
subsequent matching normalized named entities.public boolean getConsistentType()
public NamedEntityData[] getNamedEntities(boolean stripAffixes)
stripAffixes
- Whether to remove conjunctions and similiar attached
particles to deliver 'clean' names.
public LanguageCode getDetectedLanguage()
public Object getResultData(int resultType)
IntBuffer
, and the
caller must unpack it according to the arity of the tuples. For example,
for NAMED_ENTITY, the resulting IntBuffer consists of triples of
integers.
resultType
- int constant identifying the data to retrieve.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |