Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/lac
/ functions
Functions
179 in github.com/baidu/lac
⨍
Functions
179
◇
Types & classes
44
Method
Node
c++/include/ahocorasick.h:29
Function
PrecisionTypeLength
Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h:112
Method
Type
Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h:131
Method
__init__
(self, args, dev_count=10)
python/LAC/reader.py:189
Method
__init__
(self)
python/LAC/custom.py:39
Method
__init__
(self, model_path=None, mode='lac', use_cuda=False)
python/LAC/lac.py:55
Method
__init__
load config file and init args
python/LAC/utils.py:57
Method
__init__
(self, model_path, mode, use_cuda)
python/LAC/models.py:232
Method
__init__
(self, model_path, mode, use_cuda)
python/LAC/models.py:250
Method
__init__
(self, model_path, mode, use_cuda)
python/LAC/models.py:307
Method
__init__
使用单个dict存储tried
python/LAC/prefix_tree.py:25
Method
__init__
(self, dict_path)
python/LAC/segment.py:48
Method
__init__
初始化空节点.
python/LAC/ahocorasick.py:36
Method
__init__
初始化Ahocorasick的根节点__root
python/LAC/ahocorasick.py:50
Function
_existed_params
(var)
python/LAC/utils.py:162
Method
addition_isCorrect
()
Android/testlac/app/src/test/java/com/example/testlac/ExampleUnitTest.java:13
Function
check_cuda
check environment for cuda's using
python/LAC/utils.py:39
Method
customization_term
c++/include/lac_custom.h:29
Function
do_train
执行训练过程 Args: args: DefaultArgs对象,在utils.py中定义, 存储模型训练的所有参数, Returns: 训练产出的program及模型输出变量
python/LAC/nets.py:276
Function
existed_persitables
If existed presitabels
python/LAC/utils.py:141
Method
finalize
()
java/com/baidu/nlp/LAC.java:18
Function
fun_add_word
()
python/LAC/tests/lac_test.py:21
Function
fun_seg
()
python/LAC/tests/lac_test.py:7
Method
get_num_examples
num of line of file
python/LAC/reader.py:82
Function
init_checkpoint
Init CheckPoint
python/LAC/utils.py:136
Function
init_pretraining_params
load params of pretrained model, NOT including moment, learning_rate
python/LAC/utils.py:155
Function
is_valid
Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h:203
Function
iteritems
(d)
python/LAC/_compat.py:37
Function
iterkeys
(d)
python/LAC/_compat.py:33
Function
itervalues
(d)
python/LAC/_compat.py:35
Method
load_customization
装载用户词典 Args: texts: 用户词典路径 sep: 表示词典中,短语片段的分隔符,默认为空格' '或制表符'\t'
python/LAC/lac.py:94
Method
load_dict
从用户词典中进行装载 */
c++/src/lac_custom.cpp:19
Function
main
主程序入口
python/LAC/cmdline.py:40
Function
main
c++/lac_demo.cpp:21
Function
main
c++/lac_multi.cpp:61
Method
main
(String[] args)
java/LacMulti.java:16
Method
main
(String[] args)
java/LacDemo.java:15
Function
model_file
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:165
Function
model_from_memory
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:167
Function
multi_stream
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:179
Method
num_labels
num_labels
python/LAC/reader.py:78
Method
onClick
(View v)
Android/testlac/app/src/main/java/com/example/testlac/MainActivity.java:52
Method
onCreate
(Bundle savedInstanceState)
Android/testlac/app/src/main/java/com/example/testlac/MainActivity.java:38
Method
onDestroy
()
Android/testlac/app/src/main/java/com/example/testlac/MainActivity.java:85
Method
onRequestPermissionsResult
(int requestCode, @NonNull String[] permissions, @NonNull int[] gra
Android/testlac/app/src/main/java/com/example/testlac/MainActivity.java:91
Function
operator!=
Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h:215
Function
operator==
Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h:210
Function
param_file
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:166
Method
parse_result
将SEG模型输出的Tensor转为明文
python/LAC/models.py:272
Method
parse_tag
convert segment data to lac data format
python/LAC/reader.py:192
Method
parse_targets
对输出的标签进行解码转换为模型输出格式 */
Android/testlac/app/src/main/cpp/lac.cpp:107
Method
parse_targets
对输出的标签进行解码转换为模型输出格式 */
c++/src/lac.cpp:138
Function
power_mode
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:124
Function
print_arguments
none
python/LAC/utils.py:98
Function
rank
()
python/LAC/tests/lac_test.py:33
Method
run
(self, texts)
python/LAC/models.py:238
Method
run
(self, texts)
python/LAC/models.py:254
Method
run
(self, texts)
python/LAC/models.py:318
Method
run
()
java/LacMulti.java:52
Method
search_all
多模匹配的完全匹配. 对content的文本进行多模匹配,返回所有匹配结果 Args: content: string类型, 用于多模匹配的字符串 Returns: list类型, 所有匹配单词列表,每个
python/LAC/prefix_tree.py:61
Function
set_model_buffer
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:155
Function
set_model_dir
set Model_dir
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:120
Function
set_model_file
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:153
Function
set_multi_stream
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:178
Function
set_param_file
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:154
Function
set_x86_math_library_num_threads
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:170
Method
texts2tensor
文本输入转为Paddle输入的Tensor
python/LAC/models.py:259
Function
thread_worker
线程函数 */
c++/lac_multi.cpp:30
Function
threads
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:127
Function
to_lodtensor
Convert data in list into lodtensor.
python/LAC/utils.py:120
Function
to_str
convert to str for print
python/LAC/utils.py:106
Method
train
执行模型增量训练 Args: model_save_dir: 训练结束后模型保存的路径 train_data: 训练数据路径 test_data: 测试数据路径,若为None则不进行测试
python/LAC/models.py:177
Method
train
(self, model_save_dir, train_data, test_data, iter_num, thread_num)
python/LAC/models.py:376
Method
useAppContext
()
Android/testlac/app/src/androidTest/java/com/example/testlac/ExampleInstrumentedTest.java:20
Method
vocab_size
vocabuary size
python/LAC/reader.py:73
Method
wrapper
the wrapper of data generator
python/LAC/reader.py:145
Function
x86_math_library_num_threads
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:173
Method
~AhoCorasick
c++/src/ahocorasick.cpp:41
Function
~PaddlePredictor
Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h:104
← previous
101–179 of 179, ranked by callers