New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NeuralCoref-3.0 can't load the new spacy model #48
Comments
hi @Praveenabiginfo, can you give me some information on your setup. Are you under windows, linux or mac and which version of python / environment manager you are using ? |
I am using Ubuntu 14.10. Python version is 2.7
…On Mon, Jun 18, 2018 at 2:44 PM, thomwolf ***@***.***> wrote:
hi @Praveenabiginfo <https://github.com/Praveenabiginfo>, can you give me
some information on your setup. Are you under windows, linux or mac and
which version of python / environment manager you are using ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFFDNymI4-40FtNvKR7sSG669AH6Sks5t929fgaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
Under neuralcoref 3.0 is
solve your problem/work as expected? |
With the import statement i got the below error:
Traceback (most recent call last):
File "/home/extraction/CoreferenceResolver.py", line 87, in <module>
nlp = spacy.load('en_coref_sm')
File "/usr/local/lib/python2.7/dist-packages/spacy/__init__.py", line 15,
in load
return util.load_model(name, **overrides)
File "/usr/local/lib/python2.7/dist-packages/spacy/util.py", line 114, in
load_model
return load_model_from_package(name, **overrides)
File "/usr/local/lib/python2.7/dist-packages/spacy/util.py", line 134, in
load_model_from_package
cls = importlib.import_module(name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File
"/usr/local/lib/python2.7/dist-packages/en_coref_sm-3.0.0-py2.7-linux-x86_64.egg/en_coref_sm/__init__.py",
line 6, in <module>
import neuralcoref
File "neuralcoref.pyx", line 101, in init neuralcoref.neuralcoref
TypeError: must be char, not unicode
…On Mon, Jun 18, 2018 at 3:58 PM, Arjoonn Sharma ***@***.***> wrote:
Under neuralcoref 3.0 is from neuralcoref import Coref still working? I
was reading your traceback and from there it appears that you're importing
it using that statement.
@Praveenabiginfo <https://github.com/Praveenabiginfo> does
import spacy
nlp = spacy.load('en_coref_sm')
solve your problem/work as expected?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFAE1wMD1vt8hknYrMhuevGLMKBR1ks5t94DmgaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
I am uploading updated versions of the models ( |
I did a pip install of the downloaded new spacy model using the below
command
pip install en_coref_sm-3.0.0.tar.gz
The console says Successfully build en-coref-sm. But I am not seeing any
folder inside /usr/local/lib/python2.7/dist-packages. Why??
…On Mon, Jun 18, 2018 at 7:05 PM, thomwolf ***@***.***> wrote:
I am uploading updated versions of the models (en_coref_sm is up, the
others are still currently uploading) which should work with the original
readme instructions (fixed the install scripts).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFKUzGNX3jkP5LHwNXa2YmUsgeDp7ks5t96ydgaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
Hi,
I removed all my old en-coref-sm folders from
/usr/local/lib/python2.7/dist-packages/ and installed the en-coref-sm
freshly using the setup.py first. It creates some en-coref-sm_egg.info kind
of folder only in the above location.
So I removed the created folder and tried with pip install
<en-coref-sm.tar.gz> file name. This says Successfully built en_coref_sm
but didn't created any folders inside the mentioned path But created some
folders like en_coref_sm-3.0.0-cp27-cp27mu linux_x86_64.whl in the location
/home/praveena/.cache/pip/wheels/9a/a9/2e/bb66ba2c4fcc5223108cd45cfc5a98827c907e12e149d70daa.
Then I extracted that one I got two folders en_coref_sm and
en_coref_sm-3.0.0.dist_info. These two folders I manually copied to the
location /usr/local/lib/python2.7/dist-packages/. Then I tried loading the
model using the below commands even now I got the same error. What I am
doing wrong??
>> import spacy
>> spacy.load('en_coref_sm')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "spacy/__init__.py", line 15, in load
return util.load_model(name, **overrides)
File "spacy/util.py", line 114, in load_model
return load_model_from_package(name, **overrides)
File "spacy/util.py", line 134, in load_model_from_package
cls = importlib.import_module(name)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "en_coref_sm/__init__.py", line 6, in <module>
from .neuralcoref import NeuralCoref
File "neuralcoref.pyx", line 101, in init neuralcoref.neuralcoref
TypeError: must be char, not unicode
On Tue, Jun 19, 2018 at 2:10 PM, Praveena M <praveena@biginfolabs.com>
wrote:
… I did a pip install of the downloaded new spacy model using the below
command
pip install en_coref_sm-3.0.0.tar.gz
The console says Successfully build en-coref-sm. But I am not seeing any
folder inside /usr/local/lib/python2.7/dist-packages. Why??
On Mon, Jun 18, 2018 at 7:05 PM, thomwolf ***@***.***>
wrote:
> I am uploading updated versions of the models (en_coref_sm is up, the
> others are still currently uploading) which should work with the original
> readme instructions (fixed the install scripts).
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#48 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AmZmFKUzGNX3jkP5LHwNXa2YmUsgeDp7ks5t96ydgaJpZM4Unsqm>
> .
>
--
Regards,
Praveena .M
--
Regards,
Praveena .M
|
Hi @Praveenabiginfo, I released a set of updated models just this morning. Can you try them instead of the old ones? I tested them on Python 2.7 and 3.6. See my last post in issue #47 for details. |
I tried with the new model only. en_coref_sm
…On Tue, Jun 19, 2018 at 5:41 PM, thomwolf ***@***.***> wrote:
Hi @Praveenabiginfo <https://github.com/Praveenabiginfo>, I released a
set of updated models just this morning. Can you try them instead of the
old ones? I tested them on Python 2.7 and 3.6. See my last post in issue
#47 <#47> for details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFN30-84QM4EOQQ3V_7sZNCbfvWi6ks5t-Op2gaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
Try to download them again please (I updated them several times this morning) |
I am trying in a different machine which doesn't have neuralCoref or this
coref_sm before
Why the below error??
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g
-fstack-protector-strong -Wformat -Werror=format-security -fPIC
-I/usr/include/python2.7 -I/home/yarnuser/Coref/en_coref_sm-3.0.0/include
-I/usr/include/python2.7 -c en_coref_sm/neuralcoref.cpp -o
build/temp.linux-x86_64-2.7/en_coref_sm/neuralcoref.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for
C/ObjC but not for C++
en_coref_sm/neuralcoref.cpp:4:20: fatal error: Python.h: No such file or
directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
…On Tue, Jun 19, 2018 at 5:46 PM, thomwolf ***@***.***> wrote:
Try to download them again please
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFJUDqV_pTcW2bxQVgceTASl2UGv7ks5t-OuygaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
Ok I see, thanks for trying. I have to update the instal script for Ubuntu indeed. |
Today I again tried in a different machine which doesn't even have the spacy.
|
Why this error??
|
Hi, The issue is not related to Ubuntu it seems. I was using Python2.7 version before. I tried with Python 3.4. Now it is working fine. Is there any options to make it run on Python2.7 itself?? |
Well it is working on my mac (OS Sierra) on Python 2.7 so I am a bit puzzled. pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL |
Okay Let me try!!
…On Thu, Jun 28, 2018 at 12:39 PM, thomwolf ***@***.***> wrote:
Well it is working on my mac (OS Sierra) on Python 2.7 so I am a bit
puzzled.
Can you try installing a full clean version with
pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmZmFGTO-hpualeZX0dsjYslJIH7Omwyks5uBIEXgaJpZM4Unsqm>
.
--
Regards,
Praveena .M
|
Same error only I got again
On Thu, Jun 28, 2018 at 12:55 PM, Praveena M <praveena@biginfolabs.com>
wrote:
… Okay Let me try!!
On Thu, Jun 28, 2018 at 12:39 PM, thomwolf ***@***.***>
wrote:
> Well it is working on my mac (OS Sierra) on Python 2.7 so I am a bit
> puzzled.
> Can you try installing a full clean version with
>
> pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#48 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AmZmFGTO-hpualeZX0dsjYslJIH7Omwyks5uBIEXgaJpZM4Unsqm>
> .
>
--
Regards,
Praveena .M
--
Regards,
Praveena .M
|
I'm also having this issue, I'm using python 2.7.6 on a Ubuntu 14.04. This is the full traceback:
Initially I hit the |
This should be fixed in the latest release (4.0). |
Facing same iussue: /data/saurabh/neuralcoref/neuralcoref/init.py in () neuralcoref.pyx in init neuralcoref.neuralcoref() TypeError: must be char, not unicode |
I couldn't load the spacy model en-coref-sm. I have installed both neuralcoref-3.0 and en-coref-sm by downloading and running the setup.py even I tried the pip install for both. Once the installation completed when tried to load the spacy model it throws the below exception.
Traceback (most recent call last):
File "/home/extraction/CoreferenceResolver.py", line 5, in
from neuralcoref import Coref
File "/usr/local/lib/python2.7/dist-packages/neuralcoref-3.0-py2.7-linux-x86_64.egg/neuralcoref/init.py", line 3, in
from .neuralcoref import NeuralCoref
File "neuralcoref.pyx", line 101, in init neuralcoref.neuralcoref
TypeError: must be char, not unicode
Please provide me the clear steps to begin with the new neuralcoref
The text was updated successfully, but these errors were encountered: