Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kaldi-commonvoice
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
Container Registry
Model registry
Operate
Environments
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
Simon Will
kaldi-commonvoice
Commits
ddaa1f3d
Commit
ddaa1f3d
authored
9 years ago
by
Dan Povey
Browse files
Options
Downloads
Patches
Plain Diff
Partial work on appending CTC supervison
parent
6d4930c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ctc/cctc-training.h
+0
-1
0 additions, 1 deletion
src/ctc/cctc-training.h
src/ctc/ctc-supervision.h
+14
-5
14 additions, 5 deletions
src/ctc/ctc-supervision.h
with
14 additions
and
6 deletions
src/ctc/cctc-training.h
+
0
−
1
View file @
ddaa1f3d
...
...
@@ -45,7 +45,6 @@ namespace ctc {
// in which the next phone is dependent on the phone history (actually, a truncation
// thereof) in addition to the acoustic history.
struct
CctcTrainingOptions
{
BaseFloat
normalizing_weight
;
BaseFloat
min_post
;
...
...
This diff is collapsed.
Click to expand it.
src/ctc/ctc-supervision.h
+
14
−
5
View file @
ddaa1f3d
...
...
@@ -265,6 +265,15 @@ struct CtcSupervision {
void
Read
(
std
::
istream
&
is
,
bool
binary
);
};
/// This function appends a list of CTC-supervision objects to create a single
/// such object. The normal use-case for this is when you are combining
/// neural-net examples for CTC training.
void
AppendCtcSupervision
(
const
std
::
vector
<
CtcSupervision
>
&
input_supervision
,
CtcSupervision
*
output_supervision
);
/** This function creates a CtcSupervision object with phones-or-blank-plus one
as the labels (you should then further process it using
AddContextToCtcSupervision). You should give it a fully processed
...
...
@@ -336,13 +345,13 @@ class CtcSupervisionSplitter {
/// 'state_times'. The member 'fst' of struct CtcSupervision has this property.
/// Returns the total number of frames. This function is similar to
/// LatticeStateTimes() and CompactLatticeStateTimes() declared in
/// lat/lattice-functions.h
(
except that unlike LatticeStateTimes(), we don't
/// allow epsilons
,
not because they are hard to handle but because in this
/// lat/lattice-functions.h
,
except that unlike LatticeStateTimes(), we don't
/// allow epsilons
--
not because they are hard to handle but because in this
/// context we don't expect them. This function also expects that the input fst
/// will have the property that the state times are in nondecreasing order (as
/// SortBreadthFirstSearch()
does
for FSTs satsifying the other
properties we
/// mentioned). This just happens to be something we enforce
while creating
/// these FSTs.
/// SortBreadthFirstSearch()
will accomplish
for FSTs satsifying the other
///
properties we
mentioned). This just happens to be something we enforce
///
while creating
these FSTs.
///
/// @param fst[in] The input fst: should be epsilon-free; connected; nonempty;
/// should have the property that all paths to a given state (or
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment