Skip to content

Commit 67a13a0

Browse files
committed
Add requirements.txt and update README with dependency installation instructions
1 parent 5b46d0c commit 67a13a0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
Author: Sahand Farhoodi ([email protected], [email protected])
33

44
In this project, we develop a bi-directional LSTM model for word segmentation. For now, these models are trained for Thai and Burmese.
5+
### Install dependencies
56

7+
```bash
8+
pip install -r requirements.txt
9+
```
610
### Quick start
711
* **Use a pre-trained model:** To segment an arbitrary line go to file `train_language.py` where `language` is the language you want to use. For example, if the arbitrary line is in Thai, you should use the file `train_thai.py`. Over there, find comment `# Choose one of the saved models to use`. Everything before this line is for training a new model and can be ignored. After this comment, you can use the function `pick_lstm_model` to choose the model you want to use for segmentation:
812

requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tensorflow>=2.0
2+
numpy
3+
scikit-learn
4+
PyICU
5+
tqdm
6+
matplotlib
7+
deepcut
8+
bayesian-optimization

0 commit comments

Comments
 (0)