Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript structure generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Transcript structure generator
Merge requests
!3
Feature/homework 2022 11 02
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/homework 2022 11 02
feature/homework-2022-11-02
into
main
Overview
0
Commits
6
Pipelines
0
Changes
8
Merged
Larissa Glass
requested to merge
feature/homework-2022-11-02
into
main
2 years ago
Overview
0
Commits
6
Pipelines
0
Changes
8
Expand
add license
refactor command-line interface
create package
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
848b99eb
6 commits,
2 years ago
8 files
+
126
−
22
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
src/main.py deleted
100644 → 0
+
0
−
17
Options
import
argparse
from
pathlib
import
Path
if
__name__
==
"
__main__
"
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"
--transcripts
"
,
type
=
str
)
parser
.
add_argument
(
"
--annotation
"
,
type
=
str
)
parser
.
add_argument
(
"
--prob_inclusion
"
,
type
=
float
)
args
=
parser
.
parse_args
()
input_transcripts_file
=
args
.
transcripts
input_annotations_file
=
args
.
annotation
prob_inclusion
=
args
.
prob_inclusion
input_transcripts_path
=
Path
(
input_transcripts_file
)
input_annotations_path
=
Path
(
input_annotations_file
)
output_transcripts_file
=
"
generated_
"
+
input_transcripts_path
.
stem
+
"
.csv
"
output_annotations_file
=
"
generated_
"
+
input_annotations_path
.
name
Loading