joint-disfluency-detector-and-parser
joint-disfluency-detector-and-parser copied to clipboard
Trying to parse new sentences gives runtime error
When I run the parser with the default sentences in the best_models/raw_sentences.txt, it parses correctly. But when I make any change to those sentences or add any new sentence, it gives runtime error: return self.layer_norm(outputs + residual), attns_padded RuntimeError: The size of tensor a (51) must match the size of tensor b (38) at non-singleton dimension 0
using pytorch version: 1.8.1+cu101 python version: Python 3.7.10
Any idea about the issue? Can't we use the pretrained model (swbd_fisher_bert_Edev.0.9078) to parse our own sentence?
When I run the parser with the default sentences in the best_models/raw_sentences.txt, it parses correctly. But when I make any change to those sentences or add any new sentence, it gives runtime error: return self.layer_norm(outputs + residual), attns_padded RuntimeError: The size of tensor a (51) must match the size of tensor b (38) at non-singleton dimension 0
using pytorch version: 1.8.1+cu101 python version: Python 3.7.10
Any idea about the issue? Can't we use the pretrained model (swbd_fisher_bert_Edev.0.9078) to parse our own sentence?
For using the pre-trained model to label your own sentences, please check this repo!
For using the pre-trained model to label your own sentences, please check this repo!
Thanks for the pointer! Could you please add license information for this repo?