Skip to content

Conversation

@lunayach
Copy link
Contributor

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.

@lunayach
Copy link
Contributor Author

@aslucki @awroble Can you please review if this aspect and it's implementation makes sense?



class LowerCase(Aspect):
"""Lower-cases the dataset.
Copy link
Collaborator

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?

self._data.append(processed)

def apply(self, aspect, apply_to_ne=False):
def apply(self, aspect, apply_to_ne=False, apply_to_both=False):
Copy link
Collaborator

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.

@aslucki
Copy link
Collaborator

aslucki commented Jul 25, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants