⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wordalign.h

📁 这是一款很好用的工具包
💻 H
字号:
/* * WordAlign.h -- *	Word alignment and error computation * * Copyright (c) 1996,1997 SRI International.  All Rights Reserved. * * @(#)$Header: /home/srilm/devel/lm/src/RCS/WordAlign.h,v 1.4 2000/06/12 06:00:27 stolcke Exp $ * */#ifndef _WORD_ALIGN_H_#define _WORD_ALIGN_H_#include "Vocab.h"/* * Error types */typedef enum {	CORR_ALIGN, SUB_ALIGN, DEL_ALIGN, INS_ALIGN, END_ALIGN} WordAlignType;/* * Costs for individual error types.  These are the conventional values * used in speech recognition word alignment. */const unsigned SUB_COST = 4;const unsigned DEL_COST = 3;const unsigned INS_COST = 3;unsigned wordError(const VocabIndex *hyp, const VocabIndex *ref,			unsigned &sub, unsigned &ins, unsigned &del,			WordAlignType *alignment = 0);					/* computes total word error */#endif /* _WORD_ALIGN_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -