Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chinawithfrank/ChatBotCourse
/ functions
Functions
403 in github.com/chinawithfrank/ChatBotCourse
⨍
Functions
403
◇
Types & classes
61
↓ 120 callers
Method
append
合并两个相邻的词元 @param l @param lexemeType @return boolean 词元是否成功合并
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:261
↓ 39 callers
Method
append
(char c)
chatbotv1/src/main/java/org/wltea/analyzer/query/IKQueryExpressionParser.java:698
↓ 28 callers
Method
getLength
获取词元的字符长度 @return int
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:171
↓ 25 callers
Method
getBegin
()
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:144
↓ 20 callers
Method
size
返回集合大小 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:164
↓ 19 callers
Method
getCursor
()
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:90
↓ 16 callers
Method
addLexeme
向链表集合添加词元 @param lexeme
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:46
↓ 14 callers
Method
getCurrentCharType
()
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:106
↓ 14 callers
Method
isEmpty
判断集合是否为空 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:172
↓ 11 callers
Method
getBufferOffset
()
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:110
↓ 10 callers
Method
equals
(Object o)
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:80
↓ 10 callers
Method
getLexeme
()
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:235
↓ 10 callers
Method
toString
()
chatbotv1/src/main/java/org/wltea/analyzer/query/IKQueryExpressionParser.java:702
↓ 8 callers
Method
match
匹配词段 @param charArray @return Hit
chatbotv1/src/main/java/org/wltea/analyzer/dic/DictSegment.java:81
↓ 8 callers
Method
pollFirst
取出链表集合的第一个元素 @return Lexeme
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:109
↓ 8 callers
Function
rand_arr
(a, b, *args)
lstm_code/nicodjimenez/lstm.py:10
↓ 7 callers
Method
getLexemeType
获取词元类型 @return int
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:207
↓ 7 callers
Method
predict
(self)
chatbotv3/encoder_decoder_seq2seq.py:304
↓ 7 callers
Method
reset
重置子分析器状态
chatbotv1/src/main/java/org/wltea/analyzer/core/ISegmenter.java:44
↓ 6 callers
Method
compareTo
(Cell o)
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:223
↓ 6 callers
Method
fillSegment
加载填充词典片段 @param charArray
chatbotv1/src/main/java/org/wltea/analyzer/dic/DictSegment.java:169
↓ 6 callers
Method
getEndPosition
获取词元在文本中的结束位置 @return int
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:163
↓ 6 callers
Method
getHead
返回lexeme链的头部 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:180
↓ 6 callers
Method
getPathLength
获取LexemePath的路径长度 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:149
↓ 6 callers
Method
isBufferConsumed
判断当前segmentBuff是否已经用完 当前执针cursor移至segmentBuff末端this.available - 1 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:198
↓ 6 callers
Method
isPrefix
判断是否是词的前缀
chatbotv1/src/main/java/org/wltea/analyzer/dic/Hit.java:71
↓ 5 callers
Method
getBeginPosition
获取词元在文本中的起始位置 @return int
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:151
↓ 5 callers
Method
getLexemeText
获取词元的文本内容 @return String
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:186
↓ 5 callers
Method
getNext
()
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:231
↓ 5 callers
Method
getSingleton
获取词典单子实例 @return Dictionary 单例对象
chatbotv1/src/main/java/org/wltea/analyzer/dic/Dictionary.java:98
↓ 5 callers
Method
group_id_size
获取local_group的数量
tf_classify_demo/sample_data.py:67
↓ 5 callers
Method
isMatch
判断是否完全匹配
chatbotv1/src/main/java/org/wltea/analyzer/dic/Hit.java:58
↓ 5 callers
Method
parse
(self, response)
baidu_search/baidu_search/spiders/baidu_search.py:17
↓ 5 callers
Method
read_data_sets
读取文件,加载数据
tf_classify_demo/sample_data.py:98
↓ 4 callers
Method
addLexemePath
添加分词结果路径 路径起始位置 ---> 路径 映射表 @param path
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:239
↓ 4 callers
Function
bias_variable
(shape)
digital_recognition_cnn.py:23
↓ 4 callers
Function
data_to_token_ids
Tokenize data file and turn into token-ids using given vocabulary file. This function loads data line-by-line from data_path, calls the above sen
chatbotv4/data_utils.py:180
↓ 4 callers
Method
getCurrentChar
()
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:102
↓ 4 callers
Method
getPWeight
词元位置权重 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:172
↓ 4 callers
Method
getSegmentBuff
()
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:98
↓ 4 callers
Method
getXWeight
X权重(词元长度积) @return
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:158
↓ 4 callers
Method
get_batch
Get a random batch of data from the specified bucket, prepare for step. To feed data in step(..) it must be a list of batch-major vectors, while
chatbotv4/seq2seq_model.py:259
↓ 4 callers
Method
load
(self)
chatbotv2/my_seq2seq.py:190
↓ 4 callers
Method
next_batch
获取一批样本数据
tf_classify_demo/sample_data.py:176
↓ 4 callers
Method
sequence_loss
Loss function for the seq2seq RNN. Reshape predicted and true (label) tensors, generate dummy weights, then use seq2seq.sequence_los
seq2seq/tflearn_prj/seq2seq_example.py:118
↓ 4 callers
Method
step
Run a step of the model feeding the given inputs. Args: session: tensorflow session to use. encoder_inputs: list of numpy int vectors
chatbotv4/seq2seq_model.py:199
↓ 4 callers
Method
toBooleanQuery
根据逻辑操作符,生成BooleanQuery @param op @return
chatbotv1/src/main/java/org/wltea/analyzer/query/IKQueryExpressionParser.java:463
↓ 4 callers
Method
toString
()
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:275
↓ 4 callers
Function
weight_variable
(shape)
digital_recognition_cnn.py:17
↓ 3 callers
Method
checkCross
检测词元位置交叉(有歧义的切分) @param lexeme @return
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:124
↓ 3 callers
Method
getOrgLexemes
返回原始分词结果 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:250
↓ 3 callers
Function
get_id_list_from
(sentence)
chatbotv5/demo.py:37
↓ 3 callers
Method
lockBuffer
设置当前segmentBuff为锁定状态 加入占用segmentBuff的子分词器名称,表示占用segmentBuff @param segmenterName
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:172
↓ 3 callers
Method
model
(self, x, y, weights, biases, training=True)
chatbotv3/encoder_decoder_seq2seq.py:176
↓ 3 callers
Method
peekFirst
返回链表头部元素 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:98
↓ 3 callers
Method
peekLast
返回链表尾部元素 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/QuickSortSet.java:130
↓ 3 callers
Method
predict
Make a prediction, using the seq2seq model, for the given input sequence Xin. If model is not provided, create one (or use last creat
seq2seq/tflearn_prj/seq2seq_example.py:310
↓ 3 callers
Function
print_sentence
(list, msg)
chatbotv2/lstm_train.py:115
↓ 3 callers
Function
seq2seq_f
(encoder_inputs, decoder_inputs, do_decode)
seq2seq/hello_sequence.py:35
↓ 3 callers
Function
sigmoid
(x)
lstm_code/nicodjimenez/lstm.py:6
↓ 3 callers
Method
unlockBuffer
移除指定的子分词器名,释放对segmentBuff的占用 @param segmenterName
chatbotv1/src/main/java/org/wltea/analyzer/core/AnalyzeContext.java:180
↓ 3 callers
Function
vector_sqrtlen
(vector)
chatbotv2/my_seq2seq_v2.py:107
↓ 2 callers
Method
_clean
(self)
subtitle/preprocess/langconv.py:204
↓ 2 callers
Method
addCrossLexeme
向LexemePath追加相交的Lexeme @param lexeme @return
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:51
↓ 2 callers
Method
apply_diff
(self, lr = 1)
lstm_code/nicodjimenez/lstm.py:39
↓ 2 callers
Function
basic_tokenizer
Very basic tokenizer: split the sentence into a list of tokens.
chatbotv4/data_utils.py:70
↓ 2 callers
Method
bottom_data_is
(self, x, s_prev = None, h_prev = None)
lstm_code/nicodjimenez/lstm.py:80
↓ 2 callers
Method
bottom_diff
(self, pred, label)
lstm_code/nicodjimenez/test.py:15
↓ 2 callers
Method
canonical_weights_fn
Construct canonical weights filename, based on model and pattern names.
seq2seq/tflearn_prj/seq2seq_example.py:272
↓ 2 callers
Method
clone
(self, pool)
subtitle/preprocess/langconv.py:112
↓ 2 callers
Method
compare
比较操作符优先级 @param e1 @param e2 @return
chatbotv1/src/main/java/org/wltea/analyzer/query/IKQueryExpressionParser.java:661
↓ 2 callers
Function
conv2d
(x, W)
digital_recognition_cnn.py:28
↓ 2 callers
Method
convert
(self, string)
subtitle/preprocess/langconv.py:220
↓ 2 callers
Method
copy
()
chatbotv1/src/main/java/org/wltea/analyzer/core/LexemePath.java:184
↓ 2 callers
Function
create_model
Create translation model and initialize or load parameters in session.
chatbotv4/translate.py:102
↓ 2 callers
Function
create_vocabulary
Create vocabulary file (if it does not exist yet) from data file. Data file is assumed to contain one sentence per line. Each sentence is tokeniz
chatbotv4/data_utils.py:78
↓ 2 callers
Function
decoder
(feed_previous_bool)
chatbotv4/seq2seq_patch.py:112
↓ 2 callers
Method
forwardPath
向前遍历,添加词元,构造一个无歧义词元组合 @param LexemePath path @return
chatbotv1/src/main/java/org/wltea/analyzer/core/IKArbitrator.java:126
↓ 2 callers
Method
generate_output_sequence
For a given input sequence, generate the output sequence. x is a 1D numpy array of integers, with length INPUT_SEQUENCE_LENGTH.
seq2seq/tflearn_prj/seq2seq_example.py:41
↓ 2 callers
Method
generate_trainig_data
(self)
chatbotv2/my_seq2seq_v2.py:149
↓ 2 callers
Method
generate_trainig_data
(self)
chatbotv2/my_seq2seq.py:119
↓ 2 callers
Method
generate_xs
根据文本生成输入向量
tf_classify_demo/sample_data.py:152
↓ 2 callers
Method
getChildrenMap
获取Map容器 线程同步方法
chatbotv1/src/main/java/org/wltea/analyzer/dic/DictSegment.java:297
↓ 2 callers
Method
getElapse
()
chatbotv1/src/main/java/com/shareditor/chatbotv1/Action.java:181
↓ 2 callers
Method
getElapse2
()
chatbotv1/src/main/java/com/shareditor/chatbotv1/Action.java:173
↓ 2 callers
Method
getInstance
返回单例 @return Configuration单例
chatbotv1/src/main/java/org/wltea/analyzer/cfg/DefaultConfig.java:67
↓ 2 callers
Method
getLexemeTypeString
获取词元类型标示字符串 @return String
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:215
↓ 2 callers
Function
get_model
构造模型
chatbotv5/demo.py:116
↓ 2 callers
Function
get_model
构造模型
chatbotv4/demo.py:56
↓ 2 callers
Method
get_result
(self)
subtitle/preprocess/langconv.py:227
↓ 2 callers
Method
get_sample
(self, x_dim, y_dim, index)
seq2seq/tflearn_prj/my_lstm_test.py:24
↓ 2 callers
Function
get_samples
构造样本数据 :return: encoder_inputs: [array([0, 0], dtype=int32), array([0, 0], dtype=int32), array([1, 3], dtype=int32),
chatbotv4/demo.py:27
↓ 2 callers
Method
hashCode
()
chatbotv1/src/main/java/org/wltea/analyzer/core/Lexeme.java:107
↓ 2 callers
Method
identifyCharType
识别字符类型 @param input @return int CharacterUtil定义的字符类型常量
chatbotv1/src/main/java/org/wltea/analyzer/core/CharacterUtil.java:50
↓ 2 callers
Method
init
初始化
chatbotv1/src/main/java/org/wltea/analyzer/core/IKSegmenter.java:83
↓ 2 callers
Function
init_weights
(shape)
seq2seq/tflearn_prj/07_lstm.py:30
↓ 2 callers
Method
isUnmatch
判断是否是不匹配
chatbotv1/src/main/java/org/wltea/analyzer/dic/Hit.java:83
↓ 2 callers
Method
judge
歧义识别 @param lexemeCell 歧义路径链表头 @param fullTextLength 歧义路径文本长度 @param option 候选结果路径 @return
chatbotv1/src/main/java/org/wltea/analyzer/core/IKArbitrator.java:93
↓ 2 callers
Function
load_vectors
加载向量文件
tf_classify_demo/word_vectors_loader.py:28
↓ 2 callers
Method
loss
(self, pred, label)
lstm_code/nicodjimenez/test.py:11
next →
1–100 of 403, ranked by callers