Class ContextualAnalyzer<T extends ContextualStatistics>
java.lang.Object
de.gwdg.metadataqa.marc.analysis.contextual.ContextualAnalyzer<T>
- Direct Known Subclasses:
AuthorityAnalyzer,ClassificationAnalyzer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BibliographicRecordprotected static final Patternprotected final TStatistics are updated during the analysis of the bibliographic record and are used to generate reports. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContextualAnalyzer(BibliographicRecord bibliographicRecord, T statistics) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGiven the fieldStatistics map and a list of schemas, increment the count of each schema in the map.deduplicateSchema(List<Schema> schemas) protected voidregisterSchemas(List<Schema> schemas) protected voidupdateSchemaSubfieldStatistics(DataField field, Schema currentSchema)
-
Field Details
-
NUMERIC_REGEX
-
schemasInRecord
-
bibliographicRecord
-
statistics
Statistics are updated during the analysis of the bibliographic record and are used to generate reports. Usually, statistics are shared among all the analyzers that are part of the same analysis, which means that the same statistics object is passed to all the analyzers.
-
-
Constructor Details
-
ContextualAnalyzer
-
-
Method Details
-
updateSchemaSubfieldStatistics
-
addSchemasToStatistics
Given the fieldStatistics map and a list of schemas, increment the count of each schema in the map.- Parameters:
fieldStatistics- The map of schemas and their countsschemas- The list of schemas to be added to the map
-
registerSchemas
-
deduplicateSchema
-