You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to execute the demo.py and main.py scripts but getting the following error in google colab notebook. can you please help me resolve this? and how can I test my own translation dataset?
@andyweizhao Thanks for your help. It worked for me. Can you please guide me for the steps to train for any language that is not on the current list e.g. Hindi, Arabic etc?
Can you please also explain the *.BAM & *.GBDD files with layers 8 and 12?
Thanks
Hi @andyweizhao,
I am trying to execute the demo.py and main.py scripts but getting the following error in google colab notebook. can you please help me resolve this? and how can I test my own translation dataset?
TypeError Traceback (most recent call last)
in <cell line: 7>()
5 lp='cs-en'
6
----> 7 xmoverscores = scorer.compute_xmoverscore(alignment, projection, bias, source, translations)
8 #, ngram=ngram, layer=layer, dropout_rate=dropout_rate, bs=batch_size)
9
2 frames
/content/score_utils_2.py in get_bert_embedding(all_sens, model, tokenizer, idf_dict, batch_size, device)
52 batch_embedding = bert_encode(model, padded_sens[i:i+batch_size],
53 attention_mask=mask[i:i+batch_size])
---> 54 batch_embedding = torch.stack(batch_embedding)
55 embeddings.append(batch_embedding)
56 del batch_embedding
TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not str
Thanks
The text was updated successfully, but these errors were encountered: