Skip to content

Conversation

@CHERRY-ui8
Copy link
Contributor

  1. Refactor judge.py to use run_concurrent instead of Semaphore
  2. Add progress_bar to judge_statement function and pre_tokenize function

ChenZiHong-Gavin and others added 8 commits November 5, 2025 20:12
…dard operator

- Fix .pylintrc: comment out unsupported suggestion-mode option
- Implement QuizGenerator class with proper BaseGenerator interface
  - Fix build_prompt parameter from 'description' to 'batch' to match parent class
  - Add build_prompt_for_description helper method for single description handling
  - Use DESCRIPTION_REPHRASING_PROMPT template instead of AGGREGATED_GENERATION_PROMPT
- Refactor quiz.py to use QuizGenerator following standard operator pattern
  - Remove direct template and utility function dependencies
  - Use QuizGenerator class methods for prompt building and response parsing
- Export QuizGenerator in model __init__ files

This refactoring follows the same pattern as other operators (e.g., generate_qas.py)
and makes the code more maintainable and consistent with the codebase architecture.
- Replace manual asyncio with run_concurrent utility
- Fix language codes: English/Chinese -> en/zh
- Add progress_bar support
- Add progress_bar parameter to judge_statement function
- Refactor pre_tokenize to use run_concurrent with progress bar support
- Refactor judge.py to use run_concurrent instead of manual semaphore management
- Remove tqdm_async dependency in favor of run_concurrent utility
@gemini-code-assist
Copy link
Contributor

Important

Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services.

@ChenZiHong-Gavin ChenZiHong-Gavin merged commit 66b1e66 into InternScience:main Nov 21, 2025
3 checks passed
CHERRY-ui8 pushed a commit to CHERRY-ui8/GraphGen that referenced this pull request Dec 17, 2025
…-bar-and-refactor-concurrent

refactor: refactor concurrent and add progress bar
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