NAME
Lingua::YALI::Identifier - Returns information about languages.
VERSION
version 0.002
METHODS
BUILD
Initializes internal variables.
add_class($label, $model)
Adds model stored in file $model with label $label.
Returns $iso
remove_class($label)
Removes model for label $label.
Returns $iso
get_classes
Returns all registered classes.
Returns \@classes
identify_file($file)
Identifies class of file $file. Returns reference to array of pairs with values [class, score] sorted descendently according to score, so the first result is the most probable one.
Returns [ ['lbl1', score1], ['lbl2', score2], ...]
identify_string($string)
Identifies class of string $string. Returns reference to array of pairs with values [class, score] sorted descendently according to score, so the first result is the most probable one.
Returns [ ['lbl1', score1], ['lbl2', score2], ...]
identify_handler($fh)
Identifies class of file handler $fh. Returns reference to array of pairs with values [class, score] sorted descendently according to score, so the first result is the most probable one.
Returns [ ['lbl1', score1], ['lbl2', score2], ...]
AUTHOR
Martin Majlis <martin@majlis.cz>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Martin Majlis.
This is free software, licensed under:
The (three-clause) BSD License