Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
ArXiv:
Libraries:
Datasets
License:
zdy023 commited on
Commit
35a15b7
·
unverified ·
1 Parent(s): 08532aa

ver Dec6th

Browse files

added requirements.txt-s

Changelog CHANGED
@@ -1,3 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  2023-12-18 Danyang Zhang <zhang-dy20@sjtu.edu.cn>
2
 
3
  v1.3
 
1
+ 2024-12-06 Danyang Zhang <zhang-dy20@sjtu.edu.cn>
2
+
3
+ v1.4
4
+
5
+ Repacked the replay data.
6
+
7
+ * wikihow.data.tar.xz.00
8
+ * wikihow.data.tar.xz.01
9
+ * wikihow.data.tar.xz.sha256
10
+
11
+ Added requirements.txt-s for mitmproxy and InstructionRewritingWrapper.
12
+
13
+ * requirements-mitm.txt
14
+ * requirements-instruction_rewriting.txt
15
+
16
  2023-12-18 Danyang Zhang <zhang-dy20@sjtu.edu.cn>
17
 
18
  v1.3
README.md CHANGED
@@ -50,6 +50,20 @@ cat wikihow.data.tar.xz.00 wikihow.data.tar.xz.01 >wikihow.data.tar.xz
50
  The SHA256 checksums are provided in `wikihow.data.tar.xz.sha256` to check the
51
  integrity.
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  To run the script:
54
 
55
  ```sh
@@ -74,6 +88,18 @@ public patterns (`pattern-*.txt`). The annotations are collected via
74
  [doccano](https://doccano.github.io/doccano/). The patterns are parsed by
75
  [`sentence_pattern.py`](instruction_rewriting/sentence_pattern.py).
76
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  ### Details of Sub-Tasks
78
 
79
  WikiHow taks are crafted from 16 types of sub-tasks:
 
50
  The SHA256 checksums are provided in `wikihow.data.tar.xz.sha256` to check the
51
  integrity.
52
 
53
+ To set up the environment for mitmproxy server:
54
+
55
+ ```sh
56
+ pip install -r requirements-mitm.txt
57
+ # Then you also need to set up JRE 11.0
58
+
59
+ # or comment out the PyPI parts in the file and uncomment the conda parts
60
+ conda create -n mitmproxy --file requirements-mitm.txt
61
+ # OpenJDK-11.0.13 will be installed automatically
62
+ ```
63
+
64
+ The environment for mitmproxy server can be independent of the environment for
65
+ Mobile-Env.
66
+
67
  To run the script:
68
 
69
  ```sh
 
88
  [doccano](https://doccano.github.io/doccano/). The patterns are parsed by
89
  [`sentence_pattern.py`](instruction_rewriting/sentence_pattern.py).
90
 
91
+ To use `InstructionRewritingWrapper`, NLTK and lemminflect is needed. You can
92
+ install them through:
93
+
94
+ ```sh
95
+ pip install -r requirements-instruction_rewriting.txt
96
+ python -m nltk.downloader popular
97
+ ```
98
+
99
+ If your data is not downloaded into a common place, you may need to set
100
+ `NLTK_DATA` environment variable. See [NLTK's
101
+ documents](https://www.nltk.org/data.html) for details.
102
+
103
  ### Details of Sub-Tasks
104
 
105
  WikiHow taks are crafted from 16 types of sub-tasks:
instruction_rewriting/__init__.py ADDED
File without changes
requirements-instruction_rewriting.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ nltk==3.8.1
2
+ lemminflect==0.2.3
requirements-mitm.txt ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PyPI version
2
+ ## pip install -r requirments.txt
3
+ asgiref==3.5.2
4
+ blinker==1.4
5
+ blis==0.7.8
6
+ Brotli==1.0.9
7
+ catalogue==2.0.8
8
+ certifi==2023.7.22
9
+ cffi==1.15.1
10
+ charset-normalizer==2.1.0
11
+ click==8.1.3
12
+ coloredlogs==15.0.1
13
+ cryptography==36.0.2
14
+ cssselect==1.1.0
15
+ cymem==2.0.6
16
+ Cython==0.29.32
17
+ faiss-cpu==1.7.2
18
+ filelock==3.8.0
19
+ Flask==2.0.3
20
+ flatbuffers==2.0
21
+ h11==0.13.0
22
+ h2==4.1.0
23
+ hpack==4.0.0
24
+ huggingface-hub==0.8.1
25
+ humanfriendly==10.0
26
+ hyperframe==6.0.1
27
+ idna==3.3
28
+ itsdangerous==2.1.2
29
+ Jinja2==3.1.2
30
+ joblib==1.1.0
31
+ kaitaistruct==0.9
32
+ langcodes==3.3.0
33
+ ldap3==2.9.1
34
+ lightgbm==3.3.2
35
+ lxml==4.9.1
36
+ MarkupSafe==2.1.1
37
+ mitmproxy==8.0.0
38
+ mkl-fft==1.3.1
39
+ mkl-random==1.2.2
40
+ mkl-service==2.4.0
41
+ mpmath==1.2.1
42
+ msgpack==1.0.4
43
+ murmurhash==1.0.8
44
+ nmslib==2.1.1
45
+ numpy==1.23.2
46
+ olefile==0.46
47
+ onnxruntime==1.12.1
48
+ packaging==21.3
49
+ pandas==1.4.3
50
+ passlib==1.7.4
51
+ pathy==0.6.2
52
+ Pillow==7.1.2
53
+ preshed==3.0.7
54
+ protobuf==3.19.4
55
+ psutil==5.8.0
56
+ publicsuffix2==2.20191221
57
+ pyasn1==0.4.8
58
+ pybind11==2.6.1
59
+ pycparser==2.21
60
+ pydantic==1.9.2
61
+ pyjnius==1.4.2
62
+ pyOpenSSL==22.0.0
63
+ pyparsing==3.0.9
64
+ pyperclip==1.8.2
65
+ pyserini==0.17.1
66
+ python-dateutil==2.8.2
67
+ pytz==2022.2.1
68
+ PyYAML==6.0
69
+ regex==2022.8.17
70
+ requests==2.28.1
71
+ ruamel.yaml==0.17.21
72
+ ruamel.yaml.clib==0.2.6
73
+ scikit-learn==1.1.2
74
+ scipy==1.9.0
75
+ sentencepiece==0.1.97
76
+ six==1.16.0
77
+ smart-open==5.2.1
78
+ sortedcontainers==2.4.0
79
+ spacy==3.4.1
80
+ spacy-legacy==3.0.10
81
+ spacy-loggers==1.0.3
82
+ srsly==2.4.4
83
+ sympy==1.10.1
84
+ thinc==8.1.0
85
+ threadpoolctl==3.1.0
86
+ tokenizers==0.12.1
87
+ torch==1.8.1
88
+ torchaudio==0.8.1
89
+ torchvision==0.9.1
90
+ tornado==6.2
91
+ tqdm==4.64.0
92
+ transformers==4.21.1
93
+ typer==0.4.2
94
+ typing_extensions==4.3.0
95
+ urllib3==1.26.11
96
+ urwid==2.1.2
97
+ wasabi==0.10.1
98
+ Werkzeug==2.2.2
99
+ wsproto==1.1.0
100
+ zstandard==0.17.0
101
+
102
+ # Conda version
103
+ ## conda create -n mitmproxy --file requirments.txt
104
+ #_libgcc_mutex=0.1=main
105
+ #_openmp_mutex=5.1=1_gnu
106
+ #asgiref=3.5.2=pypi_0
107
+ #blas=1.0=mkl
108
+ #blinker=1.4=pypi_0
109
+ #blis=0.7.8=pypi_0
110
+ #brotli=1.0.9=pypi_0
111
+ #bzip2=1.0.8=h7f98852_4
112
+ #ca-certificates=2023.05.30=h06a4308_0
113
+ #catalogue=2.0.8=pypi_0
114
+ #certifi=2023.7.22=py38h06a4308_0
115
+ #cffi=1.15.1=pypi_0
116
+ #charset-normalizer=2.1.0=pypi_0
117
+ #click=8.1.3=pypi_0
118
+ #coloredlogs=15.0.1=pypi_0
119
+ #cryptography=36.0.2=pypi_0
120
+ #cssselect=1.1.0=pyhd3eb1b0_0
121
+ #cudatoolkit=11.1.1=ha002fc5_10
122
+ #cymem=2.0.6=pypi_0
123
+ #cython=0.29.32=pypi_0
124
+ #dbus=1.13.18=hb2f20db_0
125
+ #expat=2.4.9=h6a678d5_0
126
+ #faiss-cpu=1.7.2=py3.8_h2a577fa_0_cpu
127
+ #ffmpeg=4.3=hf484d3e_0
128
+ #filelock=3.8.0=pypi_0
129
+ #flask=2.0.3=pypi_0
130
+ #flatbuffers=2.0=pypi_0
131
+ #freetype=2.10.4=h0708190_1
132
+ #glib=2.69.1=h4ff587b_1
133
+ #gmp=6.2.1=h58526e2_0
134
+ #gnutls=3.6.13=h85f3911_1
135
+ #h11=0.13.0=pypi_0
136
+ #h2=4.1.0=pypi_0
137
+ #hpack=4.0.0=pypi_0
138
+ #huggingface-hub=0.8.1=pypi_0
139
+ #humanfriendly=10.0=pypi_0
140
+ #hyperframe=6.0.1=pypi_0
141
+ #icu=58.2=he6710b0_3
142
+ #idna=3.3=pypi_0
143
+ #intel-openmp=2021.4.0=h06a4308_3561
144
+ #itsdangerous=2.1.2=pypi_0
145
+ #jinja2=3.1.2=pypi_0
146
+ #joblib=1.1.0=pypi_0
147
+ #jpeg=9b=h024ee3a_2
148
+ #kaitaistruct=0.9=pypi_0
149
+ #lame=3.100=h7f98852_1001
150
+ #langcodes=3.3.0=pypi_0
151
+ #ld_impl_linux-64=2.38=h1181459_1
152
+ #ldap3=2.9.1=pypi_0
153
+ #libfaiss=1.7.2=h2bc3f7f_0_cpu
154
+ #libffi=3.3=he6710b0_2
155
+ #libgcc-ng=11.2.0=h1234567_1
156
+ #libgomp=11.2.0=h1234567_1
157
+ #libiconv=1.17=h166bdaf_0
158
+ #libpng=1.6.37=h21135ba_2
159
+ #libstdcxx-ng=11.2.0=h1234567_1
160
+ #libtiff=4.1.0=h2733197_1
161
+ #libuv=1.43.0=h7f98852_0
162
+ #libxcb=1.15=h7f8727e_0
163
+ #libxml2=2.9.14=h74e7548_0
164
+ #libxslt=1.1.35=h4e12654_0
165
+ #lightgbm=3.3.2=pypi_0
166
+ #lxml=4.9.1=py38h1edc446_0
167
+ #lz4-c=1.9.3=h9c3ff4c_1
168
+ #markupsafe=2.1.1=pypi_0
169
+ #mitmproxy=8.0.0=pypi_0
170
+ #mkl=2021.4.0=h06a4308_640
171
+ #mkl-service=2.4.0=py38h95df7f1_0
172
+ #mkl_fft=1.3.1=py38h8666266_1
173
+ #mkl_random=1.2.2=py38h1abd341_0
174
+ #mpmath=1.2.1=pypi_0
175
+ #msgpack=1.0.4=pypi_0
176
+ #murmurhash=1.0.8=pypi_0
177
+ #ncurses=6.3=h5eee18b_3
178
+ #nettle=3.6=he412f7d_0
179
+ #ninja=1.11.0=h924138e_0
180
+ #nmslib=2.1.1=pypi_0
181
+ #numpy=1.23.2=pypi_0
182
+ #numpy-base=1.23.1=py38ha15fc14_0
183
+ #olefile=0.46=pyh9f0ad1d_1
184
+ #onnxruntime=1.12.1=pypi_0
185
+ #openh264=2.1.1=h780b84a_0
186
+ #openjdk=11.0.13=h87a67e3_0
187
+ #openssl=1.1.1v=h7f8727e_0
188
+ #packaging=21.3=pypi_0
189
+ #pandas=1.4.3=pypi_0
190
+ #passlib=1.7.4=pypi_0
191
+ #pathy=0.6.2=pypi_0
192
+ #pcre=8.45=h295c915_0
193
+ #pillow=7.1.2=py38hb39fc2d_0
194
+ #pip=22.1.2=py38h06a4308_0
195
+ #preshed=3.0.7=pypi_0
196
+ #protobuf=3.19.4=pypi_0
197
+ #publicsuffix2=2.20191221=pypi_0
198
+ #pyasn1=0.4.8=pypi_0
199
+ #pybind11=2.6.1=pypi_0
200
+ #pycparser=2.21=pypi_0
201
+ #pydantic=1.9.2=pypi_0
202
+ #pyjnius=1.4.2=pypi_0
203
+ #pyopenssl=22.0.0=pypi_0
204
+ #pyparsing=3.0.9=pypi_0
205
+ #pyperclip=1.8.2=pypi_0
206
+ #pyserini=0.17.1=pypi_0
207
+ #python=3.8.13=h12debd9_0
208
+ #python-dateutil=2.8.2=pypi_0
209
+ #python_abi=3.8=2_cp38
210
+ #pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0
211
+ #pytz=2022.2.1=pypi_0
212
+ #pyyaml=6.0=pypi_0
213
+ #readline=8.1.2=h7f8727e_1
214
+ #regex=2022.8.17=pypi_0
215
+ #requests=2.28.1=pypi_0
216
+ #ruamel-yaml=0.17.21=pypi_0
217
+ #ruamel-yaml-clib=0.2.6=pypi_0
218
+ #scikit-learn=1.1.2=pypi_0
219
+ #scipy=1.9.0=pypi_0
220
+ #sentencepiece=0.1.97=pypi_0
221
+ #setuptools=61.2.0=py38h06a4308_0
222
+ #six=1.16.0=pyh6c4a22f_0
223
+ #smart-open=5.2.1=pypi_0
224
+ #sortedcontainers=2.4.0=pypi_0
225
+ #spacy=3.4.1=pypi_0
226
+ #spacy-legacy=3.0.10=pypi_0
227
+ #spacy-loggers=1.0.3=pypi_0
228
+ #sqlite=3.39.2=h5082296_0
229
+ #srsly=2.4.4=pypi_0
230
+ #sympy=1.10.1=pypi_0
231
+ #thinc=8.1.0=pypi_0
232
+ #threadpoolctl=3.1.0=pypi_0
233
+ #tk=8.6.12=h1ccaba5_0
234
+ #tokenizers=0.12.1=pypi_0
235
+ #torchaudio=0.8.1=py38
236
+ #torchvision=0.9.1=py38_cu111
237
+ #tornado=6.2=pypi_0
238
+ #tqdm=4.64.0=pypi_0
239
+ #transformers=4.21.1=pypi_0
240
+ #typer=0.4.2=pypi_0
241
+ #typing_extensions=4.3.0=pyha770c72_0
242
+ #urllib3=1.26.11=pypi_0
243
+ #urwid=2.1.2=pypi_0
244
+ #wasabi=0.10.1=pypi_0
245
+ #werkzeug=2.2.2=pypi_0
246
+ #wheel=0.37.1=pyhd3eb1b0_0
247
+ #wsproto=1.1.0=pypi_0
248
+ #xz=5.2.5=h7f8727e_1
249
+ #zlib=1.2.12=h7f8727e_2
250
+ #zstandard=0.17.0=pypi_0
251
+ #zstd=1.4.9=ha95c52a_0