GithubHelp home page GithubHelp logo

visconde's People

Contributors

jayralencar avatar rodrigonogueira4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.