forked from hschwenk/cslm-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
5,407 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* This file is part of the continuous space language and translation model toolkit | ||
* for statistical machine translation and large vocabulary speech recognition. | ||
* | ||
* Copyright 2015, Holger Schwenk, LIUM, University of Le Mans, France | ||
* | ||
* The CSLM toolkit is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License version 3 as | ||
* published by the Free Software Foundation | ||
* | ||
* This library is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License | ||
* for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this library; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA | ||
* | ||
* | ||
*/ | ||
|
||
#ifndef _ALIGNREQ_H_ | ||
#define _ALIGNREQ_H_ | ||
|
||
using namespace std; | ||
|
||
#include <vector> | ||
#include "Hypo.h" | ||
|
||
struct AlignReq { | ||
int sb, se; // requested alignment, we can use the word indices only since the source is constant for all hyps | ||
vector<string> tgph; // target phrase | ||
WordID tgwid[16]; // mpped target wordID; TODO: this is an hack, we map many times the same target phrase | ||
Hypo *hyp; // corresponding hypothesis | ||
int bs; // index into bunch that will be processed by NN | ||
float *logP; // log proba (may be several scores) | ||
}; | ||
|
||
#endif |
Oops, something went wrong.