Lingua::Phonology::FileFormatPOD 0.32
Sponsored Links
Lingua::Phonology::FileFormatPOD 0.32 Ranking & Summary
File size:
0.097 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1146
Date added:
2006-09-16
Publisher:
Jesse S. Bangs
Lingua::Phonology::FileFormatPOD 0.32 description
Lingua::Phonology::FileFormatPOD is a Perl module that contains documentation for the xml file format written and read by Lingua::Phonology.
As of v0.3, Lingua::Phonology is able to read and write an XML file that defines a complete Lingua::Phonology object. This file is meant to be human-editable, so you can write a phonology definition in a text file and then load it using Lingua::Phonology. Your perl script itself can be quite minimal, as most of the work of creating your phonology is done in the file.
For example, the following script reads the phonology defined in my_phono.xml, then reads a list of underlying forms from STDIN, applies the rules to them, and writes the surface forms to phono.out.
use Lingua::Phonology;
my $phono = new Lingua::Phonology;
$phono->loadfile(my_phono.xml);
open OUT, >phono.out or die $!;
while (< >) {
chomp $_;
# The following assumes one word per line. It also assumes that all of
# our symbols are one character and that there are no diacritics.
# Implementing this script if any of the preceding are false is left as
# an exercise to the reader.
@word = $phono->symbols->segment(split //, $_);
$phono->rules->apply_all(@word);
print OUT $phono->symbols->spell(@word), "n";
}
Of course, having this be successful depends on my_phono.xml working properly. The rest of this document describes how to do that.
As of v0.3, Lingua::Phonology is able to read and write an XML file that defines a complete Lingua::Phonology object. This file is meant to be human-editable, so you can write a phonology definition in a text file and then load it using Lingua::Phonology. Your perl script itself can be quite minimal, as most of the work of creating your phonology is done in the file.
For example, the following script reads the phonology defined in my_phono.xml, then reads a list of underlying forms from STDIN, applies the rules to them, and writes the surface forms to phono.out.
use Lingua::Phonology;
my $phono = new Lingua::Phonology;
$phono->loadfile(my_phono.xml);
open OUT, >phono.out or die $!;
while (< >) {
chomp $_;
# The following assumes one word per line. It also assumes that all of
# our symbols are one character and that there are no diacritics.
# Implementing this script if any of the preceding are false is left as
# an exercise to the reader.
@word = $phono->symbols->segment(split //, $_);
$phono->rules->apply_all(@word);
print OUT $phono->symbols->spell(@word), "n";
}
Of course, having this be successful depends on my_phono.xml working properly. The rest of this document describes how to do that.
Lingua::Phonology::FileFormatPOD 0.32 Screenshot
Advertisements
Lingua::Phonology::FileFormatPOD 0.32 Keywords
FileFormatPOD
FileFormatPOD 0.32
xml file format
xml file
Perl module
file format
file
Perl
xml
Phono-
word
format
Lingua::Phonology::FileFormatPOD
LinguaPhonologyFileFormatPOD
Lingua::Phonology::FileFormatPOD 0.32
Libraries
Bookmark Lingua::Phonology::FileFormatPOD 0.32
Lingua::Phonology::FileFormatPOD 0.32 Copyright
WareSeeker periodically updates pricing and software information of Lingua::Phonology::FileFormatPOD 0.32 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Lingua::Phonology::FileFormatPOD 0.32 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
xml file format converter
xml files
xml file formats
what is xml file format
what is an xml file
xml file format converter for mac 1.0
open xml file format
xml file format converter mac
xml file format element
xml file example
file extension pdf
file formats supported
xml file format tutorial
xml file format example
xml file conversion
fileneu0027s
sample xml file
ipod video file format
Related Software
Lingua::Phonology::Features is a module to handle a set of hierarchical features. Free Download
Lingua::Phonology::Segment is a module to represent a segment as a bundle of feature values. Free Download
Lingua::Phonology::Rules is a Perl module for defining and applying phonological rules. Free Download
Lingua::Phonology::Symbols is a Perl module for associating symbols with segment prototypes. Free Download
XML::ApacheFOP is a Perl module that can access Apache FOP from Perl to create PDF files using XSL-FO. Free Download
XML::Handler::YAWriter is a yet another Perl SAX XML Writer. Free Download
XML::SimpleObject is a Perl extension allowing a simple object representation of a parsed XML::Parser tree. Free Download
XML::Mini::Element is a Perl implementation of the XML::Mini Element API. Free Download
Latest Software
Popular Software
Favourite Software