lexicon.h
来自「本系统实现了分词和倒排索引」· C头文件 代码 · 共 23 行
H
23 行
#ifndef _LEXICON_H_
#define _LEXICON_H_
#define MAX_WORD_LEN 20 //每个词最多10个汉字
#define HEAD_LEN 108783 //申请空间时的最大词条数
#define LEXICON_LEN 108783 //词典中现有词条数108783
//define word item
typedef struct word_item
{
int word_id;
char chinese_str[MAX_WORD_LEN];
int freq;
}word_item;
//define lexicon
typedef struct Lexicon
{
char license_info[256];
int item_num_of_lexicon_head;
int item_num_of_lexicon_body;
word_item lexicon_head[HEAD_LEN];
}lexicon;
#endif //_LEXICON_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?