DTA::CAB::Analyzer::MorphSafe - safety checker for analyses output by DTA::CAB::Analyzer::Morph (TAGH)
use DTA::CAB::Analyzer::MorphSafe;
$msafe = CLASS_OR_OBJ->new(%args);
$bool = $msafe->ensureLoaded();
DTA::CAB::Analyzer::MorphSafe inherits from DTA::CAB::Analyzer.
$msafe = CLASS_OR_OBJ->new(%args);
%args, %$msafe:
##-- selection options
allowTokenizerAnalyses => 1,
allowExlexAnalyses => 1,
##-- dictionary options
badTypesFile => $filename, ##-- filename of ($text "\t" $isGoodBool) mapping for raw utf8 text types
badMorphsFile => $filename, ##-- filename of ($taghMorph "\t" $isBadBool) mapping for TAGH morph components
badTagsFile => $filename, ##-- filename of ($taghTag "\t" $isBadBool) mapping for TAGH tags (tags appear without '[_', ']')
##-- low-level data (after prepare())
badTypes => \%badTypes, ##-- hash of bad utf8 text types ($text=>$isGoodBool)
badMorphs => \%badMorphs, ##-- hash of bad TAGH morphs ($taghMorph=>$isBadBool)
badTags => \%badTags, ##-- hash of bad TAGH tags ($taghTag=>$isBadBool)
$bool = $msafe->ensureLoaded();
Override: ensures analysis data is loaded
$doc = $msafe->analyzeTypes($doc,\%types,\%opts)
Override: implements DTA::CAB::Analyzer::analyzeTypes.
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2009-2019 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.24.1 or, at your option, any later version of Perl 5 you may have available.
Hey! The above document had some coding errors, which are explained below:
You forgot a '=back' before '=head1'