You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the purpose of this repository is to explore text classification methods in NLP with deep learning.
3
+
The purpose of this repository is to explore text classification methods in NLP with deep learning.
4
4
5
5
#### Update:
6
6
7
-
try bert model for multi-label classification, please check session #Models Detail, 3) Bert.
7
+
Releasing Pre-trained Model of <ahref="https://github.com/brightmart/albert_zh">ALBERT_Chinese</a> Training with 30G+ Raw Chinese Corpus, xxlarge, xlarge and more, Target to match State of the Art performance in Chinese, 2019-Oct-7, During the National Day of China!
8
+
9
+
<ahref='https://github.com/brightmart/nlp_chinese_corpus'>Large Amount of Chinese Corpus for NLP Available!</a>
8
10
9
11
Google's BERT achieved new state of art result on more than 10 tasks in NLP using pre-train in language model then
10
12
@@ -52,6 +54,8 @@ question(as query), then ask the model to predict an answer; if you feed story s
52
54
53
55
classification task.
54
56
57
+
To discuss ML/DL/NLP problems and get tech support from each other, you can join QQ group: 836811304
Sample data: <ahref='https://pan.baidu.com/s/1yWZf2eAPxq15-r2hHk2M-Q'>cached file of baidu</a> or <ahref="https://drive.google.com/drive/folders/0AKEuT4gza2AlUk9PVA">Google Drive:</a>send me an email
to help you run this repository, currently we re-generate training/validation/test data and vocabulary/labels, and saved
141
145
@@ -535,7 +539,7 @@ III.Attention Mechanism:
535
539
536
540
1) transfer encoder input list and hidden state of decoder
537
541
538
-
2) calculate similiarity of hidden state with each encoder input, to get possibility distribution for each encoder input.
542
+
2) calculate similarity of hidden state with each encoder input, to get possibility distribution for each encoder input.
539
543
540
544
3) weighted sum of encoder input based on possibility distribution.
541
545
@@ -615,7 +619,7 @@ Model Structure:
615
619
616
620
2) Dynamic memory:
617
621
618
-
a. compute gate by using 'similiarity' of keys,values with input of story.
622
+
a. compute gate by using 'similarity' of keys,values with input of story.
619
623
620
624
b. get candidate hidden state by transform each key,value and input.
621
625
@@ -707,7 +711,7 @@ During the process of doing large scale of multi-label classification, serveral
707
711
It depend the task you are doing. From the task we conducted here, we believe that ensemble models based on models trained from multiple features including word, character for title and description can help to reach very high accuarcy; However, in some cases,as just alphaGo Zero demonstrated, algorithm is more important then data or computational power, in fact alphaGo Zero did not use any humam data.
708
712
709
713
2) Is there a ceiling for any specific model or algorithm?
710
-
The answer is yes. lots of different models were used here, we found many models have similiar performances, even though there are quite different in structure. In some extent, the difference of performance is not so big.
714
+
The answer is yes. lots of different models were used here, we found many models have similar performances, even though there are quite different in structure. In some extent, the difference of performance is not so big.
711
715
712
716
3) Is case study of error useful?
713
717
I think it is quite useful especially when you have done many different things, but reached a limit. For example, by doing case study, you can find labels that models can make correct prediction, and where they make mistakes. And to imporove performance by increasing weights of these wrong predicted labels or finding potential errors from data.
f1_micro,f1_macro=compute_micro_macro(label_dict_confuse_matrix) #label_dict_accusation is a dict, key is: accusation,value is: (TP,FP,FN). where TP is number of True Positive
importword2vec# we put import here so that many people who do not use word2vec do not need to install this package. you can move import to the beginning of this file.
0 commit comments