Commit
·
29f930c
1
Parent(s):
0e8d02a
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
-
thumbnail:
|
| 4 |
tags:
|
| 5 |
- keytotext
|
| 6 |
- k2t
|
|
@@ -8,26 +8,35 @@ tags:
|
|
| 8 |
license: mit
|
| 9 |
datasets:
|
| 10 |
- WebNLG
|
| 11 |
-
- Dart
|
| 12 |
metrics:
|
| 13 |
- NLG
|
| 14 |
-
model-index:
|
| 15 |
-
- name: t5-small
|
| 16 |
-
results:
|
| 17 |
-
- task:
|
| 18 |
-
type: keywords-to-sentences
|
| 19 |
-
name: Keywords to Sentences
|
| 20 |
-
dataset:
|
| 21 |
-
type: common_voice # Required. Example: common_voice. Use dataset id from https://hf.co/datasets
|
| 22 |
-
name: Common Voice # Required. Example: Common Voice zh-CN
|
| 23 |
-
args: zh-CN # Optional. Example: zh-CN
|
| 24 |
-
metrics:
|
| 25 |
-
- type: wer # Required. Example: wer
|
| 26 |
-
value: 20.90 # Required. Example: 20.90
|
| 27 |
-
name: Test WER # Optional. Example: Test WER
|
| 28 |
-
args: max_order # Optional. Example for BLEU: max_order
|
| 29 |
---
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language: en
|
| 3 |
+
thumbnail: Keywords to Sentences
|
| 4 |
tags:
|
| 5 |
- keytotext
|
| 6 |
- k2t
|
|
|
|
| 8 |
license: mit
|
| 9 |
datasets:
|
| 10 |
- WebNLG
|
| 11 |
+
- Dart
|
| 12 |
metrics:
|
| 13 |
- NLG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
+
# keytotext
|
| 16 |
+

|
| 17 |
+
Idea is to build a model which will take keywords as inputs and generate sentences as outputs.
|
| 18 |
+
### Keytotext is powered by Huggingface 🤗
|
| 19 |
+
[](https://pypi.org/project/keytotext/)
|
| 20 |
+
[](https://pepy.tech/project/keytotext)
|
| 21 |
+
[](https://colab.research.google.com/github/gagan3012/keytotext/blob/master/Examples/K2T.ipynb)
|
| 22 |
+
[](https://share.streamlit.io/gagan3012/keytotext/UI/app.py)
|
| 23 |
+
## Model:
|
| 24 |
+
Keytotext is based on the Amazing T5 Model:
|
| 25 |
+
- `k2t`: [Model](https://huggingface.co/gagan3012/k2t)
|
| 26 |
+
- `k2t-tiny`: [Model](https://huggingface.co/gagan3012/k2t-tiny)
|
| 27 |
+
- `k2t-base`: [Model](https://huggingface.co/gagan3012/k2t-base)
|
| 28 |
+
Training Notebooks can be found in the [`Training Notebooks`](https://github.com/gagan3012/keytotext/tree/master/Training%20Notebooks) Folder
|
| 29 |
+
## Usage:
|
| 30 |
+
Example usage: [](https://colab.research.google.com/github/gagan3012/keytotext/blob/master/Examples/K2T.ipynb)
|
| 31 |
+
Example Notebooks can be found in the [`Notebooks`](https://github.com/gagan3012/keytotext/tree/master/Examples) Folder
|
| 32 |
+
```
|
| 33 |
+
pip install keytotext
|
| 34 |
+
```
|
| 35 |
+

|
| 36 |
+
## UI:
|
| 37 |
+
UI: [](https://share.streamlit.io/gagan3012/keytotext/UI/app.py)
|
| 38 |
+
```
|
| 39 |
+
pip install streamlit-tags
|
| 40 |
+
```
|
| 41 |
+
This uses a custom streamlit component built by me: [GitHub](https://github.com/gagan3012/streamlit-tags)
|
| 42 |
+

|