aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md43
1 files changed, 40 insertions, 3 deletions
diff --git a/README.md b/README.md
index a0a8952..da7fe5d 100644
--- a/README.md
+++ b/README.md
@@ -153,8 +153,45 @@ optional arguments:
153 153
154Example; 154Example;
155 155
156```bash
157python 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```
157python 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
160Will run on English and Bulgarian definitions, using WMD for retrieval.
161
162### sentence_embedding.py - Sentence Embedding Representation
163
164```
165usage: 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
170align dictionaries using sentence embedding representation
171
172positional 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
182optional 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
190Example;
191
192```
193python 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
196Will run on Italian and Romanian definitions, using sentence embedding representation for matching.
159 197
160Will run on English and Bulgarian definitions, using WMD and SNK for matching and retrieval, for a total of 4 times.