Skip to content

AttributeError: [E046] while summarizing with PositionRank/Biased TextRank #252

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

You must be logged in to vote

I see the extension in the pipeline analysis using this snippet.

import spacy
import pytextrank

nlp = spacy.load("en_core_web_sm")
nlp.add_pipe("positionrank", last=True)

assert "positionrank" in nlp.pipe_names
assert "positionrank" in nlp.analyze_pipes()['summary']

Output looks like this for me

>>> nlp.analyze_pipes(pretty=True)['summary']
============================= Pipeline Overview =============================

#   Component         Assigns               Requires   Scores             Retokenizes
-   ---------------   -------------------   --------   ----------------   -----------
0   tok2vec           doc.tensor                                          False

1   tagger            

Replies: 4 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
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question howto questions we need to add to the "howto" section of the new docs
4 participants
Converted from issue

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