lingua phonology features
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 26
Lingua::Phonology::Features 0.32
Lingua::Phonology::Features is a module to handle a set of hierarchical features. more>>
Lingua::Phonology::Features is a module to handle a set of hierarchical features.
SYNOPSIS
use Lingua::Phonology;
my $phono = new Lingua::Phonology;
my $features = $phono->features;
# Add features programmatically
$features->add_feature(
Node => { type => privative, children => [Scalar, Binary, Privative] },
Scalar => { type => scalar },
Binary => { type => binary },
Privative => { type => privative }
);
# Drop features
$features->drop_feature(Privative);
# Load feature definitions from a file
$features->loadfile(phono.xml);
# Load default features
$features->loadfile;
Lingua::Phonology::Features allows you to create a hierarchy of features of various types, and includes methods for adding and deleting features and changing the relationships between them.
By "heirarchical features" we mean that some features dominate some other features, as in a tree. By having heirarchical features, it becomes possible to set multiple features at once by assigning to a node, and to indicate conceptually related features that are combined under the same node. This module, however, does not instantiate values of features, but only establishes the relationships between features.
Lingua::Phonology::Features recognizes multiple types of features. Features may be privative (which means that their legal values are either true or undef), binary (which means they may be true, false, or undef), or scalar (which means that their legal value may be anything). You can freely mix different kinds of features into the same set of features.
Finally, while this module provides a full set of methods to add and delete features programmatically, it also provides the option of reading feature definitions from a file. This is usually faster and more convenient. The method to do this is "loadfile". Lingua::Phonology::Features also comes with an extensive default feature set.
<<lessSYNOPSIS
use Lingua::Phonology;
my $phono = new Lingua::Phonology;
my $features = $phono->features;
# Add features programmatically
$features->add_feature(
Node => { type => privative, children => [Scalar, Binary, Privative] },
Scalar => { type => scalar },
Binary => { type => binary },
Privative => { type => privative }
);
# Drop features
$features->drop_feature(Privative);
# Load feature definitions from a file
$features->loadfile(phono.xml);
# Load default features
$features->loadfile;
Lingua::Phonology::Features allows you to create a hierarchy of features of various types, and includes methods for adding and deleting features and changing the relationships between them.
By "heirarchical features" we mean that some features dominate some other features, as in a tree. By having heirarchical features, it becomes possible to set multiple features at once by assigning to a node, and to indicate conceptually related features that are combined under the same node. This module, however, does not instantiate values of features, but only establishes the relationships between features.
Lingua::Phonology::Features recognizes multiple types of features. Features may be privative (which means that their legal values are either true or undef), binary (which means they may be true, false, or undef), or scalar (which means that their legal value may be anything). You can freely mix different kinds of features into the same set of features.
Finally, while this module provides a full set of methods to add and delete features programmatically, it also provides the option of reading feature definitions from a file. This is usually faster and more convenient. The method to do this is "loadfile". Lingua::Phonology::Features also comes with an extensive default feature set.
Download (0.098MB)
Added: 2006-06-13 License: Perl Artistic License Price:
1228 downloads
Lingua::Phonology::Rules 0.32
Lingua::Phonology::Rules is a Perl module for defining and applying phonological rules. more>>
Lingua::Phonology::Rules is a Perl module for defining and applying phonological rules.
SYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
$rules = $phono->rules;
# Adding and manipulating rules is discussed in the "WRITING RULES"
# section
This module allows for the creation of linguistic rules, and the application of those rules to "words" of Segment objects. You, the user, add rules to a Rules object, defining various parameters and code references that actually perform the action of the rule. Lingua::Phonology::Rules will take care of the guts of applying and creating rules.
The rules you create may have the following parameters. This is just a brief description of the parameters--a more detailed discussion of their effect is in the "WRITING RULES" section.
domain
Defines the domain within which the rule applies. This should be the name of a feature in the featureset of the segments which the rule is applied to.
tier
Defines the tier on which the rule applies. Must be the name of a feature in the feature set for the segments of the word you pass in.
direction
Defines the direction that the rule applies in. Must be either leftward or rightward. If no direction is given, defaults to rightward.
filter
Defines a filter for the segments that the rule applies on. Must a code reference that returns a truth value.
linguistic
Defines a linguistic-style rule to be parsed. When you provide a linguistic-style rule, it is parsed into code references that take the place of the where and do properties listed below. The format of linguistic rules is described in "LINGUISTIC-STYLE RULES" in Lingua::Phonology::FileFormatPOD.
where - defines the condition or conditions where the rule applies. Must be a coderef that returns a truth value. If no value is given, defaults to always true.
do - defines the action to take when the where condition is met. Must be a code reference. If no value is given, does nothing.
result - EXPERIMENTAL. Defines a condition that must be true after the do code has applied. Must be a code reference that returns a truth value. NOTE: This parameter depends on the module Whatif (available from CPAN), and will behave differently if this module is not present. See "Using result".
Lingua::Phonology::Rules is flexible and powerful enough to handle any sequential type of rule system. It cannot handle Optimality Theory-style processes, because those require a fundamentally different kind of algorithm.
<<lessSYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
$rules = $phono->rules;
# Adding and manipulating rules is discussed in the "WRITING RULES"
# section
This module allows for the creation of linguistic rules, and the application of those rules to "words" of Segment objects. You, the user, add rules to a Rules object, defining various parameters and code references that actually perform the action of the rule. Lingua::Phonology::Rules will take care of the guts of applying and creating rules.
The rules you create may have the following parameters. This is just a brief description of the parameters--a more detailed discussion of their effect is in the "WRITING RULES" section.
domain
Defines the domain within which the rule applies. This should be the name of a feature in the featureset of the segments which the rule is applied to.
tier
Defines the tier on which the rule applies. Must be the name of a feature in the feature set for the segments of the word you pass in.
direction
Defines the direction that the rule applies in. Must be either leftward or rightward. If no direction is given, defaults to rightward.
filter
Defines a filter for the segments that the rule applies on. Must a code reference that returns a truth value.
linguistic
Defines a linguistic-style rule to be parsed. When you provide a linguistic-style rule, it is parsed into code references that take the place of the where and do properties listed below. The format of linguistic rules is described in "LINGUISTIC-STYLE RULES" in Lingua::Phonology::FileFormatPOD.
where - defines the condition or conditions where the rule applies. Must be a coderef that returns a truth value. If no value is given, defaults to always true.
do - defines the action to take when the where condition is met. Must be a code reference. If no value is given, does nothing.
result - EXPERIMENTAL. Defines a condition that must be true after the do code has applied. Must be a code reference that returns a truth value. NOTE: This parameter depends on the module Whatif (available from CPAN), and will behave differently if this module is not present. See "Using result".
Lingua::Phonology::Rules is flexible and powerful enough to handle any sequential type of rule system. It cannot handle Optimality Theory-style processes, because those require a fundamentally different kind of algorithm.
Download (0.097MB)
Added: 2007-07-16 License: Perl Artistic License Price:
831 downloads
Lingua::Phonology::FileFormatPOD 0.32
Lingua::Phonology::FileFormatPOD is a Perl module that contains documentation for the xml file format. more>>
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.
<<lessAs 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.
Download (0.097MB)
Added: 2006-09-16 License: Perl Artistic License Price:
1134 downloads
Lingua::Phonology::Segment 0.32
Lingua::Phonology::Segment is a module to represent a segment as a bundle of feature values. more>>
Lingua::Phonology::Segment is a module to represent a segment as a bundle of feature values.
SYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
# Define a feature set
$features = $phono->features;
$features->loadfile;
# Make a segment
$segment = $phono->segment;
# Set some values
$segment->labial(1);
$segment->continuant(0);
$segment->voice(1);
# Segment is now voiced labial stop, i.e. [b]
# Reset the segment
$segment->clear;
A Lingua::Phonology::Segment object provides a programmatic representation of a linguistic segment. Such a segment is associated with a Lingua::Phonology::Features object that lists the available features and the relationships between them. The segment itself is a list of the values for those features.
This module provides methods for returning and setting these feature values. A segment may also be associated with a Lingua::Phonology::Symbols object, which allows the segment to return the symbol that it best matches.
OVERLOADING
As of Lingua::Phonology v0.32 (Lingua::Phonology::Segment v0.4), string conversion of segments is overloaded. When you use a Lingua::Phonology::Segment in string context, the spell() method is automatically called, and the representation of the segment from the current symbolset is returned. String comparison operators (cmp eq ne lt le gt ge) are also overloaded. Therefore, the following work correctly, assuming that you have a Lingua::Phonology object correctly set up in $phono.
my ($b, $k) = $phono->symbols->segment(b, k);
print "Segments: $b, $kn"; # Prints "Segments: b, k";
print "$b is greater than $kn" if $b gt $k; # Wont print
print "$b is less than $kn" if $b lt $k; # Prints b is less than k;
print "$b is equal to $kn" if $b eq $k; # Wont print
my $b2 = $b->duplicate;
print "$b is equal to $b2n" if $b eq $b2 # Prints b is equal to b;
Note that stringification is not overloaded if the symbolset is not properly set. However, it turns on as soon as a symbolset is available:
my $b = Lingua::Phonology::Segment->new($features);
$b->voice(1);
$b->labial(1);
print "$bn"; # Prints Lingua::Phonology::Segment=HASH(0x88af598)
# or something similar, because there is no symbolset
# defined for spelling the segment.
$b->symbolset($symbols);
print "$bn"; # Prints b
Number conversion is not overloaded.
<<lessSYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
# Define a feature set
$features = $phono->features;
$features->loadfile;
# Make a segment
$segment = $phono->segment;
# Set some values
$segment->labial(1);
$segment->continuant(0);
$segment->voice(1);
# Segment is now voiced labial stop, i.e. [b]
# Reset the segment
$segment->clear;
A Lingua::Phonology::Segment object provides a programmatic representation of a linguistic segment. Such a segment is associated with a Lingua::Phonology::Features object that lists the available features and the relationships between them. The segment itself is a list of the values for those features.
This module provides methods for returning and setting these feature values. A segment may also be associated with a Lingua::Phonology::Symbols object, which allows the segment to return the symbol that it best matches.
OVERLOADING
As of Lingua::Phonology v0.32 (Lingua::Phonology::Segment v0.4), string conversion of segments is overloaded. When you use a Lingua::Phonology::Segment in string context, the spell() method is automatically called, and the representation of the segment from the current symbolset is returned. String comparison operators (cmp eq ne lt le gt ge) are also overloaded. Therefore, the following work correctly, assuming that you have a Lingua::Phonology object correctly set up in $phono.
my ($b, $k) = $phono->symbols->segment(b, k);
print "Segments: $b, $kn"; # Prints "Segments: b, k";
print "$b is greater than $kn" if $b gt $k; # Wont print
print "$b is less than $kn" if $b lt $k; # Prints b is less than k;
print "$b is equal to $kn" if $b eq $k; # Wont print
my $b2 = $b->duplicate;
print "$b is equal to $b2n" if $b eq $b2 # Prints b is equal to b;
Note that stringification is not overloaded if the symbolset is not properly set. However, it turns on as soon as a symbolset is available:
my $b = Lingua::Phonology::Segment->new($features);
$b->voice(1);
$b->labial(1);
print "$bn"; # Prints Lingua::Phonology::Segment=HASH(0x88af598)
# or something similar, because there is no symbolset
# defined for spelling the segment.
$b->symbolset($symbols);
print "$bn"; # Prints b
Number conversion is not overloaded.
Download (0.098MB)
Added: 2006-06-02 License: Perl Artistic License Price:
1239 downloads
Lingua::Phonology::Symbols 0.32
Lingua::Phonology::Symbols is a Perl module for associating symbols with segment prototypes. more>>
Lingua::Phonology::Symbols is a Perl module for associating symbols with segment prototypes.
SYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
# Load the default features
$phono->features->loadfile;
# Load the default symbols
$symbols = $phono->symbols;
$symbols->loadfile;
# Make a test segment
$segment = $phono->segment;
$segment->labial(1);
$segment->voice(1);
# Find the symbol matching the segment
print $symbols->spell($segment); # Should print b
When using Lingua::Phonology, you usually manipulate Segment objects that have various feature values that specify the phonetic qualities of the segment. However, it is difficult to print those feature values, and a list of feature values can be difficult to interpret anyway. This is where Symbols comes in--it provides a way to take a Segment object and get a phonetic symbol representing the properties of that segment.
In Symbols, you may use add_symbol() to define text symbols that correlate to "prototypes", which are special Segment objects that represent the ideal segment for each symbol. After you have defined your symbols and prototypes, you may use spell() to find which prototype is the most similar to a segment in question, and get the symbol for that prototype.
As of v0.2, Symbols also includes diacritics. A diacritic is a special symbol that begins or ends with a *, and which is used to modify other symbols. If the best symbol match for a segment you are trying to spell is an imperfect match, Symbols will then attempt to use diacritics to indicate exactly how the segment is pronounced. For compatibility reasons, however, this feature is off by default. It can be turned on with set_diacritics.
You will probably want to read the add_symbol, spell, and loadfile sections, because these describe the most widely-used functions and the algorithm used to score potential matches. If youre not getting the results you expect, you probably need to examine the way your prototype definitions are interacting with that algorithm.
<<lessSYNOPSIS
use Lingua::Phonology;
$phono = new Lingua::Phonology;
# Load the default features
$phono->features->loadfile;
# Load the default symbols
$symbols = $phono->symbols;
$symbols->loadfile;
# Make a test segment
$segment = $phono->segment;
$segment->labial(1);
$segment->voice(1);
# Find the symbol matching the segment
print $symbols->spell($segment); # Should print b
When using Lingua::Phonology, you usually manipulate Segment objects that have various feature values that specify the phonetic qualities of the segment. However, it is difficult to print those feature values, and a list of feature values can be difficult to interpret anyway. This is where Symbols comes in--it provides a way to take a Segment object and get a phonetic symbol representing the properties of that segment.
In Symbols, you may use add_symbol() to define text symbols that correlate to "prototypes", which are special Segment objects that represent the ideal segment for each symbol. After you have defined your symbols and prototypes, you may use spell() to find which prototype is the most similar to a segment in question, and get the symbol for that prototype.
As of v0.2, Symbols also includes diacritics. A diacritic is a special symbol that begins or ends with a *, and which is used to modify other symbols. If the best symbol match for a segment you are trying to spell is an imperfect match, Symbols will then attempt to use diacritics to indicate exactly how the segment is pronounced. For compatibility reasons, however, this feature is off by default. It can be turned on with set_diacritics.
You will probably want to read the add_symbol, spell, and loadfile sections, because these describe the most widely-used functions and the algorithm used to score potential matches. If youre not getting the results you expect, you probably need to examine the way your prototype definitions are interacting with that algorithm.
Download (0.097MB)
Added: 2007-07-16 License: GPL (GNU General Public License) Price:
831 downloads
Bio::Graphics::Feature 1.4
Bio::Graphics::Feature is a simple feature object for use with Bio::Graphics::Panel. more>>
Bio::Graphics::Feature is a simple feature object for use with Bio::Graphics::Panel.
SYNOPSIS
use Bio::Graphics::Feature;
# create a simple feature with no internal structure
$f = Bio::Graphics::Feature->new(-start => 1000,
-stop => 2000,
-type => transcript,
-name => alpha-1 antitrypsin,
-desc => an enzyme inhibitor,
);
# create a feature composed of multiple segments, all of type "similarity"
$f = Bio::Graphics::Feature->new(-segments => [[1000,1100],[1500,1550],[1800,2000]],
-name => ABC-3,
-type => gapped_alignment,
-subtype => similarity);
# build up a gene exon by exon
$e1 = Bio::Graphics::Feature->new(-start=>1,-stop=>100,-type=>exon);
$e2 = Bio::Graphics::Feature->new(-start=>150,-stop=>200,-type=>exon);
$e3 = Bio::Graphics::Feature->new(-start=>300,-stop=>500,-type=>exon);
$f = Bio::Graphics::Feature->new(-segments=>[$e1,$e2,$e3],-type=>gene);
This is a simple Bio::SeqFeatureI-compliant object that is compatible with Bio::Graphics::Panel. With it you can create lightweight feature objects for drawing.
<<lessSYNOPSIS
use Bio::Graphics::Feature;
# create a simple feature with no internal structure
$f = Bio::Graphics::Feature->new(-start => 1000,
-stop => 2000,
-type => transcript,
-name => alpha-1 antitrypsin,
-desc => an enzyme inhibitor,
);
# create a feature composed of multiple segments, all of type "similarity"
$f = Bio::Graphics::Feature->new(-segments => [[1000,1100],[1500,1550],[1800,2000]],
-name => ABC-3,
-type => gapped_alignment,
-subtype => similarity);
# build up a gene exon by exon
$e1 = Bio::Graphics::Feature->new(-start=>1,-stop=>100,-type=>exon);
$e2 = Bio::Graphics::Feature->new(-start=>150,-stop=>200,-type=>exon);
$e3 = Bio::Graphics::Feature->new(-start=>300,-stop=>500,-type=>exon);
$f = Bio::Graphics::Feature->new(-segments=>[$e1,$e2,$e3],-type=>gene);
This is a simple Bio::SeqFeatureI-compliant object that is compatible with Bio::Graphics::Panel. With it you can create lightweight feature objects for drawing.
Download (4.7MB)
Added: 2006-10-21 License: Perl Artistic License Price:
1098 downloads
Lingua::ZH::HanConvert 0.12
Lingua::ZH::HanConvert is a Perl module to convert between Traditional and Simplified Chinese characters. more>> <<less
Download (0.030MB)
Added: 2006-08-09 License: Perl Artistic License Price:
1171 downloads
Gimp::Feature 1.211
Gimp::Feature is a Perl module that can check for specific features to be present before registering the script. more>>
Gimp::Feature is a Perl module that can check for specific features to be present before registering the script.
SYNOPSIS
use Gimp::Feature;
or
use Gimp::Feature qw(feature1 feature2 ...);
This module can be used to check for specific features to be present. This can be used to deny running the script when neccessary features are not present. While some features can be checked for at any time, the Gimp::Fu module offers a nicer way to check for them.
gtk
checks for the presence of the gtk interface module.
gtk-1.1, gtk-1.2
checks for the presence of gtk-1.1 (1.2) or higher.
perl-5.005
checks for perl version 5.005 or higher.
pdl
checks for the presence of a suitable version of PDL (>=1.9906).
gnome
checks for the presence of the Gnome-Perl module.
gtkxmhtl
checks for the presence of the Gtk::XmHTML module.
unix
checks wether the script runs on a unix-like operating system. At the moment, this is every system except windows, macos, os2 and vms.
persistency
checks wether the Gimp::Data module (Gimp::Data) can handle complex persistent data structures, i.e. perl references in addition to plain strings.
The following features can only be checked after Gimp-main> has been called (usually found in the form exit main). See Gimp::Fu on how to check for these.
gimp-1.1, gimp-1.2
checks for the presense of gimp in at least version 1.1 (1.2).
FUNCTIONS
present(feature)
Checks for the presense of the single feature given as the argument. Returns true if the feature is present, false otherwise.
need(feature,[function-name])
Require a specific feature. If the required feature is not present the program will exit gracefully, logging an appropriate message. You can optionally supply a function name to further specify the place where this feature was missing.
This is the function used when importing symbols from the module.
missing(feature-description,[function-name])
Indicates that a generic feature (described by the first argument) is missing. A function name can further be specified. This function will log the given message and exit gracefully.
describe(feature)
Returns a string describing the given feature in more detail, or undef if there is no description for this feature.
list()
Returns a list of features that can be checked for. This list might not be complete.
<<lessSYNOPSIS
use Gimp::Feature;
or
use Gimp::Feature qw(feature1 feature2 ...);
This module can be used to check for specific features to be present. This can be used to deny running the script when neccessary features are not present. While some features can be checked for at any time, the Gimp::Fu module offers a nicer way to check for them.
gtk
checks for the presence of the gtk interface module.
gtk-1.1, gtk-1.2
checks for the presence of gtk-1.1 (1.2) or higher.
perl-5.005
checks for perl version 5.005 or higher.
pdl
checks for the presence of a suitable version of PDL (>=1.9906).
gnome
checks for the presence of the Gnome-Perl module.
gtkxmhtl
checks for the presence of the Gtk::XmHTML module.
unix
checks wether the script runs on a unix-like operating system. At the moment, this is every system except windows, macos, os2 and vms.
persistency
checks wether the Gimp::Data module (Gimp::Data) can handle complex persistent data structures, i.e. perl references in addition to plain strings.
The following features can only be checked after Gimp-main> has been called (usually found in the form exit main). See Gimp::Fu on how to check for these.
gimp-1.1, gimp-1.2
checks for the presense of gimp in at least version 1.1 (1.2).
FUNCTIONS
present(feature)
Checks for the presense of the single feature given as the argument. Returns true if the feature is present, false otherwise.
need(feature,[function-name])
Require a specific feature. If the required feature is not present the program will exit gracefully, logging an appropriate message. You can optionally supply a function name to further specify the place where this feature was missing.
This is the function used when importing symbols from the module.
missing(feature-description,[function-name])
Indicates that a generic feature (described by the first argument) is missing. A function name can further be specified. This function will log the given message and exit gracefully.
describe(feature)
Returns a string describing the given feature in more detail, or undef if there is no description for this feature.
list()
Returns a list of features that can be checked for. This list might not be complete.
Download (0.26MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1201 downloads
Lingua::ZH::DateTime 0.01
Lingua::ZH::DateTime is a Perl module to convert time to chinese format. more>>
Lingua::ZH::DateTime is a Perl module to convert time to chinese format.
SYNOPSIS
This module can convert asctime to chinese format in your locale. you can select china singapore hongkong taiwan locale and gb2312/big5 charset. asctime is ASC C standard format will from localtime like this:
$asctime = localtime();
<<lessSYNOPSIS
This module can convert asctime to chinese format in your locale. you can select china singapore hongkong taiwan locale and gb2312/big5 charset. asctime is ASC C standard format will from localtime like this:
$asctime = localtime();
Download (0.003MB)
Added: 2006-08-09 License: Perl Artistic License Price:
1173 downloads
Bio::DB::GFF::Feature 1.4
Bio::DB::GFF::Feature is a relative segment identified by a feature type. more>>
Bio::DB::GFF::Feature is a relative segment identified by a feature type.
Bio::DB::GFF::Feature is a stretch of sequence that corresponding to a single annotation in a GFF database. It inherits from Bio::DB::GFF::RelSegment, and so has all the support for relative addressing of this class and its ancestors. It also inherits from Bio::SeqFeatureI and so has the familiar start(), stop(), primary_tag() and location() methods (it implements Bio::LocationI too, if needed).
Bio::DB::GFF::Feature adds new methods to retrieve the annotations type, group, and other GFF attributes. Annotation types are represented by Bio::DB::GFF::Typename objects, a simple class that has two methods called method() and source(). These correspond to the method and source fields of a GFF file.
Annotation groups serve the dual purpose of giving the annotation a human-readable name, and providing higher-order groupings of subfeatures into features. The groups returned by this module are objects of the Bio::DB::GFF::Featname class.
Bio::DB::GFF::Feature inherits from and implements the abstract methods of Bio::SeqFeatureI, allowing it to interoperate with other Bioperl modules.
Generally, you will not create or manipulate Bio::DB::GFF::Feature objects directly, but use those that are returned by the Bio::DB::GFF::RelSegment->features() method.
Important note about start() vs end()
If features are derived from segments that use relative addressing (which is the default), then start() will be less than end() if the feature is on the opposite strand from the reference sequence. This breaks Bio::SeqI compliance, but is necessary to avoid having the real genomic locations designated by start() and end() swap places when changing reference points.
To avoid this behavior, call $segment->absolute(1) before fetching features from it. This will force everything into absolute coordinates.
For example:
my $segment = $db->segment(CHROMOSOME_I);
$segment->absolute(1);
my @features = $segment->features(transcript);
<<lessBio::DB::GFF::Feature is a stretch of sequence that corresponding to a single annotation in a GFF database. It inherits from Bio::DB::GFF::RelSegment, and so has all the support for relative addressing of this class and its ancestors. It also inherits from Bio::SeqFeatureI and so has the familiar start(), stop(), primary_tag() and location() methods (it implements Bio::LocationI too, if needed).
Bio::DB::GFF::Feature adds new methods to retrieve the annotations type, group, and other GFF attributes. Annotation types are represented by Bio::DB::GFF::Typename objects, a simple class that has two methods called method() and source(). These correspond to the method and source fields of a GFF file.
Annotation groups serve the dual purpose of giving the annotation a human-readable name, and providing higher-order groupings of subfeatures into features. The groups returned by this module are objects of the Bio::DB::GFF::Featname class.
Bio::DB::GFF::Feature inherits from and implements the abstract methods of Bio::SeqFeatureI, allowing it to interoperate with other Bioperl modules.
Generally, you will not create or manipulate Bio::DB::GFF::Feature objects directly, but use those that are returned by the Bio::DB::GFF::RelSegment->features() method.
Important note about start() vs end()
If features are derived from segments that use relative addressing (which is the default), then start() will be less than end() if the feature is on the opposite strand from the reference sequence. This breaks Bio::SeqI compliance, but is necessary to avoid having the real genomic locations designated by start() and end() swap places when changing reference points.
To avoid this behavior, call $segment->absolute(1) before fetching features from it. This will force everything into absolute coordinates.
For example:
my $segment = $db->segment(CHROMOSOME_I);
$segment->absolute(1);
my @features = $segment->features(transcript);
Download (4.7MB)
Added: 2006-06-09 License: Perl Artistic License Price:
1232 downloads
Lingua::EN::WordsToNumbers 0.11
Lingua::EN::WordsToNumbers is Perl module to convert numbers written in English to actual numbers. more>>
Lingua::EN::WordsToNumbers is Perl module to convert numbers written in English to actual numbers.
This module is an OO wrapper for Lingua::EN::Words2Nums, which is very nice, but has an unfortunate name (which doesnt help when youre searching CPAN for modules that turn words into numbers).
SYNOPSIS
use Lingua::EN::WordsToNumbers;
my $numberizer = Lingua::EN::WordsToNumbers->new;
print $numberizer->parse("Forty-two"); # "42"
$numberizer->debug(1); # debug on
$numberizer->debug(undef); # debug off
$numberizer->billion(10**12); # use "English billion"
METHODS
new
my $numberizer = Lingua::EN::WordsToNumbers->new;
Gives you a new "object". Doesnt really do much.
parse
print $numberizer->parse("Forty-two"); # "42"
An alias for Lingua::EN::Words2Numss words2nums method. Read that modules documentation to see how it works. You can also call this method as words2nums if you really want to.
debug
$numberizer->debug(1);
Set Lingua::EN::Words2Nums debug mode. True values are on, anything else is off.
billion
$numberizer->billion(10**12);
Define the value of a billion ($Lingua::EN::Words2Nums::billion).
<<lessThis module is an OO wrapper for Lingua::EN::Words2Nums, which is very nice, but has an unfortunate name (which doesnt help when youre searching CPAN for modules that turn words into numbers).
SYNOPSIS
use Lingua::EN::WordsToNumbers;
my $numberizer = Lingua::EN::WordsToNumbers->new;
print $numberizer->parse("Forty-two"); # "42"
$numberizer->debug(1); # debug on
$numberizer->debug(undef); # debug off
$numberizer->billion(10**12); # use "English billion"
METHODS
new
my $numberizer = Lingua::EN::WordsToNumbers->new;
Gives you a new "object". Doesnt really do much.
parse
print $numberizer->parse("Forty-two"); # "42"
An alias for Lingua::EN::Words2Numss words2nums method. Read that modules documentation to see how it works. You can also call this method as words2nums if you really want to.
debug
$numberizer->debug(1);
Set Lingua::EN::Words2Nums debug mode. True values are on, anything else is off.
billion
$numberizer->billion(10**12);
Define the value of a billion ($Lingua::EN::Words2Nums::billion).
Download (0.003MB)
Added: 2006-08-23 License: Perl Artistic License Price:
1158 downloads
Lingua::EO::Supersignoj 0.02
Lingua::EO::Supersignoj is a Perl module that can convert Esperanto characters. more>>
Lingua::EO::Supersignoj is a Perl module that can convert Esperanto characters.
SYNOPSIS
use Lingua::EO::Supersignoj;
my $transkodigilo = Lingua::EO::Supersignoj->nova(
de => fronte,
al => X,
u => u*
);
print $transkodigilo->transkodigu(Mia ^suoj estas ankau* en la ^cambro.);
# prints: Mia sxuoj estas ankaux en la cxambro.
my $transkodigilo = Lingua::EO::Supersignoj->nova(de => X);
for (qw(X x H h poste fronte apostrofoj iso unikodo)) {
$transkodigilo->al = $_;
print $transkodigilo->transkodigu(
Laux Ludoviko Zamenhof bongustas .
fresxa cxecxa mangxajxo kun spicoj.
);
}
Esperanto has 6 letters that ASCII doesnt have. These characters do exist in Unicode and ISO-8859-3. This object orientated module makes conversion easier.
<<lessSYNOPSIS
use Lingua::EO::Supersignoj;
my $transkodigilo = Lingua::EO::Supersignoj->nova(
de => fronte,
al => X,
u => u*
);
print $transkodigilo->transkodigu(Mia ^suoj estas ankau* en la ^cambro.);
# prints: Mia sxuoj estas ankaux en la cxambro.
my $transkodigilo = Lingua::EO::Supersignoj->nova(de => X);
for (qw(X x H h poste fronte apostrofoj iso unikodo)) {
$transkodigilo->al = $_;
print $transkodigilo->transkodigu(
Laux Ludoviko Zamenhof bongustas .
fresxa cxecxa mangxajxo kun spicoj.
);
}
Esperanto has 6 letters that ASCII doesnt have. These characters do exist in Unicode and ISO-8859-3. This object orientated module makes conversion easier.
Download (0.004MB)
Added: 2006-08-08 License: Perl Artistic License Price:
1172 downloads
Lingua::EN::VarCon 1.00
Lingua::EN::VarCon is a Perl module that provides access to the VarCon (Variant Conversion Info). more>>
VarCon is a data set provided as part of the Word List project.
It contains a number of lists and tables of words that can be used to help automatically convert the English language between the differing spellings of its local dialects (American, British, Canadian).
In an age where Spanish application translations are common, but finding a British, Canadian or Australian translation (as used by FAR more people than American English) can be almost impossible, and when "English" on the internet is increasingly seeming to be "American", it is hoped that by providing access to the raw data in a variety of different ways (optimised for different application types with different load profiles) it will encourage developers to integrate support for automated dialect translation into internationalisation toolkits, and thus into many applications.
METHODS
For this initial release, only methods to locate the files are provided.
Additional access methods will be provided later, or on request.
abbc_file
The abbc_file method returns the location of the abbc.tab file from the VarCon data set.
also_file
The also_file method returns the location of the variant-also.tab file from the VarCon data set.
infl_file
The infl_file method returns the location of the variant-infl.tab file from the VarCon data set.
wroot_file
The infl_file method returns the location of the variant-wroot.tab file from the VarCon data set.
voc_file
The voc_file method returns the location of the voc.tab file from the VarCon data set.
Download (0.18MB)
Added: 2007-02-22 License: Perl Artistic License Price:
974 downloads
Lingua::Conjunction 2.00
Lingua::Conjunction is Perl module convert Perl lists into linguistic conjunctions. more>>
Lingua::Conjunction is Perl module convert Perl lists into linguistic conjunctions.
SYNOPSIS
use Lingua::Conjunction;
# emits "Jack"
$name_list = conjunction(Jack);
# emits "Jack and Jill"
$name_list = conjunction(Jack, Jill);
# emits "Jack, Jill, and Spot"
$name_list = conjunction(Jack, Jill, Spot);
# emits "Jack, a boy; Jill, a girl; and Spot, a dog"
$name_list = conjunction(Jack, a boy, Jill, a girl, Spot, a dog);
# emits "Jacques, un garcon; Jeanne, une fille; et Spot, un chien"
Lingua::Conjunction->lang(fr);
$name_list = conjunction(
Jacques, un garcon,
Jeanne, une fille,
Spot, un chien
);
Lingua::Conjunction exports a single subroutine, conjunction, that converts a list into a properly punctuated text string.
You can cause conjunction to use the connectives of other languages, by calling the appropriate subroutine:
Lingua::Conjunction->lang(en); # use and (default)
Lingua::Conjunction->lang(es); # use y
Supported languages in this version are English, Spanish, French, Italian, German, Portuguese, Norwegian, Danish, Dutch, Afrikaans, Swahili, and Latin. (Klingon is intentionally not supported.)
You can also set connectives individually:
Lingua::Conjunction->separator("...");
Lingua::Conjunction->separator_phrase("--");
Lingua::Conjunction->connector_type("or");
# emits "Jack... Jill... or Spot"
$name_list = conjunction(Jack, Jill, Spot);
The separator_phrase is used whenever the separator already appears in an item of the list. For example:
# emits "Doe, a deer; Ray; and Me"
$name_list = conjunction(Doe, a deer, Ray, Me);
You may use the penultimate routine to diable the separator after the next to last item. Generally this is bad English practice but the option is there if you want it:
# emits "Jack, Jill and Spot"
Lingua::Conjunction->penultimate(0);
$name_list = conjunction(Jack, Jill, Spot);
I have been told that the penultimate comma is not standard for some languages, such as Norwegian. Hence the defaults set in the %languages.
<<lessSYNOPSIS
use Lingua::Conjunction;
# emits "Jack"
$name_list = conjunction(Jack);
# emits "Jack and Jill"
$name_list = conjunction(Jack, Jill);
# emits "Jack, Jill, and Spot"
$name_list = conjunction(Jack, Jill, Spot);
# emits "Jack, a boy; Jill, a girl; and Spot, a dog"
$name_list = conjunction(Jack, a boy, Jill, a girl, Spot, a dog);
# emits "Jacques, un garcon; Jeanne, une fille; et Spot, un chien"
Lingua::Conjunction->lang(fr);
$name_list = conjunction(
Jacques, un garcon,
Jeanne, une fille,
Spot, un chien
);
Lingua::Conjunction exports a single subroutine, conjunction, that converts a list into a properly punctuated text string.
You can cause conjunction to use the connectives of other languages, by calling the appropriate subroutine:
Lingua::Conjunction->lang(en); # use and (default)
Lingua::Conjunction->lang(es); # use y
Supported languages in this version are English, Spanish, French, Italian, German, Portuguese, Norwegian, Danish, Dutch, Afrikaans, Swahili, and Latin. (Klingon is intentionally not supported.)
You can also set connectives individually:
Lingua::Conjunction->separator("...");
Lingua::Conjunction->separator_phrase("--");
Lingua::Conjunction->connector_type("or");
# emits "Jack... Jill... or Spot"
$name_list = conjunction(Jack, Jill, Spot);
The separator_phrase is used whenever the separator already appears in an item of the list. For example:
# emits "Doe, a deer; Ray; and Me"
$name_list = conjunction(Doe, a deer, Ray, Me);
You may use the penultimate routine to diable the separator after the next to last item. Generally this is bad English practice but the option is there if you want it:
# emits "Jack, Jill and Spot"
Lingua::Conjunction->penultimate(0);
$name_list = conjunction(Jack, Jill, Spot);
I have been told that the penultimate comma is not standard for some languages, such as Norwegian. Hence the defaults set in the %languages.
Download (0.004MB)
Added: 2006-08-23 License: Perl Artistic License Price:
1160 downloads
Lingua::EN::Keywords::Yahoo 0.5
Lingua::EN::Keywords::Yahoo it can automatically extracts keywords from text using the Yahoo! API. more>>
Lingua::EN::Keywords::Yahoo it can automatically extracts keywords from text using the Yahoo! API.
SYNOPSIS
use Lingua::EN::Keywords::Yahoo qw(keywords);
my @keywords = keywords($text);
or
my @keywords = keywords($text, $query);
Where $query is an optional term to help with the extraction process.
This uses the Yahoo! keywords API to extract keywords from text.
To quote the Yahoo! page: "The Term Extraction Web Service provides a list of significant words or phrases extracted from a larger content."
<<lessSYNOPSIS
use Lingua::EN::Keywords::Yahoo qw(keywords);
my @keywords = keywords($text);
or
my @keywords = keywords($text, $query);
Where $query is an optional term to help with the extraction process.
This uses the Yahoo! keywords API to extract keywords from text.
To quote the Yahoo! page: "The Term Extraction Web Service provides a list of significant words or phrases extracted from a larger content."
Download (0.003MB)
Added: 2006-12-07 License: Perl Artistic License Price:
1051 downloads
Secleted [ 0 ] software to compare
- Page: 1 of 2
- 1
- 2
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above lingua phonology features search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed