-
Notifications
You must be signed in to change notification settings - Fork 76
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
Formatters update #457
base: dev
Are you sure you want to change the base?
Formatters update #457
Conversation
7e3c27f
to
ebe504a
Compare
760d51e
to
d7a5be5
Compare
65e7254
to
06f3a1e
Compare
ae6d9ac
to
6641df7
Compare
b76fd0d
to
50548bd
Compare
elif service_name == "summarization-annotator": | ||
return get_sents(dialog) | ||
else: | ||
return dialog |
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.
<img width="1420" alt="Screenshot 2023-11-07 at 13 14 38"
src="https://github.com/deeppavlov/dream/assets/14152126/84651f39-666d-4822-8c25-f345f4c011c0">
в форматтерах подразумевается, что форматтер так и так возвращает батч (просто из одного элемента) -- искусственно оборачивает в лист. А ты как будто где-то это делаешь, а где-то нет. Провреь, пожалуйста -- ошибка в тестах из-за этого 100 %
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.
Хорошо, я посмотрю.
Slightly decrease number of formatters used in Dream. Modified formatters use similar logic with minor differences. Deleted all unused functions.