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

Change Transcript object repr / to string #149

Closed
evamaxfield opened this issue Jan 18, 2022 · 0 comments · Fixed by #153
Closed

Change Transcript object repr / to string #149

evamaxfield opened this issue Jan 18, 2022 · 0 comments · Fixed by #153
Labels
enhancement New feature or request

Comments

@evamaxfield
Copy link
Member

I am not sure how to do this for a dataclass but I assume we can just do it in the object definition.

When I print out a Transcript object in a Jupyter notebook or any Python interpreter really, the repr and the tostring include the whole transcript details. I would prefer the shortened details:

Transcript(
    generator='CDP WebVTT Conversion -- CDP v3.0.2',
    confidence=0.9699999999999663,
    session_datetime='2021-11-18T09:30:00-08:00',
    created_datetime='2022-01-12T05:05:00.633612',
    sentences=[...],
    annotations=None
)

Basically hiding the sentences because it makes the repr massive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant