|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ProcessingException | |
---|---|
de.fu_berlin.ties | This package bundles main entry points and general interfaces and classes for the TIE software. |
de.fu_berlin.ties.classify | This package provides functionality for classification of texts and feature vectors. |
de.fu_berlin.ties.classify.feature | This package contains classes for working with features, feature vectors and feature transformers. |
de.fu_berlin.ties.classify.winnow | This package contains the Winnow classification algorithm and related algorithms and classes. |
de.fu_berlin.ties.combi | This package provides combination strategies for combining sequential classification decisions. |
de.fu_berlin.ties.context | This packages provides functionality for building and managing representations of context in texts (XML documents). |
de.fu_berlin.ties.context.sensor | Sensors are object that look up information for a token, for example semantic information from gazetteers or thesauri. |
de.fu_berlin.ties.demo | This package contains demo code for showing how the system works. |
de.fu_berlin.ties.eval | This packages provides functionality for evaluating results of classifiers and extractors. |
de.fu_berlin.ties.extract | This package handles information extraction and entity recognition. |
de.fu_berlin.ties.extract.amend | This package provides code for reanalysing proposed extractions and performing suitable amendments to improve results. |
de.fu_berlin.ties.extract.reestimate | This package contains code for re-estimating the probabilites of extraction, for example based on the length or the content. |
de.fu_berlin.ties.filter | This packages provides generic filtering and rewriting functionality. |
de.fu_berlin.ties.io | This package provides classes for input/output handling and for (de)serialization. |
de.fu_berlin.ties.preprocess | This packages handles format conversions and linguistic preprocessing of documents. |
de.fu_berlin.ties.text | This package contains utility classes for working with texts. |
de.fu_berlin.ties.xml.convert | This package contains code for converting XML to/from other formats and for transforming XML documents. |
de.fu_berlin.ties.xml.dom | This package contains utility classes for working with DOM-like XML representations, focussing especially on dom4j. |
Uses of ProcessingException in de.fu_berlin.ties |
---|
Subclasses of ProcessingException in de.fu_berlin.ties | |
---|---|
class |
ParsingException
Exception thrown when an input cannot be parsed, typically because it contains uncorrectable errors. |
Methods in de.fu_berlin.ties that throw ProcessingException | |
---|---|
void |
CollectingProcessor.close(int errorCount)
Closes this instance, releasing all resources and stopping any background threads. |
void |
Closeable.close(int errorCount)
Closes this instance, releasing all resources and stopping any background threads. |
protected void |
DocumentWriter.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
protected void |
DocumentReader.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
protected abstract void |
TextProcessor.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
abstract Document |
DocumentProcessor.process(Document document,
ContextMap context)
Processes an XML document. |
void |
DocumentProcessor.process(Document document,
Writer writer,
ContextMap context)
Processes an XML document, writing a modified version to a writer. |
abstract void |
DocumentReader.process(Document document,
Writer writer,
ContextMap context)
Reads an XML document and stores the results of processing in a writer. |
void |
DirectoryProcessor.process(File directory)
Processes the contents of a directory. |
abstract void |
DirectoryProcessor.process(File[] files,
ContextMap context)
Processes an array of files. |
void |
TextProcessor.process(File file,
Writer writer)
Processes the contents of a file, delegating to the TextProcessor.process(File, Writer, ContextMap) method. |
void |
TextProcessor.process(File file,
Writer writer,
ContextMap context)
Processes the contents of a file, delegating to the TextProcessor.process(Reader, Writer, ContextMap) method. |
abstract void |
CollectingProcessor.process(List<String> collected,
ContextMap context)
Processes the collected input arguments. |
abstract Document |
DocumentWriter.process(Reader reader,
ContextMap context)
Processes the contents of a reader and stores the results of processing in an XML document. |
void |
TextProcessor.process(Reader reader,
Writer writer,
ContextMap context)
Delegates to the abstract TextProcessor.doProcess(Reader, Writer, ContextMap)
method and invokes a post-processor, if configured. |
void |
DirectoryProcessor.process(String inputName)
Processes an input argument that must specify a directory. |
void |
Processor.process(String input)
Processes an input argument. |
void |
TextProcessor.process(String inputName)
Processes a file or URL given as input argument, delegating to the appropriate process method. |
void |
TextProcessor.process(URLConnection urlConn,
Writer writer)
Processes the contents of an URL connection, delegating to the TextProcessor.process(URLConnection, Writer, ContextMap) method. |
void |
TextProcessor.process(URLConnection urlConn,
Writer writer,
ContextMap context)
Processes the contents of an URL connection, delegating to the TextProcessor.process(Reader, Writer, ContextMap) method. |
Uses of ProcessingException in de.fu_berlin.ties.classify |
---|
Methods in de.fu_berlin.ties.classify that throw ProcessingException | |
---|---|
PredictionDistribution |
Classifier.classify(FeatureVector features,
Set candidateClasses)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
PredictionDistribution |
TrainableClassifier.classify(FeatureVector features,
Set candidateClasses)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
FieldContainer |
ClassTrain.classifyAndTrain(FieldContainer filesToClassify,
File directory,
String baseName,
String charset)
Classifies a list of files, training the classifier on each error if the true class is known. |
static TrainableClassifier |
TrainableClassifier.createClassifier(Set<String> allValidClasses)
Factory method that delegates to TrainableClassifier.createClassifier(Set, TiesConfiguration) using the
standard configuration. |
static TrainableClassifier |
TrainableClassifier.createClassifier(Set<String> allValidClasses,
File runDirectory,
FeatureTransformer trans,
String[] spec,
TiesConfiguration conf)
Factory method that creates a trainable classifier based on the provided specification. |
static TrainableClassifier |
TrainableClassifier.createClassifier(Set<String> allValidClasses,
File runDirectory,
TiesConfiguration conf,
String suffix)
Factory method that delegates to TrainableClassifier.createClassifier(Set, File, FeatureTransformer, String[],
TiesConfiguration) . |
static TrainableClassifier |
TrainableClassifier.createClassifier(Set<String> allValidClasses,
TiesConfiguration conf)
Factory method that delegates to TrainableClassifier.createClassifier(Set, TiesConfiguration, String)
without specifying a suffix. |
static TrainableClassifier |
TrainableClassifier.createClassifier(Set<String> allValidClasses,
TiesConfiguration conf,
String suffix)
Factory method that delegates to TrainableClassifier.createClassifier(Set, File, TiesConfiguration, String)
without specifying an run directory. |
void |
TieClassifier.destroy()
Destroys the classifer. |
void |
OneAgainstTheRestClassifier.destroy()
Destroys the classifer. |
void |
MultiBinaryClassifier.destroy()
Destroys the classifer. |
void |
MetaClassifier.destroy()
Destroys the classifer. |
void |
Classifier.destroy()
Destroys the classifer. |
void |
TrainableClassifier.destroy()
Destroys the classifer. |
protected PredictionDistribution |
TieClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
protected PredictionDistribution |
OneAgainstTheRestClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. This implementation combines the predictions for the positive class of all involved inner classifiers. |
protected PredictionDistribution |
MultiBinaryClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. This implementation combines the predictions for the foreground of all involved inner classifiers. |
protected PredictionDistribution |
MetaClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
protected PredictionDistribution |
ExternalClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
protected PredictionDistribution |
MoonClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
protected abstract PredictionDistribution |
TrainableClassifier.doClassify(FeatureVector features,
Set candidateClasses,
ContextMap context)
Classifies an item that is represented by a feature vector by choosing the most probable class among a set of candidate classes. |
protected void |
ClassTrain.doProcess(Reader reader,
Writer writer,
ContextMap context)
Delegates to ClassTrain.classifyAndTrain(FieldContainer, File, String, String) . |
protected void |
OneAgainstTheRestClassifier.doTrain(FeatureVector features,
String targetClass,
ContextMap context)
Incorporates an item that is represented by a feature vector into the classification model. |
protected void |
MultiBinaryClassifier.doTrain(FeatureVector features,
String targetClass,
ContextMap context)
Incorporates an item that is represented by a feature vector into the classification model. |
protected void |
ExternalClassifier.doTrain(FeatureVector features,
String targetClass,
ContextMap context)
Incorporates an item that is represented by a feature vector into the classification model. |
protected void |
MoonClassifier.doTrain(FeatureVector features,
String targetClass,
ContextMap context)
Incorporates an item that is represented by a feature vector into the classification model. Currently this method is not implemented since Moonfilter needs to know the list of active classes. |
protected abstract void |
TrainableClassifier.doTrain(FeatureVector features,
String targetClass,
ContextMap context)
Incorporates an item that is represented by a feature vector into the classification model. |
protected boolean |
TieClassifier.doTrainOnError(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
The core of the TrainableClassifier.trainOnError(FeatureVector, String, Set) method. |
protected boolean |
MetaClassifier.doTrainOnError(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
The core of the TrainableClassifier.trainOnError(FeatureVector, String, Set) method. |
protected boolean |
TrainableClassifier.doTrainOnError(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
The core of the TrainableClassifier.trainOnError(FeatureVector, String, Set) method. |
void |
TextFilter.process(List<String> collected,
ContextMap context)
Processes the collected input arguments. |
void |
TieClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
OneAgainstTheRestClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
MultiBinaryClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
MetaClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
ExternalClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
MoonClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
abstract void |
TrainableClassifier.reset()
Resets the classifer, completely deleting the prediction model. |
void |
TrainableClassifier.train(FeatureVector features,
String targetClass)
Incorporates an item that is represented by a feature vector into the classification model. |
PredictionDistribution |
TrainableClassifier.trainOnError(FeatureVector features,
String targetClass,
Set candidateClasses)
Handles error-driven learning ("train only errors"): the specified feature vector is trained into the model only if the predicted class for the feature vector differs from the specified target class. |
protected boolean |
TieClassifier.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Subclasses can implement this hook for more refined error-driven learning. |
protected boolean |
OneAgainstTheRestClassifier.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Subclasses can implement this hook for more refined error-driven learning. |
protected boolean |
MultiBinaryClassifier.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Subclasses can implement this hook for more refined error-driven learning. |
protected boolean |
MoonClassifier.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Subclasses can implement this hook for more refined error-driven learning. |
protected boolean |
TrainableClassifier.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Subclasses can implement this hook for more refined error-driven learning. |
Constructors in de.fu_berlin.ties.classify that throw ProcessingException | |
---|---|
ClassTrain()
Creates a new instance using a default extension and the standard configuration . |
|
ClassTrain(String outExt)
Creates a new instance using the standard configuration . |
|
ClassTrain(String outExt,
TiesConfiguration conf)
Creates a new instance from the provided configuration. |
|
ExternalClassifier(Set<String> allValidClasses)
Creates a new instance based on the standard configuration. |
|
ExternalClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
TiesConfiguration config)
Creates a new instance based on the provided arguments. |
|
ExternalClassifier(Set<String> allValidClasses,
TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
MetaClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
int layers,
String[] judgeSpec,
Reranker judgeReranker,
TiesConfiguration conf)
Creates a new instance. |
|
MetaClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
TiesConfiguration conf)
Creates a new instance. |
|
MoonClassifier(Set<String> allValidClasses)
Creates a new instance based on the standard configuration. |
|
MoonClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
TiesConfiguration config)
Creates a new instance based on the provided arguments. |
|
MoonClassifier(Set<String> allValidClasses,
TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
MultiBinaryClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
TiesConfiguration conf)
Creates a new instance. |
|
OneAgainstTheRestClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
TiesConfiguration conf)
Creates a new instance. |
|
TextFilter()
Creates a new instance, configured from the default configuration. |
|
TextFilter(TiesConfiguration conf)
Creates a new instance. |
|
TieClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
int layers,
double threshold,
TiesConfiguration conf)
Creates a new instance. |
|
TieClassifier(Set<String> allValidClasses,
FeatureTransformer trans,
File runDirectory,
String[] innerSpec,
TiesConfiguration conf)
Creates a new instance. |
Uses of ProcessingException in de.fu_berlin.ties.classify.feature |
---|
Methods in de.fu_berlin.ties.classify.feature that throw ProcessingException | |
---|---|
FeatureVector |
FeatureExtractor.buildFeatures(Reader reader)
Extracts a vector of relevant features from a text sequence. |
static FeatureExtractor |
FeatureExtractorFactory.createExtractor(TiesConfiguration conf,
String suffix)
Factory method that creates a feature extractor based on the provided configuration. |
static FeatureTransformer |
FeatureTransformer.createTransformer()
Factory method that delegates to FeatureTransformer.createTransformer() using the
standard configuration. |
static FeatureTransformer |
FeatureTransformer.createTransformer(TiesConfiguration config)
Factory method that creates a feature transformer based on the FeatureTransformer.CONFIG_TRANSFORMERS key in the provided configuration. |
Uses of ProcessingException in de.fu_berlin.ties.classify.winnow |
---|
Methods in de.fu_berlin.ties.classify.winnow that throw ProcessingException | |
---|---|
protected boolean |
Winnow.trainOnErrorHook(PredictionDistribution predDist,
FeatureVector features,
String targetClass,
Set candidateClasses,
ContextMap context)
Hook implementing error-driven learning, promoting and demoting weights as required. |
Constructors in de.fu_berlin.ties.classify.winnow that throw ProcessingException | |
---|---|
UltraconservativeWinnow(Set<String> allValidClasses)
Creates a new instance by delegating to the corresponding super constructor. |
|
UltraconservativeWinnow(Set<String> allValidClasses,
FeatureTransformer trans,
TiesConfiguration config)
Creates a new instance by delegating to the corresponding super constructor. |
|
UltraconservativeWinnow(Set<String> allValidClasses,
TiesConfiguration config)
Creates a new instance by delegating to the corresponding super constructor. |
|
Winnow(Set<String> allValidClasses)
Creates a new instance based on the standard configuration. |
|
Winnow(Set<String> allValidClasses,
FeatureTransformer trans,
TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
Winnow(Set<String> allValidClasses,
FeatureTransformer trans,
TiesConfiguration config,
String configSuffix)
Creates a new instance based on the provided configuration. |
|
Winnow(Set<String> allValidClasses,
String configSuffix)
Creates a new instance based on the standard configuration. |
|
Winnow(Set<String> allValidClasses,
TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
Winnow(Set<String> allValidClasses,
TiesConfiguration config,
String configSuffix)
Creates a new instance based on the provided configuration. |
Uses of ProcessingException in de.fu_berlin.ties.combi |
---|
Methods in de.fu_berlin.ties.combi that throw ProcessingException | |
---|---|
static CombinationStrategy |
CombinationStrategy.createStrategy(Set<String> classNames)
Factory method that delegates to CombinationStrategy.createStrategy(Set, TiesConfiguration) using the
standard configuration. |
static CombinationStrategy |
CombinationStrategy.createStrategy(Set<String> classNames,
String combinationName,
TiesConfiguration config)
Factory method that creates a combination strategy based on the provided combinationName . |
static CombinationStrategy |
CombinationStrategy.createStrategy(Set<String> classNames,
TiesConfiguration config)
Factory method that delegates to CombinationStrategy.createStrategy(Set, String, TiesConfiguration) using
the CombinationStrategy.CONFIG_COMBINATION key in the provided configuration. |
FinalReextractor |
BeginEndStrategy.initReextractor(Reestimator reestimatorChain)
This method can be overwritten to initialize a FinalReextractor . This implementation returns a BeginEndReextractor ,
if configured. |
FinalReextractor |
CombinationStrategy.initReextractor(Reestimator reestimatorChain)
This method can be overwritten to initialize a FinalReextractor . |
Uses of ProcessingException in de.fu_berlin.ties.context |
---|
Methods in de.fu_berlin.ties.context that throw ProcessingException | |
---|---|
FeatureVector |
Representation.buildFeatures(Reader reader)
Extracts a vector of relevant features from a text sequence. The input text must contain a well-formed
XML element, otherwise this method will not work. |
PriorRecognitions |
DefaultRepresentation.initDocument(File filename,
TokenizerFactory tFactory)
Initializes the processing of a new document and creates a buffer to be filled with prior Recognition s and passed
as argument to the Representation.buildContext(Element, String, String, String,
PriorRecognitions, Map, String) method. |
PriorRecognitions |
Representation.initDocument(File filename,
TokenizerFactory tFactory)
Initializes the processing of a new document and creates a buffer to be filled with prior Recognition s and passed
as argument to the Representation.buildContext(Element, String, String, String,
PriorRecognitions, Map, String) method. |
Constructors in de.fu_berlin.ties.context that throw ProcessingException | |
---|---|
DefaultRepresentation()
Creates a new instance based on the standard configuration. |
|
DefaultRepresentation(int recogNum,
int detailedRecogs,
int numberOfAncestors,
int numberOfSiblings,
int splitMax,
int prefixMax,
String headElementName,
String headAttribName,
String[] defaultAttribs,
int n,
String outCharset,
String[] sensorNames,
TiesConfiguration config)
Creates a new instance. |
|
DefaultRepresentation(TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
DefaultRepresentation(TiesConfiguration config,
String suffix)
Creates a new instance based on the provided configuration. |
|
SimpleRepresentation()
Creates a new instance based on the standard configuration. |
|
SimpleRepresentation(TiesConfiguration config)
Creates a new instance based on the provided configuration. |
|
SimpleRepresentation(TiesConfiguration config,
String suffix)
Creates a new instance based on the provided configuration. |
Uses of ProcessingException in de.fu_berlin.ties.context.sensor |
---|
Methods in de.fu_berlin.ties.context.sensor that throw ProcessingException | |
---|---|
static Sensor[] |
BaseSensor.createSensors(String[] classNames,
TiesConfiguration conf)
Factory method that initializes an array of sensors. |
void |
Sensor.initDocument(File filename,
TokenizerFactory tFactory)
Called when starting to process a new document. |
void |
BaseSensor.initDocument(File filename,
TokenizerFactory tFactory)
Called when starting to process a new document. The default implementation does nothing. |
Uses of ProcessingException in de.fu_berlin.ties.demo |
---|
Methods in de.fu_berlin.ties.demo that throw ProcessingException | |
---|---|
FilterResult |
SpamFilterDemo.classify(String text)
Classifies a text. |
void |
SpamFilterDemo.clearModel()
Completely resets the internal classification model. |
static void |
SpamFilterDemo.main(String[] args)
Main method for testing. |
void |
SpamFilterDemo.reloadModel()
Reloads the inital state of the internal classification model. |
void |
SpamFilterDemo.trainNonspam(String text)
Trains a text as ham. |
void |
SpamFilterDemo.trainSpam(String text)
Trains a text as spam. |
Constructors in de.fu_berlin.ties.demo that throw ProcessingException | |
---|---|
SpamFilterDemo(File trainingSetFile,
File testSetFile)
Creates a new instance. |
|
SpamFilterDemo(SampleMails myTrainingSet,
SampleMails myTestSet)
Creates a new instance. |
|
SpamFilterDemo(String trainingSetFile,
String testSetFile)
Creates a new instance. |
Uses of ProcessingException in de.fu_berlin.ties.eval |
---|
Methods in de.fu_berlin.ties.eval that throw ProcessingException | |
---|---|
void |
MistakeAnalyzer.analyzeBatch(ExtractionContainer predictions,
ExtractionContainer answers,
String batchSource)
Analyses a batch of predictions and answer keys for a specific source file, determining the types of mistakes that occurred. |
MistakeMatrix |
MistakeAnalyzer.analyzeMistakes(ExtractionContainer extractions,
String localName)
Analyses an evaluated extraction container, determining the types of mistakes that occurred. |
MistakeMatrix |
MistakeAnalyzer.analyzeMistakes(Reader reader,
String localName)
Analyses an serialized contents of an evaluated extraction container and determines the types of mistakes that occurred, delegating to MistakeAnalyzer.analyzeMistakes(ExtractionContainer, String) . |
protected void |
AverageLength.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
protected void |
ReEvaluator.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
protected void |
MistakeAnalyzer.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
void |
PredictionEvaluator.process(List<String> collected,
ContextMap context)
Processes the collected input arguments. |
Uses of ProcessingException in de.fu_berlin.ties.extract |
---|
Methods in de.fu_berlin.ties.extract that throw ProcessingException | |
---|---|
ExtractionContainer |
AnswerBuilder.buildAnswers(Document document)
Buildings an ExtractionContainer of
answer keys from from an annotated XML document. |
void |
TrainEval.close(int errorCount)
Closes this instance, releasing all resources and stopping any background threads. |
protected static DocumentRewriter[] |
ExtractorBase.createDocumentRewriters(TiesConfiguration conf)
Initializes the list of document rewriters. |
void |
Extractor.destroy()
Destroys the internal classifers. |
protected void |
TrainEval.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
ExtractionContainer |
Extractor.extract(Document doc,
File filename)
Extracts items of interest from the contents of an XML document, based on context representation and local classifier. |
protected Document |
ExtractorBase.filterDocument(Document orgDocument,
File filename)
Runs a document though the list of document filters (if any) to modify it. |
protected void |
ExtractorBase.initFields(File filename)
Initializes the fields used for processing a document (feature cache, buffer of prior recognitions, token walker, and statistics) and resets the combination strategy. |
protected Trainer |
TrainEval.initTrainer(File runDirectory)
Creates and initializes a trainer to use for an evaluation run, configured from the stored
configuration . |
ExtractionContainer |
ExtractionMatcher.matchAndOrderExtractions(ExtractionContainer orgContainer,
Document doc)
Matches all extractions from an extraction container against a preprocessing document, ensuring that they can be located. |
void |
AnswerBuilder.process(Document document,
Writer writer,
ContextMap context)
Buildings an ExtractionContainer of
answer keys from from an annotated XML document. |
void |
Extractor.process(Document document,
Writer writer,
ContextMap context)
Extracts items of interest from the contents of an XML document and serializes the extractions. |
void |
Trainer.process(Document document,
Writer writer,
ContextMap context)
Trains the local classifier with the correct extractions of an XML document, using the provided context representation. |
void |
Extractor.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element, optionally modifying the element or the document it is part of. |
void |
Trainer.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element, optionally modifying the element or the document it is part of. |
void |
ExtractionMatcher.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element, optionally modifying the element or the document it is part of. |
void |
Trainer.reset()
Resets the internal classifer, completely deleting the prediction model. |
Accuracy[] |
Trainer.train(Document doc,
File filename,
ExtractionContainer correctExtractions)
Trains the local classifier with the correct extractions of an XML document, using the provided context representation. |
TrainEval.Results |
TrainEval.trainAndEval(String[] files,
File inDirectory,
File outDirectory,
String baseName,
Writer writer)
Processes an array of files. |
Constructors in de.fu_berlin.ties.extract that throw ProcessingException | |
---|---|
Extractor()
Creates a new instance using a default extension. |
|
Extractor(String outExt)
Creates a new instance. |
|
Extractor(String outExt,
File runDirectory,
TiesConfiguration config)
Creates a new instance. |
|
Extractor(String outExt,
TiesConfiguration config)
Creates a new instance. |
|
ExtractorBase(String outExt)
Creates a new instance. |
|
ExtractorBase(String outExt,
File runDirectory,
TiesConfiguration config)
Creates a new instance, configuring target structure, classifier, DefaultRepresentation , node filter, combination strategy and
tokenizer factory from the provided configuration. |
|
ExtractorBase(String outExt,
TiesConfiguration config)
Creates a new instance, configuring target structure, classifier, DefaultRepresentation , node filter and combination strategy from
the provided configuration. |
|
Trainer()
Creates a new instance without specifying an output extension (which isn't needed anyway, because this class doesn't produce output). |
|
Trainer(String outExt)
Creates a new instance. |
|
Trainer(String outExt,
File runDirectory,
TiesConfiguration config)
Creates a new instance. |
|
Trainer(String outExt,
TargetStructure targetStruct,
TrainableClassifier[] theClassifiers,
Representation theRepresentation,
CombinationStrategy combiStrat,
FinalReextractor reextract,
TokenizerFactory tFactory,
Reestimator estimator,
TrainableFilter sentFilter)
Creates a new instance, using the standard configuration to configure the
remaining fields. |
|
Trainer(String outExt,
TiesConfiguration config)
Creates a new instance. |
Uses of ProcessingException in de.fu_berlin.ties.extract.amend |
---|
Methods in de.fu_berlin.ties.extract.amend that throw ProcessingException | |
---|---|
ExtractionContainer |
BeginEndReextractor.reextract(ExtractionContainer originalExtractions,
List<ContextDetails> contextDetails,
ContextMap context)
Re-extract all extractions in a document at the end of the document, considering the complete states of all tokens. |
ExtractionContainer |
FinalReextractor.reextract(ExtractionContainer originalExtractions,
List<ContextDetails> contextDetails,
ContextMap context)
Re-extract all extractions in a document at the end of the document, considering the complete states of all tokens. |
void |
BeginEndReextractor.train(ExtractionContainer answerKeys,
List<ContextDetails> contextDetails,
ContextMap context)
Trains the re-extractor on a document. |
void |
FinalReextractor.train(ExtractionContainer answerKeys,
List<ContextDetails> contextDetails,
ContextMap context)
Trains the re-extractor on a document. |
Constructors in de.fu_berlin.ties.extract.amend that throw ProcessingException | |
---|---|
BeginEndReextractor(Set<String> classNames,
TiesConfiguration config,
LengthFilter myLengthFilter)
Creates a new instance. |
Uses of ProcessingException in de.fu_berlin.ties.extract.reestimate |
---|
Methods in de.fu_berlin.ties.extract.reestimate that throw ProcessingException | |
---|---|
static Reestimator |
Reestimator.createReestimators()
Factory method that delegates to Reestimator.createReestimators() using
the standard configuration. |
static Reestimator |
Reestimator.createReestimators(TiesConfiguration config)
Factory method that creates a re-estimator chain based on the Reestimator.CONFIG_REESTIMATORS key in the provided configuration. |
Uses of ProcessingException in de.fu_berlin.ties.filter |
---|
Methods in de.fu_berlin.ties.filter that throw ProcessingException | |
---|---|
protected boolean |
TrainableFilteringTokenWalker.handleAccept(Element element,
Element filteredElement,
boolean decision)
This method can be overwritten by subclasses to modify decisions of the element filter. This implementation relies on the oracle to make the final decision and joins the predicted decision and the correct
decision via OR. |
protected boolean |
FilteringTokenWalker.handleAccept(Element element,
Element filteredElement,
boolean decision)
This method can be overwritten by subclasses to modify decisions of the element filter. |
void |
RepresentationFilter.init(Document document,
File filename)
Resets the filter to start processing a new document. This method must be called for each document to be procesed by this filter prior to calling ElementFilter.matches(Element) or ElementFilter.prefers(Element) on elements of
this document. |
void |
ElementFilter.init(Document document,
File filename)
Resets the filter to start processing a new document. |
void |
TrainableFilter.init(Document document,
File filename)
Resets the filter to start processing a new document. |
boolean |
RepresentationFilter.matches(Element element)
Decides whether an element is accepted by this filter. |
boolean |
ElementFilter.matches(Element element)
Decides whether an element is accepted by this filter. |
boolean |
TrainableFilter.matches(Element element)
Decides whether an element is accepted by this filter. |
protected void |
FilteringTokenWalker.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element by delegating to the configured TokenProcessor . |
Document |
PredictionRewriter2.rewrite(Document document,
File filename)
Rewrites a document. |
Document |
PredictionRewriter.rewrite(Document document,
File filename)
Rewrites a document. |
Document |
DocumentRewriter.rewrite(Document doc,
File filename)
Rewrites a document. |
boolean |
Oracle.shouldMatch(Element element)
Decides whether an element should be accepted by filters. |
PredictionDistribution |
TrainableFilter.trainIfNecessary(Element element,
boolean decision)
Trains the correct decision for an element by calling the TrainableClassifier.trainOnError(FeatureVector, String,
java.util.Set) method on the stored trainable classifier. |
void |
FilteringTokenWalker.walk(Document document,
ContextMap context)
Walks through the contents of an XML document, tokenizing the textual contents. |
Constructors in de.fu_berlin.ties.filter that throw ProcessingException | |
---|---|
PredictionRewriter(String fileExtension,
TokenizerFactory factory,
TiesConfiguration conf)
Creates a new instance. |
|
PredictionRewriter(TiesConfiguration conf)
Creates a new instance. |
|
PredictionRewriter2(String fileExtension,
String[] predictionClasses,
String myNoneMarker,
TokenizerFactory factory,
TiesConfiguration conf)
Creates a new instance. |
|
PredictionRewriter2(TiesConfiguration conf)
Creates a new instance. |
|
RepresentationFilter(TiesConfiguration conf,
NodeFilter positiveFilter,
NodeFilter negativeFilter,
Reranker rerank,
Representation rep,
String filterPurpose)
Creates a new instance. |
|
TrainableFilter(TiesConfiguration conf,
NodeFilter positiveFilter,
NodeFilter negativeFilter,
Reranker rerank)
Creates a new instance. |
Uses of ProcessingException in de.fu_berlin.ties.io |
---|
Methods in de.fu_berlin.ties.io that throw ProcessingException | |
---|---|
protected void |
Split.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. This implementation delegates to Split.split(Reader, File, String, String) . |
protected void |
Externalize.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. This implementation delegates to Externalize.externalize(FieldContainer, File, String, String) , using
DSV format for input and output. |
Uses of ProcessingException in de.fu_berlin.ties.preprocess |
---|
Methods in de.fu_berlin.ties.preprocess that throw ProcessingException | |
---|---|
protected void |
PreProcessor.doProcess(Reader reader,
Writer writer,
ContextMap context)
Preprocesses the contents of a file. |
Uses of ProcessingException in de.fu_berlin.ties.text |
---|
Methods in de.fu_berlin.ties.text that throw ProcessingException | |
---|---|
protected void |
SimplifyQuotes.doProcess(Reader reader,
Writer writer,
ContextMap context)
Processes the contents of a reader, writing a modified version to a writer. |
Uses of ProcessingException in de.fu_berlin.ties.xml.convert |
---|
Methods in de.fu_berlin.ties.xml.convert that throw ProcessingException | |
---|---|
Document |
AttributeUnflatten.process(Document document,
ContextMap context)
Processes an XML document. This implementation delegates to the AttributeUnflatten.unflatten(Document) method. |
Document |
DSVtoXMLConverter.process(Reader reader,
ContextMap context)
Processes the contents of a reader and stores the results of processing in an XML document. This implementation delegates to DSVtoXMLConverter.convert(FieldContainer) , reading input in
DSV format. |
void |
AttributeUnflatten.unflatten(Document document)
Unflattens an XML document using the combination strategy and the strategy adapter stored in this instance. |
Constructors in de.fu_berlin.ties.xml.convert that throw ProcessingException | |
---|---|
AttributeUnflatten(String outExt)
Creates a new instance, using the standard configuration. |
|
AttributeUnflatten(String outExt,
TiesConfiguration conf)
Creates a new instance, configuring all fields from the provided configuration. |
Uses of ProcessingException in de.fu_berlin.ties.xml.dom |
---|
Methods in de.fu_berlin.ties.xml.dom that throw ProcessingException | |
---|---|
protected void |
TokenWalker.endElementHook(Element element,
ContextMap context)
Empty method that can be overwritten by subclasses to handle the end of elements in a special way. |
protected void |
TokenWalker.processCollectedText(Element element,
CharSequence collectedText,
TokenCounter tokenCounter,
TextTokenizer tokenizer,
ContextMap context)
Helper method that tokenizes the collected textual contents of an element and delegates to the token processor for each of them. |
void |
ElementProcessor.processElement(Element element,
TokenContainer tokenContainer,
ContextMap context)
Processes an element in an XML document, optionally modifying the element or the document it is part of. |
protected void |
TokenWalker.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element by delegating to the configured TokenProcessor . |
void |
TokenProcessor.processToken(Element element,
String left,
TokenDetails details,
String right,
ContextMap context)
Processes a token in an XML element, optionally modifying the element or the document it is part of. |
protected void |
TokenWalker.startElementHook(Element element,
ContextMap context)
Empty method that can be overwritten by subclasses to handle the start of elements in a special way. |
protected void |
TokenWalker.trailingWhitespaceHook(ContextMap context)
Empty method that can be overwritten by subclasses to handle whitespace at the end of element content in a special way. |
void |
DocumentWalker.walk(Document document,
ContextMap context)
Walks through the contents of an XML document, tokenizing the textual contents. |
void |
TokenWalker.walk(Document document,
ContextMap context)
Walks through the contents of an XML document, tokenizing the textual contents. |
protected void |
DocumentWalker.walk(Element element,
TokenContainer tokenContainer,
ContextMap context)
Walks through the contents of a node, tokenizing textual contents and recursing through nested elements. |
protected void |
TokenWalker.walk(Element element,
TokenCounter tokenCounter,
TextTokenizer tokenizer,
ContextMap context)
Walks through the contents of a node, tokenizing textual contents and recursing through nested elements. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |