Instructions to use qxswy/roberta-card-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qxswy/roberta-card-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="qxswy/roberta-card-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("qxswy/roberta-card-ner") model = AutoModelForTokenClassification.from_pretrained("qxswy/roberta-card-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for qxswy/roberta-card-ner
Model Details
Model Description
This model performs Named Entity Recognition specialized for analyzing product reviews of board games, particularly Cards Against Humanity. It identifies five custom entity types corresponding to different components of perceived value: PRODUCT (functional value), ATTRIBUTE (emotional value), PEOPLE (social value), EVENT (contextual value), and OTHER_GAME (comparative value).
- Model type: Named Entity Recognition (Token Classification)
- Language(s) (NLP): English
- Finetuned from model: roberta-large
Uses
This model is designed for extracting and categorizing value components from product reviews to:
- Analyze perceived value propositions
- Identify key product attributes that resonate with consumers
- Segment customers based on value perception profiles
- Develop targeted marketing strategies
Bias, Risks, and Limitations
- Entity recognition performs better for some categories (OTHER_GAME, PRODUCT) than others (ATTRIBUTE, PEOPLE)
- The model was trained on a relatively small dataset (500 reviews), which may limit its generalizability
- Domain-specific training means performance will be best for board/card game reviews
How to Get Started with the Model
Use the code below to get started with the model.
from transformers import pipeline
ner_pipe = pipeline(
"token-classification",
model="qxswy/roberta-card-ner",
tokenizer="qxswy/roberta-card-ner",
aggregation_strategy="simple"
)
text = "This fun game is perfect for parties with friends!"
entities = ner_pipe(text)
print(entities)
Training Details
Training Data
The model was trained on 500 manually annotated Amazon reviews with domain-specific entity labels. The data was labeled using Label Studio, with stratified sampling to ensure representation across review ratings and lengths. Inter-annotator agreement (Cohen's kappa) for the annotation process was 0.78.
Training Procedure
Preprocessing: BIO (Begin-Inside-Outside) tagging scheme
Training Hyperparameters:
- Learning rate: 3e-5
- Batch size: 4
- Epochs: 8
- Max sequence length: 256 tokens
- Special techniques: R-Drop for consistency, oversampling for rare categories
- Downloads last month
- 6