Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKU-TANGENT/nlp-tutorial
/ functions
Functions
17 in github.com/PKU-TANGENT/nlp-tutorial
⨍
Functions
17
◇
Types & classes
3
↓ 2 callers
Method
add
(self, sent, pred, gold)
ChineseNER/utils.py:40
↓ 2 callers
Method
get
(self)
ChineseNER/utils.py:66
↓ 2 callers
Method
get_entity
(self, sent, tag)
ChineseNER/utils.py:47
↓ 1 callers
Function
build_vocab
(config)
ChineseNER/preprocess_data.py:4
↓ 1 callers
Function
evaluate
(args, model, val_features)
ChineseNER/train.py:48
↓ 1 callers
Function
main
()
ChineseNER/train.py:106
↓ 1 callers
Method
preprocess
(self)
ChineseNER/preprocess_data.py:41
↓ 1 callers
Function
test
(args, model, test_features)
ChineseNER/train.py:74
↓ 1 callers
Function
train
(args, model, train_features, val_features)
ChineseNER/train.py:12
Method
__getitem__
(self, index)
ChineseNER/preprocess_data.py:65
Method
__init__
(self, config)
ChineseNER/BiLSTM_crf.py:9
Method
__init__
(self, id2word, id2tag)
ChineseNER/utils.py:33
Method
__init__
(self, word2id, tag2id, data_path)
ChineseNER/preprocess_data.py:26
Method
__len__
(self)
ChineseNER/preprocess_data.py:61
Function
collate_fn
(batch)
ChineseNER/utils.py:15
Method
forward
(self, sent, labels, lengths, mask)
ChineseNER/BiLSTM_crf.py:30
Function
set_seed
(seed)
ChineseNER/utils.py:6