SorrelC commited on
Commit
f25a824
Β·
verified Β·
1 Parent(s): 678d0df

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -16
README.md CHANGED
@@ -33,7 +33,7 @@ Keyword extraction is the automated process of identifying the most important an
33
 
34
  This tool allows you to:
35
 
36
- - **Compare 4 different keyword extraction models** side-by-side
37
  - **Visualise results** with colour-coded relevance scores
38
  - **See keywords highlighted** directly in your source text
39
  - **Adjust parameters** like the number of keywords and phrase length (n-grams)
@@ -41,13 +41,18 @@ This tool allows you to:
41
  - **No installation required** β€” runs entirely in your browser
42
 
43
  ### Available Models
44
-
45
- | Model | Best For | How It Works |
46
- |-------|----------|--------------|
47
- | **YAKE** | Short texts, multilingual content | Statistical approach requiring no training data |
48
- | **TF-IDF with Cosine Similarity** | Finding document-specific keywords | Identifies words most representative of the document |
49
- | **RAKE-NLTK** | Quick phrase extraction | Classic algorithm optimised for multi-word phrases |
50
- | **TextRank** | Extracting key concepts | Graph-based ranking inspired by Google's PageRank |
 
 
 
 
 
51
 
52
  ## πŸš€ How to Use
53
 
@@ -83,7 +88,7 @@ The tool provides three types of output:
83
  1. **Summary** β€” Overview of how many keywords were found and the average relevance score
84
  2. **Highlighted Text** β€” Your original text with keywords colour-coded by relevance:
85
  - 🟒 **Green** = High relevance (70%+)
86
- - 🟑 **Yellow** = Medium relevance (40-70%)
87
  - πŸ”΄ **Red** = Low relevance (<40%)
88
  3. **Keyword Table** β€” Ranked list of all extracted keywords with scores and visual relevance bars
89
 
@@ -120,23 +125,26 @@ This tool is designed for:
120
  Built with:
121
  - [Gradio](https://gradio.app/) for the web interface
122
  - [YAKE](https://github.com/LIAAD/yake) for statistical keyword extraction
123
- - [scikit-learn](https://scikit-learn.org/) for TF-IDF implementation
124
- - [RAKE-NLTK](https://github.com/csurfer/rake-nltk) for rapid keyword extraction
125
- - [NetworkX](https://networkx.org/) for TextRank graph analysis
126
  - [NLTK](https://www.nltk.org/) for text processing utilities
127
 
128
  ## πŸ“š Learn More
129
 
130
  - **YAKE**: [Yet Another Keyword Extractor](https://github.com/LIAAD/yake)
131
  - **TF-IDF**: [Term Frequency-Inverse Document Frequency](https://scikit-learn.org/stable/modules/feature_extraction.html#tfidf-term-weighting)
132
- - **RAKE**: [Rapid Automatic Keyword Extraction](https://github.com/csurfer/rake-nltk)
133
- - **TextRank**: [Original Paper (PDF)](https://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf)
134
-
 
 
 
135
  ## πŸ™ Acknowledgements
136
 
137
  This **Keyword Extraction Explorer Tool** was created as part of the [Digital Scholarship at Oxford (DiSc)](https://digitalscholarship.web.ox.ac.uk/) funded research project: *Extracting Keywords from Crowdsourced Collections*.
138
 
139
- The code for this tool was developed with the assistance of Claude Opus 4.
140
 
141
  ## πŸ“„ License
142
 
 
33
 
34
  This tool allows you to:
35
 
36
+ - **Compare 6 different keyword extraction models**
37
  - **Visualise results** with colour-coded relevance scores
38
  - **See keywords highlighted** directly in your source text
39
  - **Adjust parameters** like the number of keywords and phrase length (n-grams)
 
41
  - **No installation required** β€” runs entirely in your browser
42
 
43
  ### Available Models
44
+ All six methods are statistical or graph-based: they read only your text, need no training data, and run entirely on your own machine.
45
+
46
+ | Model | Type | How It Works |
47
+ |-------|------|--------------|
48
+ | **YAKE** | Statistical | Scores words using simple text features (frequency, position, casing, context). Works well on short texts and multiple languages. |
49
+ | **TF-IDF** | Statistical | Picks words that are common in your text but rare in general β€” the ones that make it distinctive. A dependable baseline. |
50
+ | **TopicRank** | Graph-based (pke) | Groups similar words into topics, ranks the topics, and picks one phrase per topic. Reduces near-duplicates. |
51
+ | **MultipartiteRank** | Graph-based (pke) | A refinement of TopicRank that keeps individual phrases while respecting topics. The strongest performer in our tests. |
52
+ | **PositionRank** | Graph-based (pke) | Gives extra weight to words appearing early in the text. Useful for structured writing like articles and abstracts. |
53
+ | **TextRank** | Graph-based (pke) | Builds a network of co-occurring words and ranks them using the same idea as Google's PageRank. |
54
+
55
+ The four graph-based methods are provided by the [pke](https://github.com/boudinfl/pke) (Python Keyphrase Extraction) library, and are among the methods evaluated in the *Extracting Keywords from Crowdsourced Collections* project.
56
 
57
  ## πŸš€ How to Use
58
 
 
88
  1. **Summary** β€” Overview of how many keywords were found and the average relevance score
89
  2. **Highlighted Text** β€” Your original text with keywords colour-coded by relevance:
90
  - 🟒 **Green** = High relevance (70%+)
91
+ - 🟠 **Amber** = Medium relevance (40-70%)
92
  - πŸ”΄ **Red** = Low relevance (<40%)
93
  3. **Keyword Table** β€” Ranked list of all extracted keywords with scores and visual relevance bars
94
 
 
125
  Built with:
126
  - [Gradio](https://gradio.app/) for the web interface
127
  - [YAKE](https://github.com/LIAAD/yake) for statistical keyword extraction
128
+ - [scikit-learn](https://scikit-learn.org/) for the TF-IDF implementation
129
+ - [pke](https://github.com/boudinfl/pke) for the graph-based methods (TopicRank, MultipartiteRank, PositionRank, TextRank)
130
+ - [spaCy](https://spacy.io/) for the linguistic preprocessing pke relies on
131
  - [NLTK](https://www.nltk.org/) for text processing utilities
132
 
133
  ## πŸ“š Learn More
134
 
135
  - **YAKE**: [Yet Another Keyword Extractor](https://github.com/LIAAD/yake)
136
  - **TF-IDF**: [Term Frequency-Inverse Document Frequency](https://scikit-learn.org/stable/modules/feature_extraction.html#tfidf-term-weighting)
137
+ - **TopicRank**: [Bougouin et al. (2013)](https://aclanthology.org/I13-1062/)
138
+ - **MultipartiteRank**: [Boudin (2018)](https://aclanthology.org/N18-2105/)
139
+ - **PositionRank**: [Florescu & Caragea (2017)](https://aclanthology.org/P17-1102/)
140
+ - **TextRank**: [Mihalcea & Tarau (2004)](https://aclanthology.org/W04-3252/)
141
+ - **pke library**: [Python Keyphrase Extraction](https://github.com/boudinfl/pke)
142
+
143
  ## πŸ™ Acknowledgements
144
 
145
  This **Keyword Extraction Explorer Tool** was created as part of the [Digital Scholarship at Oxford (DiSc)](https://digitalscholarship.web.ox.ac.uk/) funded research project: *Extracting Keywords from Crowdsourced Collections*.
146
 
147
+ The code for this tool was developed with the assistance of Claude Opus 4 and updated with Claude Opus 4.8 (Anthropic).
148
 
149
  ## πŸ“„ License
150