Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T-BRNN-pre model error during prediction #68

Open
bhavitvyamalik opened this issue Jan 20, 2021 · 0 comments
Open

T-BRNN-pre model error during prediction #68

bhavitvyamalik opened this issue Jan 20, 2021 · 0 comments

Comments

@bhavitvyamalik
Copy link

Hi @ottokart,
I tried T-BRNN-pre model and it gave me this error (input text file was in all lower case):

Traceback (most recent call last):
  File "/home/lalitaggarwal/Downloads/punctuator2/env/lib/python3.6/site-packages/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
ValueError: cannot reshape array of size 10000 into shape (200,256)

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):
  File "punctuator.py", line 172, in <module>
    restore(output_file, text, word_vocabulary, reverse_punctuation_vocabulary, predict)
  File "punctuator.py", line 84, in restore
    y = predict_function(to_array(converted_subsequence))
  File "/home/lalitaggarwal/Downloads/punctuator2/env/lib/python3.6/site-packages/theano/compile/function_module.py", line 917, in __call__
    storage_map=getattr(self.fn, 'storage_map', None))
  File "/home/lalitaggarwal/Downloads/punctuator2/env/lib/python3.6/site-packages/theano/gof/link.py", line 325, in raise_with_op
    reraise(exc_type, exc_value, exc_trace)
  File "/home/lalitaggarwal/Downloads/punctuator2/env/lib/python3.6/site-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/home/lalitaggarwal/Downloads/punctuator2/env/lib/python3.6/site-packages/theano/compile/function_module.py", line 903, in __call__
    self.fn() if output_subset is None else\
ValueError: cannot reshape array of size 10000 into shape (200,256)
Apply node that caused the error: Reshape{2}(AdvancedSubtensor1.0, Join.0)
Toposort index: 33
Inputs types: [TensorType(float64, matrix), TensorType(int64, vector)]
Inputs shapes: [(200, 50), (2,)]
Inputs strides: [(400, 8), (8,)]
Inputs values: ['not shown', array([200, 256])]
Outputs clients: [[InplaceDimShuffle{0,x,1}(Reshape{2}.0)]]

T-BRNN-pre model is even better than Demo-Europarl-EN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant