Comments (6)
I can't reproduce this. Are you using the latest version of the repo?
from pytorch-transformers-classification.
I downloaded the repo and run jupyter notebook. data_prep
works well. Then I ran run_model.ipynb
and it keeps raising this error.
TypeError: convert_examples_to_features() got an unexpected keyword argument 'sep_token_extra
from pytorch-transformers-classification.
I just figured out that the generated files do not have the ordering as train_df = pd.DataFrame({ 'id':range(len(train_df)), 'label':train_df[0], 'alpha':['a']*train_df.shape[0], 'text': train_df[1].replace(r'\n', ' ', regex=True) })
and they are in alphabetical order. I was thinking that it might be a python version issue. I am using python 3.7.4. Do you know what might be wrong?
from pytorch-transformers-classification.
It might be an issue with pandas. Try updating pandas to the latest version.
from pytorch-transformers-classification.
I resolved the ordering issue. But I am still getting the same error. TypeError: convert_examples_to_features() got an unexpected keyword argument 'sep_token_extra
. May I know the exact python version you used?
from pytorch-transformers-classification.
Python 3.7. I can't remember the exact version, although I can check later.
The function that is throwing the error is in the utils.py file. Please check whether this keyword is given in the parameter lost.
Also, please do consider switching to the Simple Transformers library linked in the readme unless there is a reason for using this particular repo. This repo relies on an outdated version of the Hugging Face library.
from pytorch-transformers-classification.
Related Issues (20)
- File path problem HOT 3
- AttributeError: module 'torch.nn.functional' has no attribute 'one_hot' HOT 1
- How to use other models without loading them from internet? HOT 3
- Model performance degrades when moved to Multi-GPU HOT 5
- Not An issue- Adding metadata HOT 3
- Eval results outputs HOT 2
- where is the positional embedding in the Bert model inputs
- Regarding number of train test samples HOT 5
- utils.py [output_mode = regression] HOT 3
- ImportError: cannot import name 'amp' HOT 1
- passing args HOT 2
- Running Inference HOT 2
- 'math' is not defined HOT 1
- ERROR:pytorch_transformers.tokenization_utils:Couldn't reach server to download vocabulary. HOT 2
- Num epoch and other standard configurations HOT 5
- How to make predications HOT 7
- UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. HOT 2
- can I have more column in train set HOT 10
- RuntimeError: Trying to create tensor with negative dimension -1: [-1, 768] HOT 2
- Update prerec packages info: transformer and apex? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-transformers-classification.