Add model card and metadata

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +19 -0
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: feature-extraction
3
+ library_name: transformers
4
+ ---
5
+
6
+ This repository contains the `cardiffnlp/twitter-roberta-base-sentiment` model, a sentiment analysis model used for feature extraction in the watermarking scheme described in the paper: **Defending LLM Watermarking Against Spoofing Attacks with Contrastive Representation Learning**.
7
+
8
+ Paper: [https://huggingface.co/papers/2504.06575](https://huggingface.co/papers/2504.06575)
9
+ Code: [https://github.com/an1118/contrastive-watermark](https://github.com/an1118/contrastive-watermark)
10
+
11
+ This model can be loaded using the `transformers` library:
12
+
13
+ ```python
14
+ from transformers import AutoModel, AutoTokenizer
15
+
16
+ model_name = "cardiffnlp/twitter-roberta-base-sentiment"
17
+ model = AutoModel.from_pretrained(model_name)
18
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
19
+ ```