Giter Site home page Giter Site logo

Comments (17)

KTRosenberg avatar KTRosenberg commented on July 23, 2024 1

I'm not sure this is resolved. Coreferee installation on macOS using the ARM chips still fails. Are you planning on supporting that platform officially?
Also, do you anticipate supporting the latest Spacy?

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024 1

I'm not part of coreferee unfortunately ๐Ÿ˜ž but I thought that Edit 4 suggested things were working now. I'm currently stuck trying to get it running myself.

No, unfortunately it's not resolved. I had to install from source and do a bunch of painful things externally using mac-specific "hacks." pip installation completely fails due to the tensorflow dependency, and I had to use conda. Also, the fact that only Spacy < 3.2 is supported seems to prevent gpu acceleration or something. I hope this can be resolved and potentially updated for compatibility with 3.2.

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

I think this can be closed now.

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

I'm not part of coreferee unfortunately ๐Ÿ˜ž but I thought that Edit 4 suggested things were working now. I'm currently stuck trying to get it running myself.

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

๐ŸŽ‰ I just got it to work with:

miniconda==4.11.0
python==3.9
numpy==1.21.4
tensorflow-macos==2.7.0
spacy==3.1.0
coreferee==1.1.2

I had to install the other dependencies before coreferee, then run pip install coreferee==1.1.2 --no-deps. Hope this works for you too, let me know.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

๐ŸŽ‰ I just got it to work with:

miniconda==4.11.0
python==3.9
numpy==1.21.4
tensorflow-macos==2.7.0
spacy==3.2.1
coreferee==1.1.2

I had to install the other dependencies before coreferee, then run pip install coreferee==1.1.2 --no-deps. Hope this works for you too.

Could you show the full steps for installation of the environment and dependencies? I just donโ€™t want room for ambiguity since I had to do a lot of crazy side maneuvers as shown above. I am also pretty sure I did something similar to what you did and the pip tensorflow package always failed.
Did you use miniforge for conda as well?

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

My bad. I must have looked at old output, I'm using spacy==3.1.0. Updated my previous comment.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

My bad. I must have looked at old output, I'm using spacy==3.1.0. Updated my previous comment.

Still, would you show the steps? Also, you should be able to get it to 3.1.4

For 3.2 support, I think the author needs to do that explicitly.

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

Steps that work for me (just tested) are:

conda create -n coreferee python=3.9
conda activate coreferee
conda install -c apple tensorflow-deps==2.6.0
pip install tensorflow-macos==2.7.0
conda install -c conda-forge spacy==3.1.4
python -m spacy download fr_core_news_lg
pip install coreferee --no-deps
python -m coreferee install fr

Let me know.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

Steps that work for me (just tested) are:

conda create -n coreferee python=3.9
conda activate coreferee
conda install -c apple tensorflow-deps==2.6.0
pip install tensorflow-macos==2.7.0
conda install -c conda-forge spacy==3.1.0
python -m spacy download fr_core_news_lg
pip install coreferee --no-deps
python -m coreferee install fr

Let me know.

Thanks. You may want to try 3.1.4 though. Also, make sure the transformers models work for you.

Does it matter if you use miniforge, mambaforge, etc. to install conda?

from coreferee.

philippnoah avatar philippnoah commented on July 23, 2024

Just tested with spacy==3.1.4 and en_core_web_trf, worked for me.
I only tested with miniforge, I'm not sure if it works with the others.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

For me I get a warning that thereโ€™a no CUDA device, which means itโ€™s reverting to doinv everything on the CPU. I guess I have to reinstall everything somehow because that canโ€™t be right.

from coreferee.

richardpaulhudson avatar richardpaulhudson commented on July 23, 2024

@KTRosenberg have you solved this now or are you still having problems? Working on the CPU is quite feasible as far as Coreferee is concerned because the neural network is much smaller than those used by typical transformer-based models.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

@richardpaulhudson Hi. I got it working sort of, but only via miniforge/conda so I could use the newer tensorflow for Apple chips, and I have to install from sourcd
I still encounter issues with installation though, like numpy going out of sync. (I have to do an uninstall, then reinstall โ€œhack.โ€) I am hoping coreferee might be upgraded to work with Spacy 3.2 because that woild also help.

My fear is that eventually 3.1.4 will stop being available, and then Ia will be stuck.

I do get much better results with the transformers version, so I am trying to stick with that one.

from coreferee.

richardpaulhudson avatar richardpaulhudson commented on July 23, 2024

Sorry about all this! I'm currently working on a new version of Coreferee which uses Thinc rather than TensorFlow, meaning that it doesn't have any dependencies except spaCy itself and the transitive dependencies that entails. I think this should solve these problems.

from coreferee.

KTRosenberg avatar KTRosenberg commented on July 23, 2024

Sorry about all this! I'm currently working on a new version of Coreferee which uses Thinc rather than TensorFlow, meaning that it doesn't have any dependencies except spaCy itself and the transitive dependencies that entails. I think this should solve these problems.

Thanks for the update. I'm looking forward to that new version!

from coreferee.

richardpaulhudson avatar richardpaulhudson commented on July 23, 2024

Version 1.2.0 is now available and these problems should no longer be relevant.

from coreferee.

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.