SYMBOL INDEX (183 symbols across 35 files) FILE: Android/testlac/app/src/androidTest/java/com/example/testlac/ExampleInstrumentedTest.java class ExampleInstrumentedTest (line 18) | @RunWith(AndroidJUnit4.class) method useAppContext (line 20) | @Test FILE: Android/testlac/app/src/main/cpp/lac.h type CODE_TYPE (line 24) | enum CODE_TYPE type OutputItem (line 31) | struct OutputItem function class (line 41) | class LAC FILE: Android/testlac/app/src/main/cpp/lac_util.cpp function RVAL (line 18) | RVAL split_tokens(const std::string &line, const std::string &pattern, function RVAL (line 49) | RVAL load_word2id_dict(const std::string &filepath, function RVAL (line 77) | RVAL load_q2b_dict(const std::string &filepath, function RVAL (line 103) | RVAL load_id2label_dict(const std::string &filepath, function get_next_gb18030 (line 131) | int get_next_gb18030(const char *str) function get_next_utf8 (line 154) | int get_next_utf8(const char *str) function get_next_word (line 180) | int get_next_word(const char *str, CODE_TYPE codetype) function RVAL (line 200) | RVAL split_words(const char *input, int len, CODE_TYPE codetype, std::ve... function RVAL (line 217) | RVAL split_words(const std::string &input, CODE_TYPE codetype, std::vect... FILE: Android/testlac/app/src/main/cpp/lac_util.h type RVAL (line 25) | enum RVAL FILE: Android/testlac/app/src/main/cpp/native_lib.cpp function JNIEXPORT (line 15) | JNIEXPORT void JNICALL function JNIEXPORT (line 32) | JNIEXPORT void JNICALL function JNIEXPORT (line 37) | JNIEXPORT jstring JNICALL function JNIEXPORT (line 45) | JNIEXPORT jstring JNICALL FILE: Android/testlac/app/src/main/cpp/paddle/include/paddle_api.h type class (line 33) | enum class type LITE_API (line 35) | struct LITE_API function virtual (line 83) | virtual std::string GetVersion() const = 0; function threads_ (line 114) | int threads_{1} function PowerMode (line 115) | PowerMode mode_{LITE_POWER_NO_BIND}; function mlu_core_number_ (line 144) | int mlu_core_number_{1} function DataLayoutType (line 145) | DataLayoutType mlu_input_layout_{DATALAYOUT(kNCHW)} function mlu_use_first_conv_ (line 146) | bool mlu_use_first_conv_{false}; FILE: Android/testlac/app/src/main/cpp/paddle/include/paddle_image_preprocess.h function namespace (line 23) | namespace paddle { FILE: Android/testlac/app/src/main/cpp/paddle/include/paddle_place.h type class (line 45) | enum class function PrecisionType (line 62) | enum class PrecisionType : int { FILE: Android/testlac/app/src/main/java/com/example/testlac/MainActivity.java class MainActivity (line 28) | public class MainActivity extends AppCompatActivity { method onCreate (line 38) | @Override method onDestroy (line 85) | @Override method onRequestPermissionsResult (line 91) | @Override method copyFromAssetsToCache (line 110) | public static String copyFromAssetsToCache(String modelPath, Context c... method requestAllPermissions (line 142) | private void requestAllPermissions() { method checkAllPermissions (line 147) | private boolean checkAllPermissions() { method initLac (line 159) | public native void initLac(String model_path); method releaseLac (line 161) | public native void releaseLac(); method stringFromJNI (line 163) | public native String stringFromJNI(); method stringCutFromJNI (line 165) | public native String stringCutFromJNI(String source_text); FILE: Android/testlac/app/src/test/java/com/example/testlac/ExampleUnitTest.java class ExampleUnitTest (line 12) | public class ExampleUnitTest { method addition_isCorrect (line 13) | @Test FILE: c++/include/ahocorasick.h type Node (line 23) | struct Node{ FILE: c++/include/lac.h type CODE_TYPE (line 25) | enum CODE_TYPE type OutputItem (line 32) | struct OutputItem function class (line 45) | class LAC FILE: c++/include/lac_custom.h type customization_term (line 26) | struct customization_term{ FILE: c++/include/lac_util.h type RVAL (line 25) | enum RVAL FILE: c++/lac_demo.cpp function main (line 21) | int main(int argc, char* argv[]){ FILE: c++/lac_multi.cpp function thread_worker (line 30) | void thread_worker(LAC& g_model) { function main (line 61) | int main(int argc, char* argv[]) { FILE: c++/src/ahocorasick.cpp function Node (line 20) | Node* Node::get_child(const std::string &str){ function Node (line 29) | Node* Node::add_child(const std::string &str){ FILE: c++/src/lac_custom.cpp function RVAL (line 19) | RVAL Customization::load_dict(const std::string &customization_dic_path){ function RVAL (line 82) | RVAL Customization::parse_customization(const std::vector &... FILE: c++/src/lac_util.cpp function RVAL (line 18) | RVAL split_tokens(const std::string &line, const std::string &pattern, function RVAL (line 49) | RVAL load_word2id_dict(const std::string &filepath, function RVAL (line 77) | RVAL load_q2b_dict(const std::string &filepath, function RVAL (line 103) | RVAL load_id2label_dict(const std::string &filepath, function get_next_gb18030 (line 131) | int get_next_gb18030(const char *str) function get_next_utf8 (line 154) | int get_next_utf8(const char *str) function get_next_word (line 180) | int get_next_word(const char *str, CODE_TYPE codetype) function RVAL (line 200) | RVAL split_words(const char *input, int len, CODE_TYPE codetype, std::ve... function RVAL (line 217) | RVAL split_words(const std::string &input, CODE_TYPE codetype, std::vect... FILE: java/LacDemo.java class LacDemo (line 7) | public class LacDemo { method main (line 15) | public static void main(String[] args) { FILE: java/LacMulti.java class LacMulti (line 9) | public class LacMulti { method main (line 16) | public static void main(String[] args) { class LacRunnable (line 40) | class LacRunnable implements Runnable{ method LacRunnable (line 43) | public LacRunnable(LAC lac){ method run (line 52) | public void run() { FILE: java/com/baidu/nlp/LAC.java class LAC (line 5) | public class LAC { method LAC (line 10) | public LAC(String model_dir) { method LAC (line 14) | public LAC(LAC model){ method finalize (line 18) | @Override method close (line 24) | public void close() { method init (line 32) | private native void init(String model_path); method copy (line 35) | private native void copy(long self_ptr); method release (line 38) | private static native void release(long self_ptr); method loadCustomization (line 41) | public native int loadCustomization(String dict_path); method run (line 44) | public native int run(String sentence, ArrayList words, ArrayL... FILE: java/cpp/lac_jni.cpp function jfieldID (line 13) | static jfieldID _get_self_id(JNIEnv *env, jobject thisObj) function _set_self (line 26) | static void _set_self(JNIEnv *env, jobject thisObj, LAC *self) function LAC (line 33) | static LAC *_get_self(JNIEnv *env, jobject thisObj) function JNIEXPORT (line 45) | JNIEXPORT void JNICALL Java_com_baidu_nlp_LAC_init(JNIEnv *env, jobject ... function JNIEXPORT (line 57) | JNIEXPORT void JNICALL Java_com_baidu_nlp_LAC_copy(JNIEnv *env, jobject ... function JNIEXPORT (line 70) | JNIEXPORT void JNICALL Java_com_baidu_nlp_LAC_release(JNIEnv *env, jobje... function JNIEXPORT (line 82) | JNIEXPORT jint JNICALL Java_com_baidu_nlp_LAC_loadCustomization function JNIEXPORT (line 94) | JNIEXPORT jint JNICALL Java_com_baidu_nlp_LAC_run FILE: python/LAC/_compat.py function iterkeys (line 33) | def iterkeys(d): return d.iterkeys() function itervalues (line 35) | def itervalues(d): return d.itervalues() function iteritems (line 37) | def iteritems(d): return d.iteritems() function iterkeys (line 44) | def iterkeys(d): return iter(d.keys()) function itervalues (line 46) | def itervalues(d): return iter(d.values()) function iteritems (line 48) | def iteritems(d): return iter(d.items()) function strdecode (line 51) | def strdecode(sentence): FILE: python/LAC/ahocorasick.py class Node (line 26) | class Node(object): method __init__ (line 36) | def __init__(self): class Ahocorasick (line 43) | class Ahocorasick(object): method __init__ (line 50) | def __init__(self): method add_word (line 54) | def add_word(self, word): method make (line 61) | def make(self): method search (line 90) | def search(self, content): method search_all (line 121) | def search_all(self, content): FILE: python/LAC/cmdline.py function main (line 40) | def main(args=args): FILE: python/LAC/custom.py class Customization (line 34) | class Customization(object): method __init__ (line 39) | def __init__(self): method add_word (line 44) | def add_word(self, words, sep=None): method load_customization (line 76) | def load_customization(self, filename, sep=None): method parse_customization (line 109) | def parse_customization(self, query, lac_tags): FILE: python/LAC/lac.py function _get_abs_path (line 40) | def _get_abs_path(path): return os.path.normpath( class LAC (line 53) | class LAC(object): method __init__ (line 55) | def __init__(self, model_path=None, mode='lac', use_cuda=False): method run (line 71) | def run(self, texts): method train (line 83) | def train(self, model_save_dir, train_data, test_data=None, iter_num=1... method load_customization (line 94) | def load_customization(self, customization_file, sep=None): method add_word (line 104) | def add_word(self, word, sep=None): FILE: python/LAC/models.py class Model (line 37) | class Model(object): method __init__ (line 39) | def __init__(self, model_path, mode, use_cuda): method run (line 71) | def run(self, texts): method to_tensor (line 110) | def to_tensor(self, data, lod, dtype="int64"): method texts2tensor (line 118) | def texts2tensor(self, texts): method parse_result (line 140) | def parse_result(self, lines, crf_decode, dataset, words_length): method train (line 177) | def train(self, model_save_dir, train_data, test_data, iter_num, threa... method load_model (line 212) | def load_model(self, model_dir): class LacModel (line 230) | class LacModel(Model): method __init__ (line 232) | def __init__(self, model_path, mode, use_cuda): method run (line 238) | def run(self, texts): method call_run (line 243) | def call_run(self, texts): class SegModel (line 248) | class SegModel(Model): method __init__ (line 250) | def __init__(self, model_path, mode, use_cuda): method run (line 254) | def run(self, texts): method texts2tensor (line 259) | def texts2tensor(self, texts): method parse_result (line 272) | def parse_result(self, lines, crf_decode, dataset, words_length): class RankModel (line 305) | class RankModel(Model): method __init__ (line 307) | def __init__(self, model_path, mode, use_cuda): method run (line 318) | def run(self, texts): method parse_result (line 347) | def parse_result(self, tags_for_rank, result, words_length): method train (line 376) | def train(self, model_save_dir, train_data, test_data, iter_num, threa... FILE: python/LAC/nets.py function lex_net (line 34) | def lex_net(word, args, vocab_size, num_labels, target=None): function create_model (line 153) | def create_model(args, vocab_size, num_labels, mode='train'): function create_pyreader (line 197) | def create_pyreader(args, file_name, feed_list, place, function test_process (line 246) | def test_process(exe, program, reader, test_ret): function do_train (line 276) | def do_train(args, dataset, segment_tool): FILE: python/LAC/prefix_tree.py class TriedTree (line 19) | class TriedTree(object): method __init__ (line 25) | def __init__(self): method add_word (line 29) | def add_word(self, word): method make (line 36) | def make(self): method search (line 40) | def search(self, content): method search_all (line 61) | def search_all(self, content): FILE: python/LAC/reader.py function load_kv_dict (line 29) | def load_kv_dict(dict_path, class Dataset (line 53) | class Dataset(object): method __init__ (line 56) | def __init__(self, args, dev_count=10): method vocab_size (line 73) | def vocab_size(self): method num_labels (line 78) | def num_labels(self): method get_num_examples (line 82) | def get_num_examples(self, filename): method parse_tag (line 86) | def parse_tag(self, line): method word_to_ids (line 103) | def word_to_ids(self, words): method text_to_ids (line 113) | def text_to_ids(self, text): method label_to_ids (line 130) | def label_to_ids(self, labels): method file_reader (line 140) | def file_reader(self, filename, mode="train"): class SegDataset (line 187) | class SegDataset(Dataset): method __init__ (line 189) | def __init__(self, args, dev_count=10): method parse_tag (line 192) | def parse_tag(self, line): FILE: python/LAC/segment.py function load_seg_dict (line 32) | def load_seg_dict(dict_path): class Segment (line 47) | class Segment(object): method __init__ (line 48) | def __init__(self, dict_path): method fast_get_DAG (line 65) | def fast_get_DAG(self, text): method fast_cut (line 80) | def fast_cut(self, text): FILE: python/LAC/tests/lac_test.py function fun_seg (line 7) | def fun_seg(): function fun_add_word (line 21) | def fun_add_word(): function run (line 27) | def run(): function rank (line 33) | def rank(): FILE: python/LAC/utils.py function abs_path (line 35) | def abs_path(path): return os.path.join( function check_cuda (line 39) | def check_cuda(use_cuda): class DefaultArgs (line 54) | class DefaultArgs(object): method __init__ (line 57) | def __init__(self, model_path): function print_arguments (line 98) | def print_arguments(args): function to_str (line 106) | def to_str(string, encoding="utf-8"): function to_lodtensor (line 120) | def to_lodtensor(data, place): function init_checkpoint (line 136) | def init_checkpoint(exe, init_checkpoint_path, main_program): function init_pretraining_params (line 155) | def init_pretraining_params(exe,