-
Notifications
You must be signed in to change notification settings - Fork 97
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
can I have more column in train set #43
Comments
Not without creating your own model class. Transformer models only accept a sequence of text as its input. |
thanks you very much for yours reply. |
I'm not sure where that piece of code is from. Essentially, you'll need to edit the BertForSequenceClassification class in the transformers library so that it can accept additional inputs. You'll also need to write the |
Thanks you ThilinaRajapakse for yours great work and timely responses, I am using this library and definitely acknowledge and refer you in my coming work, all the best |
No problem! Take a look at Simple Transformers as well. You may find it easier to work with compared to this repo. |
yes I am using simple transformers too, its super easy to use. |
That error normally happens when you have bad data in your dataset (invalid labels, special characters, etc.) I don't use cloud GPUs so I'm afraid I can't really recommend any. |
thanks ThilinaRajapakse for yours timely response once again, I agree with you about data, one last question for today, can I run same simple transformers on CPU, i mean you tested and built all these models, did you use some GPUs or just CPU |
You can run them on either. However, running on CPU will be far too slow for it to be practical. I always train using a GPU. |
thanks, best to you |
other than the specified format as below, can I have more columns as features?
guid: An ID for the row.
label: The label for the row (should be an int).
alpha: A column of the same letter for all rows. Not used in classification but still expected by the DataProcessor.
text: The sentence or sequence of text.
The text was updated successfully, but these errors were encountered: