Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
4c92af57
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4c92af57
编写于
7月 18, 2022
作者:
L
lidongdong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:add windows ctc-decoders compile func
上级
b2baf145
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
34 addition
and
8 deletion
+34
-8
third_party/ctc_decoders/scorer.cpp
third_party/ctc_decoders/scorer.cpp
+2
-1
third_party/ctc_decoders/setup.py
third_party/ctc_decoders/setup.py
+8
-7
third_party/install.bat
third_party/install.bat
+24
-0
未找到文件。
third_party/ctc_decoders/scorer.cpp
浏览文件 @
4c92af57
...
...
@@ -13,7 +13,8 @@
#include "decoder_utils.h"
using
namespace
lm
::
ngram
;
// if your platform is windows ,you need add the define
#define F_OK 0
Scorer
::
Scorer
(
double
alpha
,
double
beta
,
const
std
::
string
&
lm_path
,
...
...
third_party/ctc_decoders/setup.py
浏览文件 @
4c92af57
...
...
@@ -89,10 +89,11 @@ FILES = [
or
fn
.
endswith
(
'unittest.cc'
))
]
# yapf: enable
LIBS
=
[
'stdc++'
]
# LIBS = ['stdc++']
LIBS
=
[
'
-static-lib
stdc++'
]
if
platform
.
system
()
!=
'Darwin'
:
LIBS
.
append
(
'rt'
)
# LIBS.append('rt')
pass
ARGS
=
[
'-O3'
,
'-DNDEBUG'
,
'-DKENLM_MAX_ORDER=6'
,
'-std=c++11'
]
...
...
@@ -126,12 +127,12 @@ decoders_module = [
]
setup
(
name
=
'paddlespeech_ctcdecoders'
,
name
=
'paddlespeech_
ldd_
ctcdecoders'
,
version
=
'0.2.0'
,
description
=
"CTC decoders in paddlespeech"
,
author
=
"PaddlePaddle Speech
and Language Team
"
,
author_email
=
"
paddlesl@baidu
.com"
,
author
=
"PaddlePaddle Speech
user lidongdong compile for windows
"
,
author_email
=
"
double_dongli@foxmail
.com"
,
url
=
"https://github.com/PaddlePaddle/PaddleSpeech"
,
license
=
'Apache 2.0, GNU Lesser General Public License v3 (LGPLv3) (LGPL-3)'
,
ext_modules
=
decoders_module
,
py_modules
=
[
'paddlespeech_ctcdecoders'
])
py_modules
=
[
'paddlespeech_
ldd_
ctcdecoders'
])
third_party/install.bat
0 → 100644
浏览文件 @
4c92af57
@echo
off
cd
ctc_decoders
if
not
exist
kenlm
(
git
clone
https
://github.com/Doubledongli/kenlm.git
cd
kenlm
/
git
checkout
df2d717e95183f79a90b2fa6e4307083a351ca6a
cd
..
@echo.
)
if
not
exist
openfst
-
1
.6.3
(
echo
"Download and extract openfst ..."
git
clone
https
://gitee.com/koala999/openfst.git
ren
openfst
openfst
-
1
.6.3
@echo.
)
if
not
exist
ThreadPool
(
git
clone
https
://github.com/progschj/ThreadPool.git
@echo.
)
echo
"Install decoders ..."
python
setup
.py
install
--num
_processes
4
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录