xuandin commited on
Commit
ef621af
·
verified ·
1 Parent(s): 79cb8bc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -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,30 @@ for i, (label, prob) in enumerate(zip(labels, probabilities.tolist()), start=1):
31
  print(f"{i}) {label} {prob:.4f}")
32
  # 1) SUPPORTED 0.0019
33
  # 2) REFUTED 0.9981
34
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ library_name: transformers
5
+ tags:
6
+ - SemViQA
7
+ - binary-classification
8
+ - fact-checking
9
+ pipeline_tag: text-classification
10
+ license: mit
11
+ ---
12
+
13
+ # SemViQA-BC: Vietnamese Binary Classification for Claim Verification
14
+
15
+ ## Model Description
16
+
17
+ **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.
18
+
19
+ ### **Model Information**
20
+ - **Developed by:** [SemViQA Research Team](https://huggingface.co/SemViQA)
21
+ - **Fine-tuned model:** [InfoXLM](https://huggingface.co/microsoft/infoxlm-large)
22
+ - **Supported Language:** Vietnamese
23
+ - **Task:** Binary Classification (Fact Verification)
24
+ - **Dataset:** [ISE-DSC01](https://codalab.lisn.upsaclay.fr/competitions/15497)
25
+
26
+ 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
27
+
28
+ ## Usage Example
29
+
30
+ Direct Model Usage
31
  ```Python
32
  import torch
33
  import torch.nn.functional as F
34
+ from transformers import AutoTokenizer
35
+ from semviqa.tvc.model import ClaimModelForClassification
36
 
37
+ tokenizer = AutoTokenizer.from_pretrained("SemViQA/bc-infoxlm-isedsc01")
38
+ model = ClaimModelForClassification.from_pretrained("SemViQA/bc-infoxlm-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.0019
65
  # 2) REFUTED 0.9981
66
+ ```
67
+
68
+ ## **Citation**
69
+
70
+ If you use **SemViQA-BC** in your research, please cite:
71
+
72
+ ```bibtex
73
+ @misc{nguyen2025semviqasemanticquestionanswering,
74
+ title={SemViQA: A Semantic Question Answering System for Vietnamese Information Fact-Checking},
75
+ 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},
76
+ year={2025},
77
+ eprint={2503.00955},
78
+ archivePrefix={arXiv},
79
+ primaryClass={cs.CL},
80
+ url={https://arxiv.org/abs/2503.00955},
81
+ }
82
+ ```
83
+
84
+ 🔗 **Paper Link:** [SemViQA on arXiv](https://arxiv.org/abs/2503.00955)
85
+ 🔗 **Source Code:** [GitHub - SemViQA](https://github.com/DAVID-NGUYEN-S16/SemViQA)
86
+
87
+ ## About
88
+
89
+ *Built by Dien X. Tran*
90
+ [![LinkedIn](https://img.shields.io/badge/LinkedIn-Profile-blue?logo=linkedin)](https://www.linkedin.com/in/xndien2004/)
91
+ For more details, visit the project repository.
92
+ [![GitHub stars](https://img.shields.io/github/stars/DAVID-NGUYEN-S16/SemViQA?style=social)](https://github.com/DAVID-NGUYEN-S16/SemViQA)