xuandin commited on
Commit
b2ea1ed
·
verified ·
1 Parent(s): 9b967e7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -3
README.md CHANGED
@@ -1,9 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 +64,30 @@ for i, (label, prob) in enumerate(zip(labels, probabilities.tolist()), start=1):
31
  print(f"{i}) {label} {prob:.4f}")
32
  # 1) SUPPORTED 0.0028
33
  # 2) REFUTED 0.9972
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:** [XLM-R](https://huggingface.co/FacebookAI/xlm-roberta-large)
23
+ - **Supported Language:** Vietnamese
24
+ - **Task:** Binary Classification (Fact Verification)
25
+ - **Dataset:** [ViWikiFC](https://arxiv.org/abs/2405.07615)
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 transformers import AutoTokenizer
36
+ from semviqa.tvc.model import ClaimModelForClassification
37
 
38
+ tokenizer = AutoTokenizer.from_pretrained("SemViQA/bc-xlmr-viwikifc")
39
+ model = ClaimModelForClassification.from_pretrained("SemViQA/bc-xlmr-viwikifc", num_labels=2)
40
  claim = "Chiến tranh với Campuchia đã kết thúc trước khi Việt Nam thống nhất."
41
  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."
42
 
 
64
  print(f"{i}) {label} {prob:.4f}")
65
  # 1) SUPPORTED 0.0028
66
  # 2) REFUTED 0.9972
67
+ ```
68
+
69
+ ## **Citation**
70
+
71
+ If you use **SemViQA-BC** in your research, please cite:
72
+
73
+ ```bibtex
74
+ @misc{nguyen2025semviqasemanticquestionanswering,
75
+ title={SemViQA: A Semantic Question Answering System for Vietnamese Information Fact-Checking},
76
+ 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},
77
+ year={2025},
78
+ eprint={2503.00955},
79
+ archivePrefix={arXiv},
80
+ primaryClass={cs.CL},
81
+ url={https://arxiv.org/abs/2503.00955},
82
+ }
83
+ ```
84
+
85
+ 🔗 **Paper Link:** [SemViQA on arXiv](https://arxiv.org/abs/2503.00955)
86
+ 🔗 **Source Code:** [GitHub - SemViQA](https://github.com/DAVID-NGUYEN-S16/SemViQA)
87
+
88
+ ## About
89
+
90
+ *Built by Dien X. Tran*
91
+ [![LinkedIn](https://img.shields.io/badge/LinkedIn-Profile-blue?logo=linkedin)](https://www.linkedin.com/in/xndien2004/)
92
+ For more details, visit the project repository.
93
+ [![GitHub stars](https://img.shields.io/github/stars/DAVID-NGUYEN-S16/SemViQA?style=social)](https://github.com/DAVID-NGUYEN-S16/SemViQA)