archismancoder commited on
Commit
ebb589d
·
verified ·
1 Parent(s): c4512f8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +129 -58
README.md CHANGED
@@ -16,6 +16,28 @@ sdk: "static"
16
  pinned: false
17
  ---
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  <div align="center">
20
 
21
  <!-- ![Project Logo](https://via.placeholder.com/150) -->
@@ -56,68 +78,117 @@ Tachygraphy—originally developed to expedite writing—has evolved over centur
56
 
57
  ---
58
 
59
- ## Sample Examples
60
 
61
  ### Sample Example 1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
 
63
- Below is a Graphviz diagram illustrating a sample analysis:
64
-
65
- ```dot
66
- digraph {
67
- graph [bgcolor="white", rankdir=TB, splines=true, nodesep=0.8, ranksep=0.8];
68
- node [shape=box, style="rounded,filled", fontname="Helvetica", fontsize=9, margin="0.15,0.1"];
69
-
70
- Input [label="Input:\nbruh, floods in Kerala, rescue ops non‑stop 🚁", fillcolor="#ffe6de", fontcolor="#000000"];
71
- Output [label="Output:\nBrother, the floods in Kerala are severe,\nand rescue operations are ongoing continuously.", fillcolor="#ffe6de", fontcolor="#000000"];
72
- Sentiment [label="Sentiment:\nNEUTRAL", fillcolor="#ecdeff", fontcolor="black"];
73
-
74
- Anger [label="Anger: 0.080178231", fillcolor="#deffe1", fontcolor="black"];
75
- Disgust [label="Disgust: 0.015257259", fillcolor="#deffe1", fontcolor="black"];
76
- Fear [label="Fear: 0.601871967", fillcolor="#deffe1", fontcolor="black"];
77
- Joy [label="Joy: 0.00410547", fillcolor="#deffe1", fontcolor="black"];
78
- Neutral [label="Neutral: 0.0341026", fillcolor="#deffe1", fontcolor="black"];
79
- Sadness [label="Sadness: 0.245294735", fillcolor="#deffe1", fontcolor="black"];
80
- Surprise [label="Surprise: 0.019189769", fillcolor="#deffe1", fontcolor="black"];
81
-
82
- edge [color="#7a7a7a", penwidth=3];
83
-
84
- Input -> Output;
85
- Input -> Sentiment;
86
- Sentiment -> Anger;
87
- Sentiment -> Disgust;
88
- Sentiment -> Fear;
89
- Sentiment -> Joy;
90
- Sentiment -> Neutral;
91
- Sentiment -> Sadness;
92
- Sentiment -> Surprise;
93
- }
94
  ```
95
 
96
  ### Sample Example 2
97
- digraph {
98
- graph [bgcolor="white", rankdir=TB, splines=true, nodesep=0.8, ranksep=0.8];
99
- node [shape=box, style="rounded,filled", fontname="Helvetica", fontsize=9, margin="0.15,0.1"];
100
-
101
- Input [label="Input:\nu rlly think all that talk means u tough? lol, when I step up, u ain't gon say sh*t", fillcolor="#ffe6de", fontcolor="black"];
102
- Output [label="Output:\nyou really think all that talk makes you tough [lol](laughed out loud) when i step up you are not going to say anything", fillcolor="#ffe6de", fontcolor="black"];
103
- Sentiment [label="Sentiment:\nNEGATIVE", fillcolor="#ecdeff", fontcolor="black"];
104
-
105
- Anger [label="Anger: 0.14403291", fillcolor="#deffe1", fontcolor="black"];
106
- Disgust [label="Disgust: 0.039282672", fillcolor="#deffe1", fontcolor="black"];
107
- Fear [label="Fear: 0.014349542", fillcolor="#deffe1", fontcolor="black"];
108
- Joy [label="Joy: 0.048965044", fillcolor="#deffe1", fontcolor="black"];
109
- Neutral [label="Neutral: 0.494852662", fillcolor="#deffe1", fontcolor="black"];
110
- Sadness [label="Sadness: 0.021111647", fillcolor="#deffe1", fontcolor="black"];
111
- Surprise [label="Surprise: 0.237405464", fillcolor="#deffe1", fontcolor="black"];
112
-
113
- edge [color="#7a7a7a", penwidth=3];
114
-
115
- Input -> Output;
116
- Input -> Sentiment;
117
- Sentiment -> Anger;
118
- Sentiment -> Disgust;
119
- Sentiment -> Fear;
120
- Sentiment -> Joy;
121
- Sentiment ->
122
- ::contentReference[oaicite:0]{index=0}
 
 
 
 
 
 
 
 
123
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  pinned: false
17
  ---
18
 
19
+ # Tachygraphy Micro-text Analysis And Normalization
20
+ <!---
21
+ ---
22
+ title: "Tachygraphy Micro-text Analysis & Normalization"
23
+ emoji: "⚡"
24
+ colorFrom: "pink"
25
+ colorTo: "blue"
26
+ sdk: "static"
27
+ pinned: false
28
+ ---
29
+ --->
30
+
31
+ <!-- ---
32
+ title: README
33
+ emoji: 😻
34
+ colorFrom: yellow
35
+ colorTo: red
36
+ sdk: static
37
+ pinned: false
38
+ ---
39
+ -->
40
+
41
  <div align="center">
42
 
43
  <!-- ![Project Logo](https://via.placeholder.com/150) -->
 
78
 
79
  ---
80
 
 
81
 
82
  ### Sample Example 1
83
+ ```mermaid
84
+ graph TD;
85
+ %% Input and normalized text nodes
86
+ A["Input Text: i don't know for real y he's sooo sad"]
87
+ B["Normalized Text: i do not know for real why he's so sad"]
88
+ C["Sentiment"]
89
+
90
+ A --> B
91
+ A -->|Sentiment| C
92
+
93
+ %% Sentiment value nodes (values inside the boxes)
94
+ C -->|Negative| D["0.99587"]
95
+ C -->|Neutral| E["6.23e-05"]
96
+ C -->|Positive| F["2.10e-05"]
97
+
98
+ %% Converge sentiment nodes to Emotion stage
99
+ D -->|Emotion| G
100
+ E -->|Emotion| G
101
+ F -->|Emotion| G
102
+
103
+ G["Emotion"]
104
+
105
+ %% Emotion nodes: arrow labels show emotion category; node boxes show numeric values.
106
+ G -->|Anger| H["0.0"]
107
+ G -->|Disgust| I["0.0"]
108
+ G -->|Fear| J["0.01028"]
109
+ G -->|Joy| K["0.0"]
110
+ G -->|Neutral| L["0.02194"]
111
+ G -->|Sadness| M["1.0"]
112
+ G -->|Surprise| N["0.02158"]
113
+
114
+ %% Style the Neutral and Positive sentiment arrows with a lighter stroke.
115
+ linkStyle 6 stroke:#cccccc, stroke-width:1px;
116
+ linkStyle 7 stroke:#cccccc, stroke-width:1px;
117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  ```
119
 
120
  ### Sample Example 2
121
+ ```mermaid
122
+ graph LR;
123
+ %% Input and normalized text nodes
124
+ A["Input Text: you rlly think all that talk means u tough? lol, when I step up, u ain't gon say sh*t"]
125
+ B["Normalized Text: you really think all that talk makes you tough [lol](laughed out loud) when i step up you are not going to say anything"]
126
+ C["Sentiment"]
127
+
128
+ A --> B
129
+ A -->|Sentiment| C
130
+
131
+ %% Sentiment value nodes
132
+ C -->|Negative| D["0.99999"]
133
+ C -->|Neutral| E["6.89e-06"]
134
+ C -->|Positive| F["1.11e-05"]
135
+
136
+ %% Converge sentiment nodes to Emotion stage
137
+ D -->|Emotion| G
138
+ E -->|Emotion| G
139
+ F -->|Emotion| G
140
+
141
+ G["Emotion"]
142
+
143
+ %% Emotion nodes: arrow labels show emotion category; nodes show numeric values.
144
+ G -->|Anger| H["0.14403"]
145
+ G -->|Disgust| I["0.03928"]
146
+ G -->|Fear| J["0.01435"]
147
+ G -->|Joy| K["0.04897"]
148
+ G -->|Neutral| L["0.49485"]
149
+ G -->|Sadness| M["0.02111"]
150
+ G -->|Surprise| N["0.23741"]
151
+
152
+ %% Style the Neutral and Positive sentiment arrows with a lighter stroke.
153
+ linkStyle 6 stroke:#cccccc, stroke-width:1px;
154
+ linkStyle 7 stroke:#cccccc, stroke-width:1px;
155
  ```
156
+
157
+ ### Sample Example 3
158
+ ```mermaid
159
+ graph TD;
160
+ %% Input and normalized text nodes
161
+ A["Input Text: bruh, floods in Kerala, rescue ops non‑stop 🚁"]
162
+ B["Normalized Text: Brother, the floods in Kerala are severe, and rescue operations are ongoing continuously."]
163
+ C["Sentiment"]
164
+
165
+ A --> B
166
+ A -->|Sentiment| C
167
+
168
+ %% Sentiment value nodes
169
+ C -->|Negative| D["4.44e-05"]
170
+ C -->|Neutral| E["0.99989"]
171
+ C -->|Positive| F["7.10e-05"]
172
+
173
+ %% Converge sentiment nodes to Emotion stage
174
+ D -->|Emotion| G
175
+ E -->|Emotion| G
176
+ F -->|Emotion| G
177
+
178
+ G["Emotion"]
179
+
180
+ %% Emotion nodes: arrow labels show emotion category; node boxes show numeric values.
181
+ G -->|Anger| H["0.08018"]
182
+ G -->|Disgust| I["0.01526"]
183
+ G -->|Fear| J["0.60187"]
184
+ G -->|Joy| K["0.00411"]
185
+ G -->|Neutral| L["0.02194"]
186
+ G -->|Sadness| M["1.0"]
187
+ G -->|Surprise| N["0.02158"]
188
+
189
+ %% Style the Neutral and Positive sentiment arrows with a lighter stroke.
190
+ linkStyle 5 stroke:#cccccc, stroke-width:1px;
191
+ linkStyle 7 stroke:#cccccc, stroke-width:1px;
192
+
193
+ ```
194
+