NAME

DiaColloDB::Document::DDCTabs - diachronic collocation db, source document, DDC tab-dump

SYNOPSIS

##========================================================================
## PRELIMINARIES

use DiaColloDB::Document::DDCTabs;

##========================================================================
## Constructors etc.

$doc = CLASS_OR_OBJECT->new(%args);

##========================================================================
## API: I/O: parse

$bool = $doc->fromFile($filename_or_fh, %opts);

DESCRIPTION

Globals & Constants

Variable: @ISA

DiaColloDB::Document::DDCTabs inherits from DiaColloDB::Document and supports the DiaColloDB::Document API.

Constructors etc.

new
$doc = CLASS_OR_OBJECT->new(%args);

%args, object structure:

##-- parsing options
eosre => $re,       ##-- EOS regex (empty or undef for file-breaks only; default='^$')
utf8  => $bool,     ##-- enable utf8 parsing? (default=1)
##
##-- document data
date   =>$date,     ##-- year
wf     =>$iw,       ##-- index-field for $word attribute (default=0)
pf     =>$ip,       ##-- index-field for $pos attribute (default=1)
lf     =>$il,       ##-- index-field for $lemma attribute (default=2)
tokens =>\@tokens,  ##-- tokens, including undef for EOS
meta   =>\%meta,    ##-- document metadata (e.g. author, title, collection, ...)

Each token in @tokens is a HASH-ref {w=>$word,p=>$pos,l=>$lemma,...}, or undef for EOS.

API: I/O: parse

fromFile
$bool = $doc->fromFile($filename_or_fh, %opts);

parse tokens from $filename_or_fh. %opts: clobbers %$doc

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2015-2016 by Bryan Jurish

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.

SEE ALSO

dcdb-create.per(1), dcdb-query.perl(1), dcdb-info.perl(1), dcdb-export.perl(1), dcdb-dump.perl(1), DiaColloDB(3pm), perl(1), ...