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

[WIP] [Refactor] Reorganization of BERTrend code #17

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

picaultj
Copy link
Collaborator

@picaultj picaultj commented Dec 17, 2024

  • Reorganized code structure

  • TopicModel class to encapsulate initialization and calls to topic models (BERTopic)

  • BERTrend class to encapsulate the main steps of the BERTrend algorithm

  • bertrend.toml config to configurate Embedding and LLM services

  • EmbeddingService to decide between local and remote embeddings

  • Configuration of LLM service

  • some tests (to be completed)

  • Replaced configparser with toml files

  • Harmonization of data loading between prototypes and possibility to load local data

  • Refactoring demo 1 (topic analysis)

  • Admin mode to show/hide some parameters and results

  • Code cleaning

  • Adaptation of topic-based newsletter generation

  • more to come...

picaultj and others added 8 commits December 16, 2024 19:01
- TopicModel class to encapsulate initialization and calls to topic models (BERTopic)
- BERTrend class to encapsulate the main steps of the BERTrend algorithm
- bertrend.toml config to configurate Embedding and LLM services
- EmbeddingService to decide between local and remote embeddings
- some tests (to be completed)
- reorganization of files
- finalized LLM service configuration
@picaultj picaultj linked an issue Dec 17, 2024 that may be closed by this pull request
2 tasks
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from e4c6a96 to 08752e3 Compare December 18, 2024 12:14
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 228abb9 to 10cf9a5 Compare December 19, 2024 12:47
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 96d393d to 8a3c057 Compare December 19, 2024 13:33
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 8e443f7 to f78328d Compare December 20, 2024 09:23
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch 3 times, most recently from bee0120 to 004fac9 Compare December 21, 2024 13:17
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 004fac9 to 12eed54 Compare December 21, 2024 13:19
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from fdda807 to 8a916af Compare December 22, 2024 13:51
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from f3b405e to 4b44aca Compare December 23, 2024 10:22
@picaultj picaultj requested a review from grosjeang December 24, 2024 17:05
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch 2 times, most recently from 83949ce to 5202019 Compare December 30, 2024 16:25
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 5202019 to 2035357 Compare December 30, 2024 16:32
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from d0d84ba to 169b9aa Compare December 31, 2024 11:22
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 169b9aa to 020a994 Compare December 31, 2024 11:39
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 51c7125 to 8c1c142 Compare December 31, 2024 17:27
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 8c1c142 to ccef0f4 Compare December 31, 2024 17:38
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 4fa8ee0 to 9c73d7f Compare January 2, 2025 13:40
@picaultj picaultj force-pushed the 14-refactor-make-a-independent-bertrend-class-to-simplify-usage-and-integration branch from 9c73d7f to 7c1d5dc Compare January 2, 2025 14:27
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.

[Refactor] make a independent BERTrend Class to simplify usage and integration
1 participant