NAME

Treex::Core::Types - types used in Treex framework

VERSION

version 1.20150902

DESCRIPTION

TYPES

Treex::Type::NonNegativeInt

0, 1, 2, ...

Treex::Type::Layer

one of: P, T, A, N case insensitive

Treex::Type::Selector

Selector - only alphanumeric characters, may be empty

Treex::Type::LangCode

ISO 639-1 code

Treex::Type::ZoneCode

Combination of LangCode and Selector, e.g. "en_src"

Treex::Type::Message

just nonempty string, future constraints may be set

Treex::Type::Id

identifier, prepared for future constraints, now it is any string

METHODS

get_lang_name

Returns language name for given LangCode

is_lang_code

Checks whether given argument is valid LangCode

layers

Returns array of layers available in Treex, now (A, T, P, N)

AUTHOR

Tomáš Kraut <kraut@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE

Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague

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