Skip to content

first try of count_lit_ref#564

Open
MarinaProsche wants to merge 6 commits intodevfrom
539_links_count_in_spec_chapter
Open

first try of count_lit_ref#564
MarinaProsche wants to merge 6 commits intodevfrom
539_links_count_in_spec_chapter

Conversation

@MarinaProsche
Copy link
Copy Markdown
Contributor

Задача: #539
В данном PR основа для критерия поиска ссылок на источники в определенных разделах.
В классе StyleCheckSettings изменена конфигурация словарей типов проверяемых файлов: добавлен ключ "headers_for_lit_count".
Сейчас для примера выбраны (закомментированы) разделы, которые наиболее часто встречаются в работах НИР и ВКР.

Необходимы уточнения:

  • какие именно разделы следует учитывать.
  • критерии оценки (минимальный или максимальный порог).

description = ''
id = 'references_in_chapter_check'

def __init__(self, file_info, chapters_for_lit_ref = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

какие именно разделы следует учитывать
критерии оценки (минимальный или максимальный порог).

разделы и пороги подаем в качестве аргумента критерия - словарь

Пример:

{
    'введение': [1, 10],
    'определения, обозначения и сокращения': [0, 5],
    'заключение': [1;5]
}

Оценка критерия = процент разделов попавших в нужный интервал

  • количество разделов, прошедших проверку / количество проверяемых разделов)

Можно добавить верхние и нижние пороги:

  • если вычисленная оценка < min -> за критерий 0
  • если вычисленная оценка < max -> за критерий 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@HadronCollider Логика исправлена. Требуется установить min и max (сейчас 0 и 0), а также указать разделы.

@github-actions github-actions Bot added the has conflicts if new merge has conflicts label Sep 2, 2024
@github-actions github-actions Bot removed the has conflicts if new merge has conflicts label Sep 23, 2024
@github-actions github-actions Bot added the has conflicts if new merge has conflicts label Feb 18, 2025
@HadronCollider
Copy link
Copy Markdown
Collaborator

Проверить переиспользование SW* критериев

MarinaProsche and others added 5 commits January 27, 2026 18:18
# Conflicts:
#	app/main/check_packs/pack_config.py
#	app/main/checks/report_checks/__init__.py
#	app/main/checks/report_checks/style_check_settings.py
@vovanbravin vovanbravin force-pushed the 539_links_count_in_spec_chapter branch from b17a1fe to db387f3 Compare January 27, 2026 15:32
@github-actions github-actions Bot removed the has conflicts if new merge has conflicts label Jan 27, 2026
@github-actions github-actions Bot added the has conflicts if new merge has conflicts label Mar 7, 2026
@HadronCollider HadronCollider changed the base branch from master to dev April 22, 2026 09:40
@github-actions github-actions Bot removed the has conflicts if new merge has conflicts label Apr 22, 2026
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Лучше не смешивать общую логику с логикой по аннотации, а разделить поведение критерия в целом (оставив возможность параметризации)
0) общая задача подсчет количества ссылок в конкретном разделе

  1. оценка кол-ва по порогам (пороги задаются целыми числами)
    • если максимальный порог = 0 -> в разделе не должно быть ссылок на литературу (пишем соответствующий фидбек)
      • поскольку в целом, не только для аннотации может быть введено ограничение/запрет на ссылки
    • иначе - обычное поведение (оцениванием вхождение в допустимый диапазон)

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

Labels

future_integration Интеграция/мерж в будущих релизах

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Критерий на наличие и количество ссылок в рамках Актуальности

3 participants