-
Notifications
You must be signed in to change notification settings - Fork 4
Adding the lowercase aspect #5
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
base: master
Are you sure you want to change the base?
Conversation
|
||
|
||
class LowerCase(Aspect): | ||
"""Lower-cases the dataset. |
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.
Could you add the info that it's especially important for NER tasks?
@@ -54,14 +54,17 @@ def load(self, path): | |||
processed = self._process_sample(sample) | |||
self._data.append(processed) | |||
|
|||
def apply(self, aspect, apply_to_ne=False): | |||
def apply(self, aspect, apply_to_ne=False, apply_to_both=False): |
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.
Maybe it would be better to rewrite it so for example there is the apply_to
parameter that can take one of three values:
NON_NE
, NE
, BOTH
? I think that when it's controlled by two variables it's a little bit confusing.
@lunayach You're right, it totally makes sense to add this aspect. I've tested your code and added some comments to consider. Also, sorry for the late response. Please don't hesitate to mention me or request a review, otherwise I don't receive any notifications. |
For tasks like NER, which is highly dependent on Capitalization, I think it's important to have a lowercase aspect as well. This aspect would lowercase the entire dataset. I'll be very happy to discuss any suggestions.