#!/bin/bash

for d in ../iwpt2020/berts/bert-base-??-cased; do l=$(echo "$d" | perl -pe 's/.*\/bert-base-(..)-cased$/$1/ or die "ERROR"'); o="wikibert-base-${l}-cased"; if [ -e "$o" ]; then echo "$o exists, skipping"; else echo "linking to $o"; mkdir "$o"; cd "$o"; ln -s ../../iwpt2020/berts/bert-base-${l}-cased/vocab.txt; ln -s ../../iwpt2020/berts/bert-base-${l}-cased/bert-base-${l}-cased.tar.gz wikibert-base-${l}-cased.tar.gz; cd ..; fi; done
