CWB
|
#include "../cl/globals.h"
#include <math.h>
#include "../cl/attributes.h"
#include "../cl/cdaccess.h"
#include "../cl/macros.h"
#include "../cl/binsert.h"
#include "options.h"
#include "html-print.h"
#include "ascii-print.h"
#include "sgml-print.h"
#include "latex-print.h"
#include "corpmanag.h"
#include "groups.h"
#include "output.h"
Macros | |
#define | GROUP_DEBUG 0 |
#define | ANY_ID -2 |
#define | GROUP_REALLOC 1024 |
Functions | |
static int | compare_cells (const void *p1, const void *p2) |
int | get_group_id (Group *group, int i, int target) |
char * | Group_id2str (Group *group, int id, int target) |
Group * | ComputeGroupInternally (Group *group) |
Group * | ComputeGroupExternally (Group *group) |
Group * | compute_grouping (CorpusList *cl, FieldType source_field, int source_offset, char *source_attr_name, FieldType target_field, int target_offset, char *target_attr_name, int cutoff_freq, int is_grouped) |
void | free_group (Group **group) |
void | print_group (Group *group, int expand, struct Redir *rd) |
Variables | |
Group * | compare_cells_group = NULL |
#define ANY_ID -2 |
Referenced by get_group_id(), and Group_id2str().
#define GROUP_DEBUG 0 |
Referenced by ComputeGroupExternally().
#define GROUP_REALLOC 1024 |
Referenced by ComputeGroupExternally().
|
static |
References cl_strcmp(), _id_cnt_mapping::freq, Group_id2str(), _grouptable::is_grouped, _id_cnt_mapping::s, _id_cnt_mapping::s_freq, _id_cnt_mapping::t, w1, and w2.
Referenced by ComputeGroupInternally().
Group* compute_grouping | ( | CorpusList * | cl, |
FieldType | source_field, | ||
int | source_offset, | ||
char * | source_attr_name, | ||
FieldType | target_field, | ||
int | target_offset, | ||
char * | target_attr_name, | ||
int | cutoff_freq, | ||
int | is_grouped | ||
) |
References ATT_POS, ATT_STRUC, cl_malloc(), cl_struc2str(), cl_struc_values(), ComputeGroupExternally(), ComputeGroupInternally(), cl::corpus, _grouptable::count_cells, cqpmessage(), _grouptable::cutoff_frequency, Error, find_attribute, insecure, _grouptable::is_grouped, KeywordField, cl::keywords, MatchEndField, MatchField, _grouptable::my_corpus, cl::name, NoField, _grouptable::nr_cells, cl::range, cl::size, _grouptable::source_attribute, _grouptable::source_base, _grouptable::source_field, _grouptable::source_is_struc, _grouptable::source_offset, _grouptable::target_attribute, _grouptable::target_base, _grouptable::target_field, _grouptable::target_is_struc, _grouptable::target_offset, TargetField, cl::targets, UseExternalGrouping, and Warning.
Referenced by do_cqi_cqp_fdist_1(), do_cqi_cqp_fdist_2(), do_group(), and do_group2().
References cl_malloc(), CL_MAX_LINE_LENGTH, cl_realloc(), _grouptable::count_cells, cqpmessage(), _grouptable::cutoff_frequency, ExternalGroupingCommand, _id_cnt_mapping::freq, get_group_id(), GROUP_DEBUG, GROUP_REALLOC, _grouptable::my_corpus, _grouptable::nr_cells, open_temporary_file(), _id_cnt_mapping::s, _id_cnt_mapping::s_freq, cl::size, _id_cnt_mapping::t, TEMP_FILENAME_BUFSIZE, and Warning.
Referenced by compute_grouping().
References cl_delete_ngram_hash(), cl_malloc(), cl_new_ngram_hash(), cl_ngram_hash_add(), cl_ngram_hash_freq(), cl_ngram_hash_iterator_next(), cl_ngram_hash_iterator_reset(), cl_ngram_hash_size(), cl_realloc(), compare_cells(), _grouptable::count_cells, cqp, cqpmessage(), _grouptable::cutoff_frequency, EvaluationIsRunning, free_group(), _id_cnt_mapping::freq, _cl_ngram_hash_entry::freq, get_group_id(), install_signal_handler(), _grouptable::my_corpus, _cl_ngram_hash_entry::ngram, _grouptable::nr_cells, progress_bar, progress_bar_clear_line(), progress_bar_message(), progress_bar_percentage(), _id_cnt_mapping::s, _id_cnt_mapping::s_freq, cl::size, _id_cnt_mapping::t, Warning, and which_app.
Referenced by compute_grouping().
void free_group | ( | Group ** | group | ) |
References cl_free.
Referenced by ComputeGroupInternally(), do_cqi_cqp_fdist_1(), do_cqi_cqp_fdist_2(), do_group(), and do_group2().
int get_group_id | ( | Group * | group, |
int | i, | ||
int | target | ||
) |
References ANY_ID, cl_cpos2id(), cl_cpos2struc2str(), _Range::end, KeywordField, cl::keywords, MatchEndField, MatchField, _grouptable::my_corpus, NoField, cl::range, _grouptable::source_attribute, _grouptable::source_base, _grouptable::source_field, _grouptable::source_is_struc, _grouptable::source_offset, _Range::start, _grouptable::target_attribute, _grouptable::target_base, _grouptable::target_field, _grouptable::target_is_struc, _grouptable::target_offset, TargetField, and cl::targets.
Referenced by ComputeGroupExternally(), and ComputeGroupInternally().
char* Group_id2str | ( | Group * | group, |
int | id, | ||
int | target | ||
) |
References ANY_ID, cl_id2str(), _grouptable::source_attribute, _grouptable::source_base, _grouptable::source_is_struc, _grouptable::target_attribute, _grouptable::target_base, and _grouptable::target_is_struc.
Referenced by ascii_print_group(), compare_cells(), html_print_group(), latex_print_group(), and sgml_print_group().
References ascii_print_group(), TCorpus::charset, close_stream(), cl::corpus, cqpmessage(), Error, GlobalPrintMode, html_print_group(), latex_print_group(), _grouptable::my_corpus, open_stream(), PrintASCII, PrintHTML, PrintLATEX, PrintSGML, sgml_print_group(), and Redir::stream.
Referenced by do_group(), and do_group2().
Group* compare_cells_group = NULL |