Comments (17)
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.
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.
I think this can be closed now.
from coreferee.
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.
๐ 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.
๐ 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 runpip 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.
My bad. I must have looked at old output, I'm using spacy==3.1.0
. Updated my previous comment.
from coreferee.
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.
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.
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.
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.
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.
@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.
@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.
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.
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.
Version 1.2.0 is now available and these problems should no longer be relevant.
from coreferee.
Related Issues (20)
- Word lists from Wordnet HOT 2
- Adding support for trf models without NER HOT 2
- Support for python 3.7 for google colab use HOT 3
- Not able to add spaCy pipw HOT 2
- Multithreading regression failure
- How to cite coreferee HOT 1
- spaCy 3.1, 3.2 models not supported HOT 3
- Cannot install dependency while pip install coreferee HOT 2
- Encountered an endless loop for some text HOT 1
- "zsh: illegal hardware instruction python -m coreferee install en" on MacOS 12.1 M1 HOT 3
- Documentation website? HOT 3
- retokenize can change the index values HOT 1
- Scores for each co-reference HOT 2
- Does spacy version>= 3.2.0 supported? HOT 2
- ModelNotSupportedError: en_core_web_lg version 3.1.0 error HOT 2
- coreferee.errors.ModelNotSupportedError: en_core_web_md version 3.1.0
- Resolved text HOT 1
- What about Noun phrases mentions? HOT 1
- PLEASE ADDRESS ANY NEW ISSUES TO https://github.com/explosion/coreferee
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.
from coreferee.