ThilinaRajapakse / pytorch-transformers-classification

Based on the Pytorch-Transformers library by HuggingFace. To be used as a starting point for employing Transformer models in text classification tasks. Contains code to easily train BERT, XLNet, RoBERTa, and XLM models for text classification.
Apache License 2.0
306 stars 97 forks source link

ImportError: cannot import name 'convert_examples_to_features' from 'utils' #25

Closed nalcvp closed 5 years ago

nalcvp commented 5 years ago

After running the first cell in the run_model.ipynb. Anyone understand this issue?

ThilinaRajapakse commented 5 years ago

That is simply importing a function from the utils.py file. Is the file (and the function in the file) present? Perhaps your file paths or python version is messed up.

nalcvp commented 5 years ago

Ok thanks, fixed! Didn't even notice that file. Utils is a package in python so that's the source of my confusion