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

Formatters update #457

Open
wants to merge 48 commits into
base: dev
Choose a base branch
from
Open

Formatters update #457

wants to merge 48 commits into from

Conversation

NeoIsALie
Copy link
Collaborator

@NeoIsALie NeoIsALie commented May 15, 2023

Slightly decrease number of formatters used in Dream. Modified formatters use similar logic with minor differences. Deleted all unused functions.

@NeoIsALie NeoIsALie force-pushed the feat/formatter-upd branch 2 times, most recently from 7e3c27f to ebe504a Compare June 5, 2023 06:26
state_formatters/dp_formatters.py Show resolved Hide resolved
state_formatters/dp_formatters.py Outdated Show resolved Hide resolved
state_formatters/dp_formatters.py Show resolved Hide resolved
state_formatters/dp_formatters.py Show resolved Hide resolved
state_formatters/dp_formatters.py Show resolved Hide resolved
state_formatters/dp_formatters.py Outdated Show resolved Hide resolved
@dilyararimovna
Copy link
Collaborator

Test Dialog. Если смотреть логи, то там ошибки из-за форматтеров.

Screenshot 2023-10-03 at 14 50 19 Screenshot 2023-10-03 at 14 55 17

elif service_name == "summarization-annotator":
return get_sents(dialog)
else:
return dialog
Copy link
Collaborator

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"
Screenshot 2023-11-07 at 13 14 58
src="https://github.com/deeppavlov/dream/assets/14152126/84651f39-666d-4822-8c25-f345f4c011c0">
в форматтерах подразумевается, что форматтер так и так возвращает батч (просто из одного элемента) -- искусственно оборачивает в лист. А ты как будто где-то это делаешь, а где-то нет. Провреь, пожалуйста -- ошибка в тестах из-за этого 100 %

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошо, я посмотрю.

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.

3 participants