Closed ardakshalkar closed 4 years ago
ru2.lemmatizer.DEBUG = 1 ---> nlp_r2=pipe_add(ru2.Russian2()) print("R2 pipeline: {}".format(nlp_r2.pipe_names)) parse(nlp_r2, text)
The code above showed error: /home/ardak/Code/Spacy-ru/ru2/lemmatizer.py in init(self) 18 19 def init(self): ---> 20 super(RussianLemmatizer, self).init() 21 try: 22 from pymorphy2 import MorphAnalyzer
TypeError: super(type, obj): obj must be an instance or subtype of type
What is an error?
Please check you're using spacy 2.0.12 for this version.
ru2.lemmatizer.DEBUG = 1 ---> nlp_r2=pipe_add(ru2.Russian2()) print("R2 pipeline: {}".format(nlp_r2.pipe_names)) parse(nlp_r2, text)
The code above showed error: /home/ardak/Code/Spacy-ru/ru2/lemmatizer.py in init(self) 18 19 def init(self): ---> 20 super(RussianLemmatizer, self).init() 21 try: 22 from pymorphy2 import MorphAnalyzer
TypeError: super(type, obj): obj must be an instance or subtype of type
What is an error?