Code Monkey home page Code Monkey logo

Comments (7)

taoleicn avatar taoleicn commented on May 19, 2024

Hi,
The prepro.py code is taken from https://github.com/hitvoice/DrQA and the author is @hitvoice
The required spacy version is 1.x according to the README.

@hitvoice any ideas?

from sru.

hitvoice avatar hitvoice commented on May 19, 2024

prepro.py has been updated a month ago in https://github.com/hitvoice/DrQA. With spacy 2.0, the new script finishes without error, but it takes more than an hour to finish data processing (while with spacy 1.9 it takes only 70 seconds). I'm not able to find out what exactly is the problem and how to accelerate it even after following the "Migrating from spaCy 1.x" guide.
Related issues in spacy: #1371 #1572, which are still open.
I suggest sticking to spacy 1.9 until the spacy development team fixes related performance issues.

from sru.

mojesty avatar mojesty commented on May 19, 2024

Thanks @hitvoice . Do I need to update any other files to make it work with spaCy 2.x? I would like to use the same library version throughout my projects to avoid compatibility problems.

from sru.

hitvoice avatar hitvoice commented on May 19, 2024

No, only "prepro.py".

from sru.

aviczhl2 avatar aviczhl2 commented on May 19, 2024

@hitvoice when replacing the prepro.py with your new version, a new bug occurs.

Traceback (most recent call last):
File "lib/python3.5/site-packages/cupy/cuda/stream.py", line 113, in del
if self.ptr:
AttributeError: 'Stream' object has no attribute 'ptr'
if self.ptr:
AttributeError: 'Stream' object has no attribute 'ptr'

I'd like to know how to deal with it... Many thanks...

from sru.

mojesty avatar mojesty commented on May 19, 2024

I used @hitvoice 's repo for the DrQa and it worked well, so consider this option also.

from sru.

lenovopast17 avatar lenovopast17 commented on May 19, 2024

@aviczhl2 i think you should upgrade your NVIDIA driver, it worked for me.

from sru.

Related Issues (20)

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.