visconde's People
visconde's Issues
Error while import MonoT5 from Pygaggle
I am running the notebook on Colab on Python v3.9.16
Kindly help me resolve the issue @rodrigonogueira4, @jayralencar.
1 from pygaggle.rerank.base import Query, Text
----> 2 from pygaggle.rerank.transformer import MonoT5
3
4 reranker = MonoT5(model=model)
7 frames
/usr/local/lib/python3.9/dist-packages/pygaggle/rerank/transformer.py in
11 import torch
12 from .base import Reranker, Query, Text
---> 13 from .similarity import SimilarityMatrixProvider
14 from pygaggle.model import (BatchTokenizer,
15 LongBatchEncoder,
/usr/local/lib/python3.9/dist-packages/pygaggle/rerank/similarity.py in
3 import torch
4
----> 5 from pygaggle.model.encode import SingleEncoderOutput
6
7
/usr/local/lib/python3.9/dist-packages/pygaggle/model/init.py in
4
5 from .decode import *
----> 6 from .encode import *
7 from .evaluate import *
8 from .serialize import *
/usr/local/lib/python3.9/dist-packages/pygaggle/model/encode.py in
6 import torch.nn as nn
7
----> 8 from .tokenize import BatchTokenizer
9 from pygaggle.rerank.base import TextType
10
/usr/local/lib/python3.9/dist-packages/pygaggle/model/tokenize.py in
170
171
--> 172 class SpacySenticizer:
173 nlp = English()
174 nlp.add_pipe(nlp.create_pipe('sentencizer'))
/usr/local/lib/python3.9/dist-packages/pygaggle/model/tokenize.py in SpacySenticizer()
172 class SpacySenticizer:
173 nlp = English()
--> 174 nlp.add_pipe(nlp.create_pipe('sentencizer'))
175
176 def init(self, max_paragraph_length: int = None):
/usr/local/lib/python3.9/dist-packages/spacy/language.py in create_pipe(self, name, config)
300 raise KeyError(Errors.E002.format(name=name))
301 factory = self.factories[name]
--> 302 return factory(self, **config)
303
304 def add_pipe(
/usr/local/lib/python3.9/dist-packages/spacy/language.py in factory(nlp, **cfg)
1043 def factory(nlp, **cfg):
1044 if hasattr(obj, "from_nlp"):
-> 1045 return obj.from_nlp(nlp, **cfg)
1046 elif isinstance(obj, class_types):
1047 return obj()
pipes.pyx in spacy.pipeline.pipes.Sentencizer.from_nlp()
TypeError: type() takes 1 or 3 arguments
need requirements.text
I am facing several dependencies while installing and running the notebook. Could you please help me with all relevant packages with their respective versions, that would be really helpful.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.