Spaces:
Running
Running
update
Browse files- app.py +0 -7
- checkpoints-v2.0.json +1 -89
- checkpoints/RNA/RNAC/{lstm_degrad_acc_85.26_f1_84.62.zip β lstm_degrad_acc_83.4_f1_83.21.zip} +2 -2
- checkpoints/RNA/RNAC/{bert_mlp_degrad_acc_87.44_f1_86.99.zip β lstm_degrad_acc_83.83_f1_83.69.zip} +2 -2
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.07_f1_83.92.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.15_f1_84.02.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.16_f1_84.03.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.49_f1_84.37.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.61_f1_84.46.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.64_f1_84.54.zip +3 -0
- checkpoints/RNA/RNAC/lstm_degrad_acc_84.98_f1_84.89.zip +3 -0
- emergency_notification.txt +0 -4
app.py
CHANGED
@@ -11,9 +11,6 @@ download_all_available_datasets()
|
|
11 |
|
12 |
dataset_items = {dataset.name: dataset for dataset in ATEPC.ATEPCDatasetList()}
|
13 |
|
14 |
-
URL = 'https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Fyangheng%2Fpyabsa_inference&label=Inference%20Count&labelColor=%2337d67a&countColor=%23f47373&style=flat&labelStyle=none'
|
15 |
-
|
16 |
-
|
17 |
def get_example(dataset):
|
18 |
task = TaskCodeOption.Aspect_Polarity_Classification
|
19 |
dataset_file = detect_infer_dataset(dataset_items[dataset], task)
|
@@ -51,7 +48,6 @@ def perform_inference(text, dataset):
|
|
51 |
'confidence': [round(x, 4) for x in result['confidence']],
|
52 |
'position': result['position']
|
53 |
})
|
54 |
-
requests.get(URL)
|
55 |
return result, '{}'.format(text)
|
56 |
|
57 |
|
@@ -86,7 +82,4 @@ with demo:
|
|
86 |
inputs=[input_sentence, dataset_ids],
|
87 |
outputs=[output_df, output_text])
|
88 |
|
89 |
-
gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=https://huggingface.co/spaces/yangheng/Multilingual-Aspect-Based-Sentiment-Analysis)")
|
90 |
-
gr.Markdown("![Visitors]({})".format(URL))
|
91 |
-
|
92 |
demo.launch(share=True)
|
|
|
11 |
|
12 |
dataset_items = {dataset.name: dataset for dataset in ATEPC.ATEPCDatasetList()}
|
13 |
|
|
|
|
|
|
|
14 |
def get_example(dataset):
|
15 |
task = TaskCodeOption.Aspect_Polarity_Classification
|
16 |
dataset_file = detect_infer_dataset(dataset_items[dataset], task)
|
|
|
48 |
'confidence': [round(x, 4) for x in result['confidence']],
|
49 |
'position': result['position']
|
50 |
})
|
|
|
51 |
return result, '{}'.format(text)
|
52 |
|
53 |
|
|
|
82 |
inputs=[input_sentence, dataset_ids],
|
83 |
outputs=[output_df, output_text])
|
84 |
|
|
|
|
|
|
|
85 |
demo.launch(share=True)
|
checkpoints-v2.0.json
CHANGED
@@ -1,89 +1 @@
|
|
1 |
-
{
|
2 |
-
"2.0.0.dev0+": {
|
3 |
-
"APC": {
|
4 |
-
"multilingual": {
|
5 |
-
"id": "",
|
6 |
-
"Training Model": "FAST-LSA-T-V2-Deberta",
|
7 |
-
"Training Dataset": "APCDatasetList.Multilingual",
|
8 |
-
"Language": "Multilingual",
|
9 |
-
"Description": "Trained on RTX3090",
|
10 |
-
"Available Version": "1.10.5+",
|
11 |
-
"Checkpoint File": "fast_lcf_bert_Multilingual_acc_82.66_f1_82.06.zip",
|
12 |
-
"Author": "H, Yang ([email protected])"
|
13 |
-
},
|
14 |
-
"english": {
|
15 |
-
"id": "",
|
16 |
-
"Training Model": "FAST-LSA-T-V2-Deberta",
|
17 |
-
"Training Dataset": "APCDatasetList.English",
|
18 |
-
"Language": "English",
|
19 |
-
"Description": "Trained on RTX3090",
|
20 |
-
"Available Version": "1.10.5+",
|
21 |
-
"Checkpoint File": "fast_lsa_t_v2_English_acc_82.21_f1_81.81.zip",
|
22 |
-
"Author": "H, Yang ([email protected])"
|
23 |
-
},
|
24 |
-
"chinese": {
|
25 |
-
"id": "",
|
26 |
-
"Training Model": "FAST-LSA-T-V2-Deberta",
|
27 |
-
"Training Dataset": "APCDatasetList.Chinese",
|
28 |
-
"Language": "Chinese",
|
29 |
-
"Description": "Trained on RTX3090",
|
30 |
-
"Available Version": "1.10.5+",
|
31 |
-
"Checkpoint File": "fast_lsa_t_v2_Chinese_acc_96.0_f1_95.1.zip",
|
32 |
-
"Author": "H, Yang ([email protected])"
|
33 |
-
}
|
34 |
-
},
|
35 |
-
"ATEPC": {
|
36 |
-
"multilingual": {
|
37 |
-
"id": "",
|
38 |
-
"Training Model": "FAST-LCF-ATEPC",
|
39 |
-
"Training Dataset": "ABSADatasets.Multilingual",
|
40 |
-
"Language": "Multilingual",
|
41 |
-
"Description": "Trained on RTX3090",
|
42 |
-
"Available Version": "1.16.0+",
|
43 |
-
"Checkpoint File": "fast_lcf_atepc_Multilingual_cdw_apcacc_78.08_apcf1_77.81_atef1_75.41.zip",
|
44 |
-
"Author": "H, Yang ([email protected])"
|
45 |
-
},
|
46 |
-
"english": {
|
47 |
-
"id": "",
|
48 |
-
"Training Model": "FAST-LCF-ATEPC",
|
49 |
-
"Training Dataset": "ATEPCDatasetList.English",
|
50 |
-
"Language": "English",
|
51 |
-
"Description": "Trained on RTX3090",
|
52 |
-
"Available Version": "1.10.5+",
|
53 |
-
"Checkpoint File": "fast_lcf_atepc_English_cdw_apcacc_82.36_apcf1_81.89_atef1_75.43.zip",
|
54 |
-
"Author": "H, Yang ([email protected])"
|
55 |
-
},
|
56 |
-
"chinese": {
|
57 |
-
"id": "",
|
58 |
-
"Training Model": "FAST-LCF-ATEPC",
|
59 |
-
"Training Dataset": "ATEPCDatasetList.Chinese",
|
60 |
-
"Language": "Chinese",
|
61 |
-
"Description": "Trained on RTX3090",
|
62 |
-
"Available Version": "1.10.5+",
|
63 |
-
"Checkpoint File": "fast_lcf_atepc_Chinese_cdw_apcacc_96.22_apcf1_95.32_atef1_78.73.zip",
|
64 |
-
"Author": "H, Yang ([email protected])"
|
65 |
-
}
|
66 |
-
},
|
67 |
-
"RNAC": {
|
68 |
-
"degrad_lstm": {
|
69 |
-
"id": "",
|
70 |
-
"Training Model": "LSTM",
|
71 |
-
"Training Dataset": "ABSADatasets.Multilingual",
|
72 |
-
"Language": "RNA",
|
73 |
-
"Description": "Trained on RTX3090",
|
74 |
-
"Available Version": "1.16.0+",
|
75 |
-
"Checkpoint File": "lstm_degrad_acc_85.26_f1_84.62.zip",
|
76 |
-
"Author": "H, Yang ([email protected])"
|
77 |
-
},
|
78 |
-
"degrad_bert": {
|
79 |
-
"id": "",
|
80 |
-
"Training Model": "MLP",
|
81 |
-
"Training Dataset": "Degrad",
|
82 |
-
"Language": "RNA",
|
83 |
-
"Description": "Trained on RTX3090",
|
84 |
-
"Available Version": "1.16.0+",
|
85 |
-
"Checkpoint File": "bert_mlp_degrad_acc_87.44_f1_86.99.zip",
|
86 |
-
"Author": "H, Yang ([email protected])"}
|
87 |
-
}
|
88 |
-
}
|
89 |
-
}
|
|
|
1 |
+
{"2.0.0.dev0+": {"APC": {"multilingual": {"id": "", "Training Model": "FAST-LSA-T-V2-Deberta", "Training Dataset": "APCDatasetList.Multilingual", "Language": "Multilingual", "Description": "Trained on RTX3090", "Available Version": "1.10.5+", "Checkpoint File": "fast_lcf_bert_Multilingual_acc_82.66_f1_82.06.zip", "Author": "H, Yang ([email protected])"}, "english": {"id": "", "Training Model": "FAST-LSA-T-V2-Deberta", "Training Dataset": "APCDatasetList.English", "Language": "English", "Description": "Trained on RTX3090", "Available Version": "1.10.5+", "Checkpoint File": "fast_lsa_t_v2_English_acc_82.21_f1_81.81.zip", "Author": "H, Yang ([email protected])"}, "chinese": {"id": "", "Training Model": "FAST-LSA-T-V2-Deberta", "Training Dataset": "APCDatasetList.Chinese", "Language": "Chinese", "Description": "Trained on RTX3090", "Available Version": "1.10.5+", "Checkpoint File": "fast_lsa_t_v2_Chinese_acc_96.0_f1_95.1.zip", "Author": "H, Yang ([email protected])"}}, "ATEPC": {"multilingual": {"id": "", "Training Model": "FAST-LCF-ATEPC", "Training Dataset": "ABSADatasets.Multilingual", "Language": "Multilingual", "Description": "Trained on RTX3090", "Available Version": "1.16.0+", "Checkpoint File": "fast_lcf_atepc_Multilingual_cdw_apcacc_78.08_apcf1_77.81_atef1_75.41.zip", "Author": "H, Yang ([email protected])"}, "english": {"id": "", "Training Model": "FAST-LCF-ATEPC", "Training Dataset": "ATEPCDatasetList.English", "Language": "English", "Description": "Trained on RTX3090", "Available Version": "1.10.5+", "Checkpoint File": "fast_lcf_atepc_English_cdw_apcacc_82.36_apcf1_81.89_atef1_75.43.zip", "Author": "H, Yang ([email protected])"}, "chinese": {"id": "", "Training Model": "FAST-LCF-ATEPC", "Training Dataset": "ATEPCDatasetList.Chinese", "Language": "Chinese", "Description": "Trained on RTX3090", "Available Version": "1.10.5+", "Checkpoint File": "fast_lcf_atepc_Chinese_cdw_apcacc_96.22_apcf1_95.32_atef1_78.73.zip", "Author": "H, Yang ([email protected])"}}, "RNAC": {"degrad_lstm": {"id": "", "Training Model": "LSTM", "Training Dataset": "ABSADatasets.Multilingual", "Language": "RNA", "Description": "Trained on RTX3090", "Available Version": "1.16.0+", "Checkpoint File": "lstm_degrad_acc_85.26_f1_84.62.zip", "Author": "H, Yang ([email protected])"}, "degrad_bert": {"id": "", "Training Model": "MLP", "Training Dataset": "Degrad", "Language": "RNA", "Description": "Trained on RTX3090", "Available Version": "1.16.0+", "Checkpoint File": "bert_mlp_degrad_acc_87.44_f1_86.99.zip", "Author": "H, Yang ([email protected])"}}}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
checkpoints/RNA/RNAC/{lstm_degrad_acc_85.26_f1_84.62.zip β lstm_degrad_acc_83.4_f1_83.21.zip}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6bac04656b2b488aacd241de8899c990714f3b6f503720f1c8a646bb610d00e4
|
3 |
+
size 11112068
|
checkpoints/RNA/RNAC/{bert_mlp_degrad_acc_87.44_f1_86.99.zip β lstm_degrad_acc_83.83_f1_83.69.zip}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b009ad35d490217b8241dbf60dfe226b4e68532ed896d4fe967a80796e8de8d1
|
3 |
+
size 11111888
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.07_f1_83.92.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9d05d11f2354d6427855dac661d4d3aaef70fd5f9789a30e3da42b0db2ccbdcb
|
3 |
+
size 11112642
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.15_f1_84.02.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b036eb8a7ec32db5c29af14d1f59bd28ab58b1097ca4050eabd2dec6b2d0b28
|
3 |
+
size 11111863
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.16_f1_84.03.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b04c195095408f7337dfc94d839a556535eaa7b9f969a5a17075f4c13c7a5de0
|
3 |
+
size 11110617
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.49_f1_84.37.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e65ef8441d7c312040a7640093de44599575ff7ea986d820d20ea1943a9dc1cc
|
3 |
+
size 11112354
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.61_f1_84.46.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c71fd28eea23b3207b36b41279c80ef369af0f7930cdf7841805b14d0aa476bc
|
3 |
+
size 11112664
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.64_f1_84.54.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d712ac58485cdbbf9df1fb2dc9ea2545b11eed1e99b21b0bbc3f11b7fe088c68
|
3 |
+
size 11111644
|
checkpoints/RNA/RNAC/lstm_degrad_acc_84.98_f1_84.89.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a0a214f6192e78bbc66657b2f948be4c4cb61e4bc5db4aee5193055b9b2deaae
|
3 |
+
size 11113080
|
emergency_notification.txt
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
PyABSA v2.x has been refactored; its APIs are now organized by NLP subtasks.
|
2 |
-
Due to many breaking changes, it is not compatible with 1.x versions.
|
3 |
-
If you need to use pretrained checkpoints, you can downgrade to 1.x versions.
|
4 |
-
Please feel free to provide your advice to improve PyABSA
|
|
|
|
|
|
|
|
|
|