CWB
Functions
makecomps.h File Reference
#include "globals.h"
#include "attributes.h"

Functions

int creat_sort_lexicon (Component *lexsrt)
 creates a sorted index from the (already existing) lexicon index of the Attribute. More...
 
int creat_freqs (Component *lex)
 Creates the CompCorpusFreqs component (list of type frequencies for a given p-attribute) More...
 
int creat_rev_corpus (Component *component)
 Creates a reversed corpus component. More...
 
int creat_rev_corpus_idx (Component *component)
 creates index for reversed corpus More...
 

Function Documentation

int creat_freqs ( Component freqs)
int creat_rev_corpus ( Component revcorp)

Creates a reversed corpus component.

This function should only be invoked by the makeall tool (via create_component()), which must make sure that the lexicon and (possibly) compressed token stream have been created by now, so CL access to the token stream works.

See also
create_component
makeall_do_attribute
Returns
number of passes made through the corpus.

References TComponent::attribute, cl_cpos2id(), cl_debug, cl_free, cl_id2freq(), cl_malloc(), cl_max_cpos(), cl_max_id(), cl_memory_limit, CompCorpusFreqs, TComponent::corpus, TMblob::data, TComponent::data, ensure_component(), NwriteInt(), NwriteInts(), and TComponent::path.

Referenced by create_component().

int creat_rev_corpus_idx ( Component revcidx)
int creat_sort_lexicon ( Component lexsrt)