Lingua::XFST::Network - Perl interface to XFST networks
This document describes Lingua::XFST version 0.1
use Lingua::XFST; my $net = Lingua::XFST::Network->new(file => $filename); # Load network in file $filename my $strings = $net->apply_up($string); # Strings from applying up my $strings = $net->apply_down($string); # Strings from applying down
my $net = Lingua::XFST::Network->new(file => $filename);
Loads a network from the file specified in $filename and creates an applyer instance bound to that network.
$net->apply_up($string);
Takes $string and applies the network to it in the upward direction. Returns a reference to an array containing the resulting strings.
$net->apply_down($string);
Takes $string and applies the network to it in the downward direction. Returns a reference to an array containing the resulting strings.
No known bugs yet. The biggest limitation is the sheer lack of functionality.
Arne Skjærholt <arnsholt@gmail.com>
<arnsholt@gmail.com>
Copyright (c) 2011, Arne Skjærholt <arnsholt@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Lingua::XFST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::XFST
CPAN shell
perl -MCPAN -e shell install Lingua::XFST
For more information on module installation, please visit the detailed CPAN module installation guide.