Kaldi
options-itf.h
Go to the documentation of this file.
1
// itf/options-itf.h
2
3
// Copyright 2013 Tanel Alumae, Tallinn University of Technology
4
5
// See ../../COPYING for clarification regarding multiple authors
6
//
7
// Licensed under the Apache License, Version 2.0 (the "License");
8
// you may not use this file except in compliance with the License.
9
// You may obtain a copy of the License at
10
//
11
// http://www.apache.org/licenses/LICENSE-2.0
12
//
13
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
// WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
// MERCHANTABLITY OR NON-INFRINGEMENT.
17
// See the Apache 2 License for the specific language governing permissions and
18
// limitations under the License.
19
20
#ifndef KALDI_ITF_OPTIONS_ITF_H_
21
#define KALDI_ITF_OPTIONS_ITF_H_ 1
22
#include "
base/kaldi-common.h
"
23
24
namespace
kaldi
{
25
26
class
OptionsItf
{
27
public
:
28
29
virtual
void
Register
(
const
std::string &name,
30
bool
*ptr,
const
std::string &doc) = 0;
31
virtual
void
Register
(
const
std::string &name,
32
int32
*ptr,
const
std::string &doc) = 0;
33
virtual
void
Register
(
const
std::string &name,
34
uint32 *ptr,
const
std::string &doc) = 0;
35
virtual
void
Register
(
const
std::string &name,
36
float
*ptr,
const
std::string &doc) = 0;
37
virtual
void
Register
(
const
std::string &name,
38
double
*ptr,
const
std::string &doc) = 0;
39
virtual
void
Register
(
const
std::string &name,
40
std::string *ptr,
const
std::string &doc) = 0;
41
42
virtual
~OptionsItf
() {}
43
};
44
45
}
// namespace Kaldi
46
47
#endif // KALDI_ITF_OPTIONS_ITF_H_
48
49
kaldi
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition:
chain.dox:20
kaldi::int32
kaldi::int32 int32
Definition:
online-tcp-source.cc:27
kaldi::OptionsItf::~OptionsItf
virtual ~OptionsItf()
Definition:
options-itf.h:42
kaldi::OptionsItf::Register
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
kaldi::OptionsItf
Definition:
options-itf.h:26
kaldi-common.h
itf
options-itf.h
Generated by
1.8.13