Skip to content
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

ValueError: Unrecognized model identifier in allenai/longformer-base-4096. Should contains one of 'bert', 'openai-gpt', 'gpt2', 'transfo-xl', 'xlnet', 'xlm', 'roberta', 'ctrl' #3

Open
KDGPR opened this issue Oct 11, 2023 · 5 comments

Comments

@KDGPR
Copy link

KDGPR commented Oct 11, 2023

When I follow the steps of 'ReadMe'. When I run ConstructImage.py. The error comes.
it comes from row 209:
tokenizer = AutoTokenizer.from_pretrained("allenai/longformer-base-4096")
how to solve this?
Thank you.

@Leezekun
Copy link
Owner

Have you installed the transformers package?

@KDGPR
Copy link
Author

KDGPR commented Oct 12, 2023 via email

@Leezekun
Copy link
Owner

The tokenizer is just for analyzing the length of static features. It is not necessary. You can remove the code related to the tokenizer if you have trouble loading it.

@KDGPR
Copy link
Author

KDGPR commented Oct 12, 2023 via email

@KDGPR
Copy link
Author

KDGPR commented Oct 12, 2023

I'm soory to bother you again. What need I do on the datasets? put it in Classification folder?
you can download the datasets at http://www.timeseriesclassification.com/Downloads/Archives/Multivariate2018_ts.zip.

Create a folder Classification in the TSRAdara folder. Run PlotMarkers.py and ConstructDataset.py to create the images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants