CWB
Functions

makecomps.h File Reference

#include "globals.h"
#include "attributes.h"

Functions


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

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)