Skip to content

ValueError: Cannot get dimension 'nO' for model 'sparse_linear': value unset #247

Answered by louisguitton
kaiyungtan asked this question in Q&A
Discussion options

You must be logged in to vote

ah I see @kaiyungtan .
From your issue description, I see

spaCy version 3.0.0rc5
Platform Linux-4.14.225-121.362.amzn1.x86_64-x86_64-with-glibc2.9
Python version 3.6.13
Pipelines en_core_web_sm (3.0.0)

Can you check your pytextrank version on that SageMaker instance like so?

In [1]: import pytextrank

In [2]: pytextrank.__version__
Out[2]: '3.1.2'

It can be that you're using without knowing an older pytextrank version (because of what pip dependencies are cached on the SageMaker environment you're using).
v3 and later versions of pytextrank introduce breaking changes due to spacy v3 compatibility. See https://github.com/DerwenAI/pytextrank/releases

So if you run the above check and see a 2…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ceteri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #165 on August 22, 2023 16:13.