yzhangcs / parser

:rocket: State-of-the-art parsers for natural language.
https://parser.yzhang.site/
MIT License
827 stars 139 forks source link

!pip install supar failing on Google Colab notebook #40

Closed Mohd-Misran closed 4 years ago

Mohd-Misran commented 4 years ago

I tried importing supar on Google Colab notebook using the following line of code:

import supar

But it threw a ModuleNotFoundError So I tried installing it using !pip install supar and I got the following error:

ERROR: Could not find a version that satisfies the requirement supar (from versions: none) ERROR: No matching distribution found for supar

@yzhangcs Can this package be used on Google Colab?

yzhangcs commented 4 years ago

Yes. But I haven't figure out the question yet. You can install it from source instead.

Mohd-Misran commented 4 years ago

@yzhangcs How do I install from source?

yzhangcs commented 4 years ago
!git clone https://github.com/yzhangcs/parser
!cd parser && python setup.py install
yzhangcs commented 4 years ago

Sorry, not working too. Only training from cli is supported on CoLab and it raises errors when loading supar.