-
Notifications
You must be signed in to change notification settings - Fork 736
2022-01-19-distilbert_token_classifier_typo_detector_en #6796
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
2022-01-19-distilbert_token_classifier_typo_detector_en #6796
Conversation
josejuanmartinez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of typos in the python/scala code. Can you check?
| .setInputCols(["sentence"])\ | ||
| .setOutputCol("token") | ||
|
|
||
| tokenClassifier = DistilBertForTokenClassification.pretrained("distilbert_token_classifier_typo_detector", "en"))\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 2 parenthesis, one only needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josejuanmartinez
it is fixed!
| .setInputCols(Array("sentence")) | ||
| .setOutputCol("token") | ||
|
|
||
| val tokenClassifier = DistilBertForTokenClassification.pretrained("distilbert_token_classifier_typo_detector", "en"))\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two parenthesis, only one needed. And remove also \ in Scala is not needed as you correctly told me some time ago :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josejuanmartinez
it is fixed!
josejuanmartinez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
No description provided.