Views
No views yet
License note: The base checkpointtextattack/bert-base-uncased-QQPdoes not declare a license; the underlyingbert-base-uncasedis Apache-2.0.
U and related events R).textattack/bert-base-uncased-QQPlyutovad/TradeNewsEventDedup — SilverSet (16,097 LLM-labeled pairs, fine-tuning only)1 = duplicate, class 0 = non-duplicate.| Metric | Value |
|---|---|
| PR-AUC | 0.9176 |
| F1 | 0.8885 |
| Accuracy | 0.9040 |
| Recall | 0.9183 |
1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
4repo = "afafos/trade-news-dedup-bert-base-uncased-qqp"
5tok = AutoTokenizer.from_pretrained(repo)
6model = AutoModelForSequenceClassification.from_pretrained(repo).eval()
7
8a = "Iraq and Lebanon signed an agreement and seven MoUs on trade and investment."
9b = "Iraq and Lebanon announced a new partnership framework, including seven MoUs."
10
11with torch.no_grad():
12 logits = model(**tok(a, b, return_tensors="pt", truncation=True)).logits
13 p_duplicate = torch.softmax(logits, dim=-1)[0, 1].item() # class 1 == duplicate
14print(p_duplicate)1@misc{tradenews_event_dedup,
2 title = {Event-Level Duplicate Detection in Trade News under Hard-Negative Supervision},
3 author = {Liutova, Daria and Kamalov, Said and Afanasev, Andrew and Mukhtarov, Timerlan},
4 year = {2026},
5 note = {Dataset: lyutovad/TradeNewsEventDedup; Code: https://github.com/SaidKamalov/trade-news-duplicates}
6}