Skip to content
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

Label scaler implementation could be simplified [NEREL registration backlog] #58

Open
Tracked by #79
nicolay-r opened this issue Jul 29, 2023 · 0 comments
Open
Tracked by #79
Assignees
Labels
documentation Improvements or additions to documentation task

Comments

@nicolay-r
Copy link
Owner

class NerelAnyLabelScaler(BaseLabelScaler):
def __init__(self):
self.__uint_to_label_dict = OrderedDict([
(labels.OpinionBelongsTo(), 0),
(labels.OpinionRelatesTo(), 1),
(labels.NegEffectFrom(), 2),
(labels.PosEffectFrom(), 3),
(labels.NegStateFrom(), 4),
(labels.PosStateFrom(), 5),
(labels.NegativeTo(), 6),
(labels.PositiveTo(), 7),
(labels.StateBelongsTo(), 8),
(labels.PosAuthorFrom(), 9),
(labels.NegAuthorFrom(), 10),
(labels.AlternativeName(), 11),
(labels.OriginsFrom(), 12),
])
super(NerelAnyLabelScaler, self).__init__(
uint_dict=self.__uint_to_label_dict,
int_dict=self.__uint_to_label_dict)

@nicolay-r nicolay-r self-assigned this Jul 29, 2023
@nicolay-r nicolay-r mentioned this issue Jul 30, 2023
18 tasks
@nicolay-r nicolay-r added documentation Improvements or additions to documentation task labels Nov 3, 2023
@nicolay-r nicolay-r mentioned this issue Nov 3, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation task
Projects
None yet
Development

No branches or pull requests

1 participant