joint-disfluency-detector-and-parser icon indicating copy to clipboard operation
joint-disfluency-detector-and-parser copied to clipboard

Trying to parse new sentences gives runtime error

Open treena908 opened this issue 3 years ago • 2 comments

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?

treena908 avatar May 01 '21 04:05 treena908

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!

pariajm avatar May 02 '21 06:05 pariajm

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?

liwangd avatar May 04 '23 02:05 liwangd