kailinjiang commited on
Commit
fd9a21c
·
verified ·
1 Parent(s): 6750613

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## 🛠️ Requirements and Installation
2
+
3
+ ```text
4
+ # clone ICE
5
+ git clone https://github.com/Yofuria/ICE.git
6
+ cd ICE
7
+
8
+ # create conda env
9
+ conda create -n ICE python=3.10
10
+ conda activate ICE
11
+
12
+ # install package
13
+ pip install -r requirements.txt
14
+ ```
15
+
16
+ In **lines 32 and 33** of **` examples/run_knowedit_llama2.py`**, you need to download the **` punkt `** package.
17
+
18
+ - If your Internet **speed is fast** enough, you can **run the code directly** from the command line.
19
+
20
+ ```text
21
+ if __name__ == "__main__":
22
+ # If you have a slow Internet connection and can't download nltk quickly, comment these two lines and use the second method of Requirements and Installation in README.md
23
+ import nltk
24
+ nltk.download('punkt')
25
+ ```
26
+
27
+ - If your Internet **speed is slow**, **comment lines 32 and 33** and download punkt manually. And place it in the ICE environment directory you created, create a **nltk_data/tokenizers** folder, and **unpack punkt** into this directory.
28
+
29
+ <div align="center"> <img src="assets/punkt.png" width="650px"> </div>