Skip to content
Snippets Groups Projects
README.md 1.53 KiB
Newer Older
Lucas Schons's avatar
Lucas Schons committed
# Wiki Rasa

### Installation

2 Optionen:

1. Option: Python 3.6.6 installiert haben oder downgraden von 3.7 (wird von Tensorflow noch nicht unterstützt)  
Dann rasa core mit ```pip install rasa_core``` und rasa nlu mit ```pip install rasa_nlu``` installieren.
2. Option: Anaconda installieren, eine Python 3.6.6 Umgebung erstellen und dann rasa installieren.

### Example Project zum laufen bringen

[stories.md](https://github.com/RasaHQ/rasa_core/blob/master/examples/moodbot/data/stories.md), [domain.yml](https://github.com/RasaHQ/rasa_core/blob/master/examples/moodbot/domain.yml), [nlu.md](https://github.com/RasaHQ/rasa_core/blob/master/examples/moodbot/data/nlu.md) downloaden.  
```nlu_config.yml```  mit folgendem Inhalt erstellen:
```{md}
language: en
pipeline: tensorflow_embedding
```

Dann kann das Modell trainiert werden mit:
```
# rasa core
python -m rasa_core.train -d domain.yml -s stories.md -o models/dialogue

# Natural Language processing 
python -m rasa_nlu.train -c nlu_config.yml --data nlu.md -o models --fixed_model_name nlu --project current --verbose
```
Danach kann man mit dem Bot reden mit:
```
python -m rasa_core.run -d models/dialogue -u models/current/nlu
```


David Fuhry's avatar
David Fuhry committed
# R Scripts
David Fuhry's avatar
David Fuhry committed
### PhysicistsList.R
David Fuhry's avatar
David Fuhry committed
Will crawl wikipedias [List of Physicists](https://en.wikipedia.org/wiki/List_of_physicists) for all physicist names and use that list to download the corresponding articles from the wikipedia api.
Will generate a csv containing the gathered articles in the data directory as well as a RDS object containing the data as binary.