File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,14 @@ Time for a hands on exersize!
2020First, download the Moby Dick text file from Project Gutenberg. You can clean it by stripping out unnecessary metadata and formatting.
2121
2222``` bash
23- # Enter the lab directory
24- cd Lab030CLI
25-
26- # Create a Conda environment called "moby-dick-bert" with Python 3.8
27- conda create -n moby-dick-bert python=3.8
2823
2924# Activate the environment
30- conda activate moby-dick-bert
31-
32- wget https://www.gutenberg.org/files/2701/2701-0.txt -O moby_dick.txt
33- ```
25+ conda activate exploit-ai
3426
35- To clean the text we will use clean-text a python tool.
27+ # Enter the lab directory
28+ cd ./flaskr/Lab030CLI
3629
37- ``` bash
38- pip install clean-text
39- pip install transformers torch
30+ wget https://www.gutenberg.org/files/2701/2701-0.txt -O moby_dick.txt
4031```
4132
4233Create the file called cleaner.py and put the following code into it and save it with your editor of choice.
You can’t perform that action at this time.
0 commit comments