Spaces:
Sleeping
Sleeping
johaunh
commited on
Commit
·
7e0f94e
1
Parent(s):
7ffa603
Update utils
Browse files
README.md
CHANGED
@@ -11,14 +11,22 @@ Using large language models (ChatGPT) to automatically construct a knowledge gra
|
|
11 |
|
12 |
## Usage
|
13 |
|
14 |
-
###
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
```
|
19 |
python main.py
|
20 |
```
|
21 |
|
|
|
|
|
22 |
### Within a `python` IDE
|
23 |
|
24 |
Import the primary pipeline method using
|
|
|
11 |
|
12 |
## Usage
|
13 |
|
14 |
+
### Gradio app
|
15 |
|
16 |
+
#### Remotely
|
17 |
+
|
18 |
+
Visit the [Text2KG HuggingFace Space](https://huggingface.co/spaces/jhatchett/Text2KG).
|
19 |
+
|
20 |
+
#### Locally
|
21 |
+
|
22 |
+
Clone this repository, and then use the command
|
23 |
|
24 |
```
|
25 |
python main.py
|
26 |
```
|
27 |
|
28 |
+
in the repository's directory.
|
29 |
+
|
30 |
### Within a `python` IDE
|
31 |
|
32 |
Import the primary pipeline method using
|
utils.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import nltk
|
2 |
|
|
|
3 |
nltk.download("stopwords")
|
4 |
|
5 |
import re
|
|
|
1 |
import nltk
|
2 |
|
3 |
+
nltk.download("punkt")
|
4 |
nltk.download("stopwords")
|
5 |
|
6 |
import re
|