FutureMa commited on
Commit
ddec057
Β·
verified Β·
1 Parent(s): 47a23cb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -0
README.md CHANGED
@@ -22,6 +22,42 @@ This model can detect:
22
  - βœ… Monetization criticism (e.g., "The pay-to-win mechanics ruin the game")
23
  - βœ… Other significant gameplay problems
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ## Supported Languages
26
  🌐 English
27
 
 
22
  - βœ… Monetization criticism (e.g., "The pay-to-win mechanics ruin the game")
23
  - βœ… Other significant gameplay problems
24
 
25
+ ## Quick Start
26
+
27
+ ```python
28
+ from transformers import pipeline
29
+ import torch
30
+
31
+ # Load the model
32
+ classifier = pipeline("text-classification",
33
+ model="FutureMa/game-issue-review-detection",
34
+ device=0 if torch.cuda.is_available() else -1)
35
+
36
+ # Define review examples
37
+ reviews = [
38
+ "Great game ruined by the worst final boss in history. Such a slog that has to be cheesed to win.",
39
+ "Great game, epic story, best gameplay and banger music. Overall very good jrpg games for me also i hope gallica is real"
40
+ ]
41
+
42
+ # Label explanations
43
+ LABEL_MAP = {
44
+ "LABEL_0": "Non Game Issue Review",
45
+ "LABEL_1": "Game Issue Review"
46
+ }
47
+
48
+ # Classify and display results
49
+ print("πŸ” Game Issue Review Analysis Results:\n")
50
+ print("-" * 80)
51
+ for i, review in enumerate(reviews, 1):
52
+ pred = classifier(review)
53
+ label_explanation = LABEL_MAP[pred[0]['label']]
54
+ print(f"Review {i}:")
55
+ print(f"Text: {review}")
56
+ print(f"Classification: {label_explanation}")
57
+ print(f"Confidence: {pred[0]['score']:.4f}")
58
+ print("-" * 80)
59
+ ```
60
+
61
  ## Supported Languages
62
  🌐 English
63