WENior commited on
Commit
0222c4e
·
verified ·
1 Parent(s): 306cb36

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -69
README.md CHANGED
@@ -1,109 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
1
  # 🧠 E&C Model Interactive Platform
2
- ## Entrenchment & Conventionalization Visual Demonstration
3
 
4
- This HuggingFace Space provides an interactive visualization of **Hans-Jörg Schmid’s Entrenchment & Conventionalization (E&C) Model**.
5
- It allows users to explore how **individual cognitive processes (Entrenchment)** and **community-level linguistic diffusion (Conventionalization)** jointly shape language usage patterns.
6
 
7
  ---
8
 
9
  # 🌟 Features
10
 
11
  ### 🔹 1. Single-Expression Analysis
12
- Input any expression (e.g., *kind of*, *内卷*, *sort of*) and view:
13
 
14
- - Entrenchment curve (E)
15
- - Conventionalization curve (C)
16
- - Frequency-driven curve shapes
17
- - Linguistic explanations
18
- - Automated summary based on E&C theory
19
 
20
  ---
21
 
22
  ### 🔹 2. Two-Expression Comparison
23
- Compare two expressions (e.g., *kind of* vs *sort of*):
24
 
25
- - Entrenchment curves overlay
26
- - Conventionalization curves overlay
27
- - Heatmap showing E-curve differences
28
- - Automatic expert interpretation:
29
- - Cognitive automation differences
30
- - Community adoption differences
31
- - Frequency-based explanations
32
 
33
  ---
34
 
35
- ### 🔹 3. Visualizations Included
36
- - Sigmoid-based Entrenchment model
37
- - Logistic-based Conventionalization model
38
- - Normalized heatmaps for differential processing
39
- - Styled card-based UI with gradient background
40
 
41
- > 📌 Note: The platform uses **mock frequencies** internally to ensure stable execution on HuggingFace.
42
- A real-corpus version (Wikipedia, BookCorpus, OSCAR, etc.) is available upon request.
 
 
43
 
44
- ---
 
45
 
46
- # 📸 Screenshot (示意图占位符)
47
 
48
- > *You can upload your Space screenshot here later.*
 
49
 
 
 
 
50
 
51
  ---
52
 
53
  # 🎯 Purpose
54
 
55
- This interactive tool is designed for:
56
 
57
- - Linguistics coursework
58
- - Cognitive linguistics demonstrations
59
- - Usage-based grammar exploration
60
- - Research visualization
61
- - Educational presentations
62
- - Translation and pragmatic analysis
63
 
64
- It helps users understand how **usage frequency drives linguistic stability**, aligning with Schmid’s E&C Model.
65
 
66
  ---
67
 
68
  # 🛠️ Tech Stack
69
 
70
- - **Python**
71
- - **Gradio (3.x)** — fully compatible with Spaces
72
- - **Matplotlib** — visual plotting
73
- - **NumPy** — curve generation
74
- - **Custom CSS** — card UI & gradient background
75
 
76
  ---
77
 
78
  # 📁 File Structure
79
- |-- app.py # Main application
80
- |-- requirements.txt # Dependencies
81
- |-- README.md # Project description (this file)
82
 
 
 
 
 
 
83
 
84
- # 📘 Theoretical Background
85
 
86
- ### **Entrenchment (E)**
87
- - Individual-level cognitive strengthening
88
- - Frequent expressions more automatic
89
- - Steeper E-curves represent stronger entrenchment
90
 
91
- ### **Conventionalization (C)**
92
- - Community-level diffusion
93
- - Widespread usage social norming
94
- - Faster adoption → earlier sigmoid rise
 
 
 
95
 
96
- ### **E&C Dynamic Loop**
97
- Schmid proposes that:
 
98
 
99
- > **E (individual repetition) reinforces C (social acceptance), and vice versa**,
100
- > forming a *self-energizing feedback loop* that stabilizes linguistic structures.
101
 
102
- This tool visualizes that mechanism directly.
 
 
 
103
 
104
  ---
105
 
106
- # 📚 References
107
 
108
  Schmid, H.-J. (2020).
109
  **The Dynamics of the Linguistic System: Usage, Conventionalization, and Entrenchment.**
@@ -111,20 +132,17 @@ Oxford University Press.
111
 
112
  ---
113
 
114
- # 🚀 Future Extensions (可选待开发功能)
115
-
116
- - Real-corpus frequency mode (Wikipedia, CC100, OSCAR)
117
- - Google Ngram-based historical adoption curves
118
- - Collostructional analysis integration
119
- - Semantic embedding–based similarity comparison
120
- - Interactive diffusion simulation (“language evolution game”)
121
 
122
- If you'd like these features added, feel free to ask!
 
 
 
 
123
 
124
  ---
125
 
126
  # ❤️ Acknowledgements
127
 
