openai/finetune-transformer-lm

Error!! :(

amirakazadeh opened this issue · 10 comments

hi
how can I solve this error??

OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

Anybody can help me??

Hi,
python -m spacy download en should do the trick.
cf https://spacy.io/usage/models

hi :) could you please tell me how can I run this code step by step?? tnx P.S. I do "python -m spacy download en ." but the error is still here:(

On Fri, Dec 28, 2018 at 2:00 PM Thomas Wolf @.***> wrote: Hi, python -m spacy download en should do the trick. cf https://spacy.io/usage/models — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#39 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ArYzMk_X-yf_A6Dz82qWhTlayI3lZFDJks5u9fLLgaJpZM4ZjqXe .

"python -m spacy download en ." is to download a model. maybe you have an error during downloading
Try download it again. and test whether you have downloaded it by the following code:

import spacy
spacy.load("en")

I'd solved it.
:)

tnx

hi again :)
when I want to run program in "colab'" this error is occurred:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1397: invalid continuation byte

how can I fix it?
please help me

tnx

hi again :)
when I want to run program in "colab'" this error is occurred:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1397: invalid continuation byte
how can I fix it?
please help me
tnx

if you are trying to open the files, just change the encoding parameter. The original data of roc is encoded in "ISO-8859-1" instead of "utf-8"

hi :) could you please tell me how can I run this code step by step?? tnx P.S. I do "python -m spacy download en ." but the error is still here:(

On Fri, Dec 28, 2018 at 2:00 PM Thomas Wolf @.***> wrote: Hi, python -m spacy download en should do the trick. cf https://spacy.io/usage/models — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#39 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ArYzMk_X-yf_A6Dz82qWhTlayI3lZFDJks5u9fLLgaJpZM4ZjqXe .

"python -m spacy download en ." is to download a model. maybe you have an error during downloading
Try download it again. and test whether you have downloaded it by the following code:

import spacy
spacy.load("en")

i try python -m spacy download en.
but i get error:
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /explosion/spacy-models/master/shortcuts-v2.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb84d77f790>: Failed to establish a new connection: [Errno 110] Connection timed out',))

FileNotFoundError: [Errno 2] No such file or directory: 'encoder_bpe_40000.json",where to get this file“encoder_bpe_40000.json”,thanks

HI :) where is the file(maybe somethins else) "ROCstroies.tsv" and "rocstories.jsonl"? I can't find it . Thx