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

Dev.ap/demo formats #105

Merged
merged 6 commits into from
Jan 14, 2025
Merged

Dev.ap/demo formats #105

merged 6 commits into from
Jan 14, 2025

Conversation

roedoejet
Copy link
Member

Copy link

semanticdiff-com bot commented Dec 20, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  fs2/prediction_writing_callback.py  67% smaller
  fs2/tests/test_writing_callbacks.py  54% smaller
  fs2/cli/synthesize.py  53% smaller
  fs2/model.py  0% smaller

@roedoejet roedoejet requested a review from joanise December 20, 2024 22:03
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 96.07843% with 2 lines in your changes missing coverage. Please review.

Project coverage is 47.01%. Comparing base (87213a9) to head (fab09c5).

Files with missing lines Patch % Lines
fs2/cli/synthesize.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #105      +/-   ##
==========================================
+ Coverage   46.97%   47.01%   +0.03%     
==========================================
  Files          22       22              
  Lines        1486     1489       +3     
==========================================
+ Hits          698      700       +2     
- Misses        788      789       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@joanise joanise left a comment

Choose a reason for hiding this comment

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

I like the refactoring you're doing here, but I'm not sure I like calling get_tokens... directly from everyvoice/demo/app.py. That feels like poor encapsulation to me. And ditto calling save_aligned_text_to_file there.

In fact, choosing spec as the output format causes a crash because that's not how the Spec writer needs to be called.

I think everyvoice/demo/app.py needs to call a function that exists in the base callback class, which you might have to add, so that this all works correctly for each file type in the demo.

@roedoejet roedoejet merged commit fab09c5 into main Jan 14, 2025
5 of 7 checks passed
@roedoejet roedoejet deleted the dev.ap/demo-formats branch January 14, 2025 17:14
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