128
- This space was created to support linguistic visualization, cognitive linguistics education, and usage-based theory demonstration.
129
- Thanks for using this project!
130
-
 
1
+ ---
2
+ title: E&C Model Interactive Platform
3
+ emoji: 🧠
4
+ colorFrom: indigo
5
+ colorTo: blue
6
+ sdk: gradio
7
+ sdk_version: "3.44.0"
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
  # 🧠 E&C Model Interactive Platform
13
+ ### Entrenchment & Conventionalization Visual Demonstration
14
 
15
+ This Space provides an interactive visualization of **Hans-Jörg Schmid’s Entrenchment & Conventionalization (E&C) Model**, showing how **individual cognition (Entrenchment)** and **community diffusion (Conventionalization)** jointly shape linguistic behavior.
 
16
 
17
  ---
18
 
19
  # 🌟 Features
20
 
21
  ### 🔹 1. Single-Expression Analysis
22
+ Enter any expression (e.g., *kind of*, *内卷*, *sort of*) to visualize:
23
 
24
+ - Entrenchment curve (E)
25
+ - Conventionalization curve (C)
26
+ - Frequency-driven curve transformation
27
+ - Automatic linguistic explanation
28
+ - Summary based on Schmid’s E&C theory
29
 
30
  ---
31
 
32
  ### 🔹 2. Two-Expression Comparison
33
+ Compare two expressions:
34
 
35
+ - Overlaid Entrenchment curves
36
+ - Overlaid Conventionalization curves
37
+ - E-curve heatmap difference
38
+ - Auto-generated expert interpretation
39
+
40
+ This helps visualize how **usage frequency** affects cognitive automation and social adoption.
 
41
 
42
  ---
43
 
44
+ # 📊 Visual Components
 
 
 
 
45
 
46
+ - Sigmoid-shaped Entrenchment curves
47
+ - Logistic adoption curves for Conventionalization
48
+ - Heatmap showing differential entrenchment
49
+ - Clean card-style UI with gradient background
50
 
51
+ > **Note**: The current version uses *mock frequencies* for stable execution.
52
+ A real-corpus version (Wikipedia/BookCorpus/OSCAR) can be added later.
53
 
54
+ ---
55
 
56
+ # 📸 Screenshot (Optional)
57
+ Add your screenshot here in the future:
58
 
59
+ ```
60
+ [ Insert Screenshot Here ]
61
+ ```
62
 
63
  ---
64
 
65
  # 🎯 Purpose
66
 
67
+ This app is designed for:
68
 
69
+ - Cognitive linguistics courses
70
+ - Usage-based grammar visualization
71
+ - Pragmatics & discourse analysis
72
+ - Translation studies
73
+ - Educational presentations
74
+ - Linguistic research demonstrations
75
 
76
+ It shows how **usage entrenchment → conventionalization → linguistic stability**.
77
 
78
  ---
79
 
80
  # 🛠️ Tech Stack
81
 
82
+ - Python
83
+ - Gradio 3.x
84
+ - Matplotlib
85
+ - NumPy
86
+ - Custom CSS
87
 
88
  ---
89
 
90
  # 📁 File Structure
 
 
 
91
 
92
+ ```
93
+ app.py # Main Gradio application
94
+ requirements.txt # Dependencies
95
+ README.md # This documentation
96
+ ```
97
 
98
+ (Optional future files)
99
 
100
+ ```
101
+ data/
102
+ word_freq.csv # Optional: real corpus frequencies
103
+ ```
104
 
105
+ ---
106
+
107
+ # 📘 Theory: E&C Model Overview
108
+
109
+ ### **Entrenchment (E)** — Individual level
110
+ - Increased automaticity through repeated use
111
+ - Higher frequency → steeper curve
112
 
113
+ ### **Conventionalization (C)** — Community level
114
+ - Social diffusion and shared acceptance
115
+ - Faster rise → quicker normalization
116
 
117
+ ### **Dynamic Loop**
118
+ According to Schmid:
119
 
120
+ > **Individual repetition strengthens social convention;
121
+ > social convention increases repetition.**
122
+
123
+ This feedback loop stabilizes linguistic structures.
124
 
125
  ---
126
 
127
+ # 📚 Reference
128
 
129
  Schmid, H.-J. (2020).
130
  **The Dynamics of the Linguistic System: Usage, Conventionalization, and Entrenchment.**
 
132
 
133
  ---
134
 
135
+ # 🚀 Future Extensions
 
 
 
 
 
 
136
 
137
+ - Real-corpus frequency mode
138
+ - Historical diffusion curves (Google Ngram)
139
+ - Collostruction analysis
140
+ - Semantic similarity comparison
141
+ - Language evolution simulation
142
 
143
  ---
144
 
145
  # ❤️ Acknowledgements
146
 
147
+ This tool was created for linguistic visualization, cognitive linguistics education, and research demonstration.
148
+ Thank you for exploring the E&C Model Interactive Platform!