NAME

DTA::CAB::Analyzer::MorphSafe - safety checker for analyses output by DTA::CAB::Analyzer::Morph (TAGH)

SYNOPSIS

use DTA::CAB::Analyzer::MorphSafe;

$msafe = CLASS_OR_OBJ->new(%args);

$bool = $msafe->ensureLoaded();

DESCRIPTION

Globals

Variable: @ISA

DTA::CAB::Analyzer::MorphSafe inherits from DTA::CAB::Analyzer.

Constructors etc.

new
$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)

Methods

ensureLoaded
$bool = $msafe->ensureLoaded();

Override: ensures analysis data is loaded

analyzeTypes
$doc = $msafe->analyzeTypes($doc,\%types,\%opts)

Override: implements DTA::CAB::Analyzer::analyzeTypes.

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 369:

You forgot a '=back' before '=head1'