diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | demo.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -113,7 +113,7 @@ Bear in mind that this will require around 50 GB free space. The mapped embeddin | |||
113 | 113 | ||
114 | ## Quick Demo | 114 | ## Quick Demo |
115 | 115 | ||
116 | `demo.sh` is included, downloads data for 2 languages. | 116 | `demo.sh` is included, downloads data for 2 languages and runs WMD (Word Mover's Distance) and SNK (Sinkhorn Distance) methods in matching and retrieval paradigms. |
117 | 117 | ||
118 | ```bash | 118 | ```bash |
119 | ./demo.sh | 119 | ./demo.sh |
@@ -95,4 +95,4 @@ python "${ROOT}/vecmap/map_embeddings.py" --supervised \ | |||
95 | "${MAP_TO}/${source_lang}_to_${target_lang}.vec" \ | 95 | "${MAP_TO}/${source_lang}_to_${target_lang}.vec" \ |
96 | "${MAP_TO}/${target_lang}_to_${source_lang}.vec" > /dev/null 2>&1 | 96 | "${MAP_TO}/${target_lang}_to_${source_lang}.vec" > /dev/null 2>&1 |
97 | 97 | ||
98 | python "${ROOT}/WMD_matching.py" "${source_lang}" "${target_lang}" "${MAP_TO}/${source_lang}_to_${target_lang}.vec" "${MAP_TO}/${target_lang}_to_${source_lang}.vec" "${READY}/${source_lang}_to_${target_lang}.def" "${READY}/${target_lang}_to_${source_lang}.def" all | 98 | python "${ROOT}/WMD.py" "${source_lang}" "${target_lang}" "${MAP_TO}/${source_lang}_to_${target_lang}.vec" "${MAP_TO}/${target_lang}_to_${source_lang}.vec" "${READY}/${source_lang}_to_${target_lang}.def" "${READY}/${target_lang}_to_${source_lang}.def" all all |