thu-coai / ConvLab-2

ConvLab-2: An Open-Source Toolkit for Building, Evaluating, and Diagnosing Dialogue Systems
Apache License 2.0
449 stars 130 forks source link

Issue in BertNLU #237

Closed AtheerAlgherairy closed 1 year ago

AtheerAlgherairy commented 1 year ago

I am trying to run ConvLab2 but this line has an error: self.nlp.tokenizer.add_special_case(token, [{ORTH: token, LEMMA: token, POS: u'NOUN'}])

Error message: ValueError: [E1005] Unable to set attribute 'LEMMA' in tokenizer exception for 'cb58nt'. Tokenizer exceptions are only allowed to specify ORTH and NORM.

zqwerty commented 1 year ago

Have you installed spacy==2.1.9?

AtheerAlgherairy commented 1 year ago

Yes.

On Mon, Oct 17, 2022 at 1:42 PM zhuqi @.***> wrote:

Have you installed spacy==2.1.9?

— Reply to this email directly, view it on GitHub https://github.com/thu-coai/ConvLab-2/issues/237#issuecomment-1280656440, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTZCOJVOJ7IVDFGPMWBDTWDUUQTANCNFSM6AAAAAARGZOMME . You are receiving this because you authored the thread.Message ID: @.***>

zqwerty commented 1 year ago

I have tried Google Colab with this (spacy==2.1.9 and en_core_web_sm==2.1.0)

屏幕快照 2022-10-17 下午7 13 46

I think it is probably a version issue. Could you re-install spacy and install en_core_web_sm?

AtheerAlgherairy commented 1 year ago

Yes it was a version issue. Thanks for your prompt response.