|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sensor
A sensor is an object that looks up information for a token, for example semantic information from gazetteers or thesauri.
Method Summary | |
---|---|
void |
initDocument(File filename,
TokenizerFactory tFactory)
Called when starting to process a new document. |
KeyValue[] |
lookup(String token)
Looks up a token and returns the information as an array of key/value pairs (values can be null , but null are not
allowed). |
Method Detail |
---|
void initDocument(File filename, TokenizerFactory tFactory) throws ProcessingException, IOException
filename
- the name of the filetFactory
- a factory that can be used for creating tokenizers,
if required
ProcessingException
- if an error occurs while starting to
process the document
IOException
- if an I/O error occursKeyValue[] lookup(String token)
null
, but null
are not
allowed). If no information for the given token can be found, an
empty array (length 0) is returned.
token
- the token to look up
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |