xuandin commited on
Commit
866c98f
·
verified ·
1 Parent(s): aa85753

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -3
README.md CHANGED
@@ -1,9 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ```Python
2
  import torch
3
  import torch.nn.functional as F
 
4
 
5
- # tokenizer = AutoTokenizer.from_pretrained("xuandin/semviqa-tc-infoxlm-viwikifc")
6
- # model = ClaimModelForClassification.from_pretrained("xuandin/semviqa-tc-infoxlm-viwikifc")
7
  claim = "Chiến tranh với Campuchia đã kết thúc trước khi Việt Nam thống nhất."
8
  evidence = "Sau khi thống nhất, Việt Nam tiếp tục gặp khó khăn do sự sụp đổ và tan rã của đồng minh Liên Xô cùng Khối phía Đông, các lệnh cấm vận của Hoa Kỳ, chiến tranh với Campuchia, biên giới giáp Trung Quốc và hậu quả của chính sách bao cấp sau nhiều năm áp dụng."
9
 
@@ -31,4 +63,34 @@ for i, (label, prob) in enumerate(zip(labels, probabilities.tolist()), start=1):
31
  print(f"{i}) {label} {prob:.4f}")
32
  # 1) SUPPORTED 0.0015
33
  # 2) REFUTED 0.9985
34
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ library_name: transformers
5
+ tags:
6
+ - SemViQA
7
+ - binary-classification
8
+ - fact-checking
9
+ - information-retrieval
10
+ pipeline_tag: text-classification
11
+ license: mit
12
+ ---
13
+
14
+ # SemViQA-BC: Vietnamese Binary Classification for Claim Verification
15
+
16
+ ## Model Description
17
+
18
+ **SemViQA-BC** is a core component of the **SemViQA** system, specifically designed for **binary classification** in Vietnamese fact-checking tasks. This model predicts whether a given claim is **SUPPORTED** or **REFUTED** based on retrieved evidence.
19
+
20
+ ### **Model Information**
21
+ - **Developed by:** [SemViQA Research Team](https://huggingface.co/SemViQA)
22
+ - **Fine-tuned model:** [Ernie-M](https://huggingface.co/MoritzLaurer/ernie-m-large-mnli-xnli)
23
+ - **Supported Language:** Vietnamese
24
+ - **Task:** Binary Classification (Fact Verification)
25
+ - **Dataset:** [ISE-DSC01](https://codalab.lisn.upsaclay.fr/competitions/15497)
26
+
27
+ SemViQA-BC is one of the key components of the two-step classification approach in the SemViQA system. It focuses on binary classification, determining whether a claim is SUPPORTED or REFUTED. This step follows an initial three-class classification, where claims are first categorized as SUPPORTED, REFUTED, or NOT ENOUGH INFORMATION (NEI). By incorporating Cross-Entropy Loss and Focal Loss, SemViQA-BC enhances precision in claim verification, ensuring more accurate fact-checking results
28
+
29
+ ## Usage Example
30
+
31
+ Direct Model Usage
32
  ```Python
33
  import torch
34
  import torch.nn.functional as F
35
+ from semviqa.tvc.model import ClaimModelForClassification
36
 
37
+ tokenizer = AutoTokenizer.from_pretrained("SemViQA/bc-erniem-isedsc01")
38
+ model = ClaimModelForClassification.from_pretrained("SemViQA/bc-erniem-isedsc01", num_labels=2)
39
  claim = "Chiến tranh với Campuchia đã kết thúc trước khi Việt Nam thống nhất."
40
  evidence = "Sau khi thống nhất, Việt Nam tiếp tục gặp khó khăn do sự sụp đổ và tan rã của đồng minh Liên Xô cùng Khối phía Đông, các lệnh cấm vận của Hoa Kỳ, chiến tranh với Campuchia, biên giới giáp Trung Quốc và hậu quả của chính sách bao cấp sau nhiều năm áp dụng."
41
 
 
63
  print(f"{i}) {label} {prob:.4f}")
64
  # 1) SUPPORTED 0.0015
65
  # 2) REFUTED 0.9985
66
+ ```
67
+
68
+ ## **Evaluation Results**
69
+
70
+ **SemViQA-QATC** plays a crucial role in the **SemViQA** system by enhancing accuracy in evidence extraction. When integrated into a pipeline, this model helps determine whether a claim is supported or refuted based on retrieved evidence.
71
+
72
+ ## **Citation**
73
+
74
+ If you use **SemViQA-QATC** in your research, please cite:
75
+
76
+ ```bibtex
77
+ @misc{nguyen2025semviqasemanticquestionanswering,
78
+ title={SemViQA: A Semantic Question Answering System for Vietnamese Information Fact-Checking},
79
+ author={Nam V. Nguyen and Dien X. Tran and Thanh T. Tran and Anh T. Hoang and Tai V. Duong and Di T. Le and Phuc-Lu Le},
80
+ year={2025},
81
+ eprint={2503.00955},
82
+ archivePrefix={arXiv},
83
+ primaryClass={cs.CL},
84
+ url={https://arxiv.org/abs/2503.00955},
85
+ }
86
+ ```
87
+
88
+ 🔗 **Paper Link:** [SemViQA on arXiv](https://arxiv.org/abs/2503.00955)
89
+ 🔗 **Source Code:** [GitHub - SemViQA](https://github.com/DAVID-NGUYEN-S16/SemViQA)
90
+
91
+ ## About
92
+
93
+ *Built by Dien X. Tran*
94
+ [![LinkedIn](https://img.shields.io/badge/LinkedIn-Profile-blue?logo=linkedin)](https://www.linkedin.com/in/xndien2004/)
95
+ For more details, visit the project repository.
96
+ [![GitHub stars](https://img.shields.io/github/stars/DAVID-NGUYEN-S16/SemViQA?style=social)](https://github.com/DAVID-NGUYEN-S16/SemViQA)