Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,109 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🧠 E&C Model Interactive Platform
|
| 2 |
-
## Entrenchment & Conventionalization Visual Demonstration
|
| 3 |
|
| 4 |
-
This
|
| 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 |
-
|
| 13 |
|
| 14 |
-
- Entrenchment curve (E)
|
| 15 |
-
- Conventionalization curve (C)
|
| 16 |
-
- Frequency-driven curve
|
| 17 |
-
-
|
| 18 |
-
-
|
| 19 |
|
| 20 |
---
|
| 21 |
|
| 22 |
### 🔹 2. Two-Expression Comparison
|
| 23 |
-
Compare two expressions
|
| 24 |
|
| 25 |
-
- Entrenchment curves
|
| 26 |
-
- Conventionalization curves
|
| 27 |
-
-
|
| 28 |
-
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
- Frequency-based explanations
|
| 32 |
|
| 33 |
---
|
| 34 |
|
| 35 |
-
#
|
| 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 |
-
|
| 42 |
-
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
|
|
|
| 49 |
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
---
|
| 52 |
|
| 53 |
# 🎯 Purpose
|
| 54 |
|
| 55 |
-
This
|
| 56 |
|
| 57 |
-
-
|
| 58 |
-
-
|
| 59 |
-
-
|
| 60 |
-
-
|
| 61 |
-
- Educational presentations
|
| 62 |
-
-
|
| 63 |
|
| 64 |
-
It
|
| 65 |
|
| 66 |
---
|
| 67 |
|
| 68 |
# 🛠️ Tech Stack
|
| 69 |
|
| 70 |
-
-
|
| 71 |
-
-
|
| 72 |
-
-
|
| 73 |
-
-
|
| 74 |
-
-
|
| 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 |
-
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
-
### **
|
| 97 |
-
|
|
|
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
---
|
| 105 |
|
| 106 |
-
# 📚
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
---
|
| 125 |
|
| 126 |
# ❤️ Acknowledgements
|
| 127 |
|
| 128 |
-
This
|
| 129 |
-
|
| 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!
|
|
|