The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lingua::Interset::SimpleAtom - Atomic driver for a surface feature.

VERSION

version 3.012

SYNOPSIS

  use Lingua::Interset::SimpleAtom;

  my $atom = Lingua::Interset::SimpleAtom->new
  (
      'intfeature'        => 'case',
      'simple_decode_map' => { 1 => 'nom', 2 => 'gen', 3 => 'dat', 4 => 'acc', 5 => 'voc', 6 => 'loc', 7 => 'ins' }
  );

DESCRIPTION

SimpleAtom is a special simple case of Lingua::Interset::Atom. Unlike in general Atom, for SimpleAtom there is an injective function mapping the surface strings to values of just one Interset feature. This makes defining the decoding and encoding maps much easier.

ATTRIBUTES

intfeature

Name of the Interset feature to which the atom maps.

simple_decode_map

A compact description of mapping from the surface tags to the Interset feature values. It is a hash reference. Hash keys are surface tags and hash values are the values of the corresponding Interset feature.

encode_default

If you want a simple decoding/encoding table with an additional default encoding rule, e.g. {'@' => '-'}, then set 'encode_default' => '-'. By default, this attribute is set to the empty string.

SEE ALSO

Lingua::Interset::Atom, Lingua::Interset::Tagset, Lingua::Interset::FeatureStructure

AUTHOR

Dan Zeman <zeman@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Univerzita Karlova (Charles University).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.