de.fu_berlin.ties.xml.dom
Interface TokenProcessor
- All Known Implementing Classes:
- EmbeddingElements, ExtractionMatcher, Extractor, ExtractorBase, PredictionRewriter, PredictionRewriter2, Trainer
public interface TokenProcessor
Interface for a processor that operates on tokens in XML documents.
- Version:
- $Revision: 1.6 $, $Date: 2006/10/21 16:04:33 $, $Author: siefkes $
- Author:
- Christian Siefkes
processToken
void processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
throws IOException,
ProcessingException
- Processes a token in an XML element, optionally modifying the
element or the document it is part of.
- Parameters:
element
- the element containing the tokenleft
- the textual contents of the element to the left of the
token
(in case of mixed contents, only up to the last
preceding child element, if any)details
- details about the token to processright
- the textual contents of the element to the right of the
token
(in case of mixed contents, only up to the next
following child element, if any)context
- a map of objects that are made available for processing
- Throws:
IOException
- if an I/O error occurs
ProcessingException
- if an error occurs during processing
Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.