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
paraphrases = self.ps.generate_paraphrases(instance_for_onmt, topk=topk+1, edit_distance_cutoff=4, threshold=threshold)
File "/home/scan/DVSI/sscc/paraphrase_scorer.py", line 799, in generate_paraphrases
translation, mapping = choose_forward_translation(sentence, to, back, n=5)
File "/home/scan/DVSI/sscc/paraphrase_scorer.py", line 30, in choose_forward_translation
translations = to_translator.translate([sentence], n_best=n, return_from_mapping=True)[0]
File "/home/scan/DVSI/sscc/onmt_model.py", line 179, in translate
for batch in testData:
File "/usr/local/lib/python3.6/site-packages/torchtext/data/iterator.py", line 151, in iter
self.train)
File "/usr/local/lib/python3.6/site-packages/torchtext/data/batch.py", line 27, in init
setattr(self, name, field.process(batch, device=device, train=train))
File "/usr/local/lib/python3.6/site-packages/torchtext/data/field.py", line 188, in process
tensor = self.numericalize(padded, device=device, train=train)
File "/usr/local/lib/python3.6/site-packages/torchtext/data/field.py", line 308, in numericalize
arr = self.postprocessing(arr, None, train)
TypeError: make_src() takes 2 positional arguments but 3 were given
Do you know how to solve this problem???
The text was updated successfully, but these errors were encountered:
paraphrases = self.ps.generate_paraphrases(instance_for_onmt, topk=topk+1, edit_distance_cutoff=4, threshold=threshold)
File "/home/scan/DVSI/sscc/paraphrase_scorer.py", line 799, in generate_paraphrases
translation, mapping = choose_forward_translation(sentence, to, back, n=5)
File "/home/scan/DVSI/sscc/paraphrase_scorer.py", line 30, in choose_forward_translation
translations = to_translator.translate([sentence], n_best=n, return_from_mapping=True)[0]
File "/home/scan/DVSI/sscc/onmt_model.py", line 179, in translate
for batch in testData:
File "/usr/local/lib/python3.6/site-packages/torchtext/data/iterator.py", line 151, in iter
self.train)
File "/usr/local/lib/python3.6/site-packages/torchtext/data/batch.py", line 27, in init
setattr(self, name, field.process(batch, device=device, train=train))
File "/usr/local/lib/python3.6/site-packages/torchtext/data/field.py", line 188, in process
tensor = self.numericalize(padded, device=device, train=train)
File "/usr/local/lib/python3.6/site-packages/torchtext/data/field.py", line 308, in numericalize
arr = self.postprocessing(arr, None, train)
TypeError: make_src() takes 2 positional arguments but 3 were given
Do you know how to solve this problem???
The text was updated successfully, but these errors were encountered: