kamalojasv181 / Hostility-Detection-in-Hindi-Posts

6 stars 1 forks source link

cd "./../../../" #2

Closed Saumya1915 closed 3 years ago

Saumya1915 commented 3 years ago

I'm getting invalid syntax in cd "./../../../". Kindly tell me what is the mistake here? image

mozhgan-momtaz commented 3 years ago

I have the same issue.Could u find the solution to it?

kamalojasv181 commented 3 years ago

Actually, the directory structure at the time of working must have been something else. So just delete this line. In case, wherever you find some file not found, just update the path. Make a PR if you can, I will merge it.

mozhgan-momtaz commented 3 years ago

Thank you for the answer. I try to pre-trained it by binary-classifier and indic-bert it gave me this error, I was wondering if you had this too: "RuntimeError: The size of tensor a (200) must match the size of tensor b (128) at non-singleton dimension 1" Thanks

kamalojasv181 commented 3 years ago

I am really sorry. I have been busy these days. Can you please specify which file gives you this error?

mozhgan-momtaz commented 3 years ago

I understand that. It was on binary-classification py file. I could figure it out. (I need to use this comment : config = AutoConfig.from_pretrained('ai4bharat/indic-bert') self.l1 = AutoModel.from_config(config=config) instead of self.l1 = AutoModel.from_pretrained(model_path)

kamalojasv181 commented 3 years ago

Yes. Thanks for pointing that out