Spaces:
Runtime error
Runtime error
kenichiro
commited on
Commit
·
b615e10
1
Parent(s):
926183f
commit
Browse files
README.md
CHANGED
@@ -1,67 +1,13 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
* Customization for your own use case is super easy. Just modify intents.json with possible patterns and responses and re-run the training (see below for more info).
|
12 |
-
|
13 |
-
In [this article](https://medium.com/@mlvictoriamaslova/nlp-based-chatbot-in-pytorch-bonus-flask-and-javascript-deployment-474c4e59ceff) on Medium I explain some NLP concepts that underlies building Chatbots.
|
14 |
-
|
15 |
---
|
16 |
|
17 |
-
|
18 |
-
## Installation
|
19 |
-
|
20 |
-
### Create an environment
|
21 |
-
|
22 |
-
Whatever you prefer (e.g. conda or venv)
|
23 |
-
|
24 |
-
```
|
25 |
-
mkdir myproject
|
26 |
-
$ cd myproject
|
27 |
-
$ python3 -m venv venv
|
28 |
-
```
|
29 |
-
|
30 |
-
### Activate it
|
31 |
-
|
32 |
-
Mac / Linux:
|
33 |
-
```
|
34 |
-
. venv/bin/activate
|
35 |
-
```
|
36 |
-
Windows:
|
37 |
-
|
38 |
-
```
|
39 |
-
venv\Scripts\activate
|
40 |
-
```
|
41 |
-
|
42 |
-
### Install PyTorch and dependencies
|
43 |
-
|
44 |
-
For Installation of PyTorch see official website.
|
45 |
-
|
46 |
-
You also need nltk:
|
47 |
-
```
|
48 |
-
pip install nltk
|
49 |
-
```
|
50 |
-
If you get an error during the first run, you also need to install nltk.tokenize.punkt: Run this once in your terminal:
|
51 |
-
|
52 |
-
```
|
53 |
-
$ python
|
54 |
-
>>> import nltk
|
55 |
-
>>> nltk.download('punkt')
|
56 |
-
```
|
57 |
-
|
58 |
-
### Usage
|
59 |
-
|
60 |
-
Run
|
61 |
-
```
|
62 |
-
python train.py
|
63 |
-
```
|
64 |
-
This will dump data.pth file. And then run
|
65 |
-
```
|
66 |
-
python chat.py
|
67 |
-
```
|
|
|
1 |
+
---
|
2 |
+
title: Clinical Segnemt
|
3 |
+
emoji: 🚑
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: yellow
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: 1.17.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
license: cc-by-3.0
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|