chendren commited on
Commit
eb55d4b
·
verified ·
1 Parent(s): 0abd9e5

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +105 -0
README.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - phi-2
5
+ - customer-service
6
+ - transcript-analysis
7
+ - multi-issue
8
+ license: mit
9
+ ---
10
+
11
+ # Phi-2 Multi-Issue Transcript Analysis Model
12
+
13
+ This model is fine-tuned from Microsoft's Phi-2 for analyzing customer service transcripts with multiple issues. It can:
14
+
15
+ 1. Identify primary and secondary issues
16
+ 2. Analyze customer sentiment
17
+ 3. Rate agent performance
18
+ 4. Track resolution status
19
+ 5. Predict CSAT scores
20
+ 6. Extract key actions and outcomes
21
+
22
+ ## Model Details
23
+
24
+ - **Base Model**: microsoft/phi-2
25
+ - **Task**: Multi-issue customer service transcript analysis
26
+ - **Training Data**: Customer service transcripts with multiple issues
27
+ - **Output Format**: Structured JSON with detailed analysis
28
+
29
+ ## Usage
30
+
31
+ ```python
32
+ from transformers import AutoModelForCausalLM, AutoTokenizer
33
+
34
+ # Load model and tokenizer
35
+ model = AutoModelForCausalLM.from_pretrained("chendren/phi2-multi-issue-analysis")
36
+ tokenizer = AutoTokenizer.from_pretrained("chendren/phi2-multi-issue-analysis")
37
+
38
+ # Prepare input
39
+ transcript = """[Your customer service transcript here]"""
40
+
41
+ # Generate analysis
42
+ inputs = tokenizer(transcript, return_tensors="pt")
43
+ outputs = model.generate(**inputs, max_new_tokens=512)
44
+ analysis = tokenizer.decode(outputs[0])
45
+ ```
46
+
47
+ ## Example Output
48
+
49
+ ```json
50
+ {
51
+ "primary_issue": "Internet connection drops",
52
+ "secondary_issues": [
53
+ "Signal interference",
54
+ "Router firmware outdated"
55
+ ],
56
+ "customer_sentiment": "negative",
57
+ "agent_performance": {
58
+ "rating": 4,
59
+ "justification": "Agent was helpful and provided clear instructions"
60
+ },
61
+ "resolution_status": "resolved",
62
+ "follow_up_needed": false,
63
+ "key_points": [
64
+ "Customer experienced internet drops",
65
+ "Agent guided through troubleshooting",
66
+ "Issue resolved with firmware update"
67
+ ],
68
+ "issues": [
69
+ "Intermittent connection drops",
70
+ "WiFi interference",
71
+ "Outdated firmware"
72
+ ],
73
+ "actions": [
74
+ "Diagnosed signal fluctuations",
75
+ "Updated router firmware",
76
+ "Provided monitoring instructions"
77
+ ],
78
+ "outcomes": [
79
+ "Connection stability improved",
80
+ "Firmware updated successfully"
81
+ ],
82
+ "predicted_csat": 4
83
+ }
84
+ ```
85
+
86
+ ## Limitations
87
+
88
+ - Designed specifically for customer service transcripts
89
+ - Best performance with clear dialogue format
90
+ - May require adjustment for different transcript formats
91
+
92
+ ## Citation
93
+
94
+ If you use this model, please cite:
95
+
96
+ ```bibtex
97
+ @misc{phi2-multi-issue-analysis,
98
+ author = {args.username},
99
+ title = {Phi-2 Multi-Issue Transcript Analysis Model},
100
+ year = {2025},
101
+ publisher = {Hugging Face},
102
+ journal = {Hugging Face Model Hub},
103
+ howpublished = {https://huggingface.co/chendren/phi2-multi-issue-analysis}
104
+ }
105
+ ```