Update README.md
Browse files
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
|
| 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 |
-
|
| 46 |
-
|
|
| 47 |
-
|
|
| 48 |
-
| **
|
| 49 |
-
| **
|
| 50 |
-
| **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
-
|
| 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 |
-
- [
|
| 125 |
-
- [
|
| 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 |
-
- **
|
| 133 |
-
- **
|
| 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 |
|