mirror of
https://github.com/wassname/multifit.git
synced 2026-09-10 12:12:50 +08:00
Add dependencies
This commit is contained in:
@@ -24,8 +24,18 @@ At the end of this step, you should have the following directory structure insid
|
||||
The extracted data should be in the folder `wiki_extr` -> language name e.g.`en` (english), `fr` (french) `hi` (hindi) and so on.
|
||||
|
||||
## Create and Post Process WikiText
|
||||
|
||||
### Get the Dependencies
|
||||
|
||||
**Python Fire**: To install Python Fire with pip, run: `pip install fire`
|
||||
|
||||
To install Python Fire with conda, run: `conda install fire -c conda-forge`
|
||||
|
||||
**Moses Tokenizer**: To install Moses Tokenizer: `pip install -U sacremoses`
|
||||
|
||||
Use the Python script [create_wikitext.py](./create_wikitext.py) to process the extracted Wikipedia documents.
|
||||
|
||||
### Create and Post-Process
|
||||
If you used the automated shell script from previous step, this might look something like
|
||||
```bash
|
||||
python create_wikitext.py -i data/wiki_extr/hi -o data/hindi -l hi
|
||||
|
||||
Reference in New Issue
Block a user