We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm facing an issue at code
trained_model = finbert.train(train_examples = train_data, model = model)
Error is
TypeError Traceback (most recent call last) <ipython-input-11-2ebf0cb3d4e8> in <module> ----> 1 trained_model = finbert.train(train_examples = train_data, model = model) ~\finBERT-master\finbert\finbert.py in train(self, train_examples, model) 482 print('No best model found') 483 torch.save({'epoch': str(i), 'state_dict': model.state_dict()}, --> 484 self.config.model_dir / ('temporary' + str(i))) 485 best_model = i 486 TypeError: unsupported operand type(s) for /: 'str' and 'str'
The text was updated successfully, but these errors were encountered:
self.config.model_dir should have PosixPath class. Could you please check if that is the case?
self.config.model_dir
PosixPath
Sorry, something went wrong.
Hi @doguaraci @nithinreddyy , just checking if this is resolved properly? I am facing the same issue!
Thank you!
for anyone who is interested, try this: cl_path = pathlib.Path(project_dir)/'resources'/'models'/'classifier_model'/'finbert-sentiment'
cl_path = pathlib.Path(project_dir)/'resources'/'models'/'classifier_model'/'finbert-sentiment'
No branches or pull requests
I'm facing an issue at code
trained_model = finbert.train(train_examples = train_data, model = model)
Error is
The text was updated successfully, but these errors were encountered: