diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 43 |
1 files changed, 40 insertions, 3 deletions
@@ -153,8 +153,45 @@ optional arguments: | |||
153 | 153 | ||
154 | Example; | 154 | Example; |
155 | 155 | ||
156 | ```bash | ||
157 | python WMD.py en bg bilingual_embeddings/en_to_bg.vec bilingual_embeddings/bg_to_en.vec wordnets/ready/en_to_bg.def wordnets/ready/bg_to_en.def all all | ||
158 | ``` | 156 | ``` |
157 | python WMD.py en bg bilingual_embeddings/en_to_bg.vec bilingual_embeddings/bg_to_en.vec wordnets/ready/en_to_bg.def wordnets/ready/bg_to_en.def wmd retrieval | ||
158 | ``` | ||
159 | |||
160 | Will run on English and Bulgarian definitions, using WMD for retrieval. | ||
161 | |||
162 | ### sentence_embedding.py - Sentence Embedding Representation | ||
163 | |||
164 | ``` | ||
165 | usage: sentence_embedding.py [-h] [-n INSTANCES] [-b] | ||
166 | source_lang target_lang source_vector | ||
167 | target_vector source_defs target_defs | ||
168 | {all,retrieval,matching} | ||
169 | |||
170 | align dictionaries using sentence embedding representation | ||
171 | |||
172 | positional arguments: | ||
173 | source_lang source language short name | ||
174 | target_lang target language short name | ||
175 | source_vector path of the source vector | ||
176 | target_vector path of the target vector | ||
177 | source_defs path of the source definitions | ||
178 | target_defs path of the target definitions | ||
179 | {all,retrieval,matching} | ||
180 | which paradigms to align with | ||
181 | |||
182 | optional arguments: | ||
183 | -h, --help show this help message and exit | ||
184 | -n INSTANCES, --instances INSTANCES | ||
185 | number of instances in each language to use | ||
186 | -b, --batch running in batch (store results in csv) or running a | ||
187 | single instance (output the results) | ||
188 | ``` | ||
189 | |||
190 | Example; | ||
191 | |||
192 | ``` | ||
193 | python sentence_embedding.py it ro bilingual_embeddings/it_to_ro.vec bilingual_embeddings/ro_to_it.vec wordnets/ready/it_to_ro.def wordnets/ready/ro_to_it.def matching | ||
194 | ``` | ||
195 | |||
196 | Will run on Italian and Romanian definitions, using sentence embedding representation for matching. | ||
159 | 197 | ||
160 | Will run on English and Bulgarian definitions, using WMD and SNK for matching and retrieval, for a total of 4 times. | ||