blob: dc9efe65095792c896c18a9938628f746f529bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <vector>
#include <string>
#include "InputType.h"
/** This struct is used for storing XML force translation data for a given range in the sentence
*/
struct XmlOption {
size_t startPos, endPos;
std::vector<std::string> targetPhrases;
std::vector<float> targetScores;
XmlOption(int s, int e, std::string targetPhrase, float targetScore): startPos(s), endPos(e) {
targetPhrases.push_back(targetPhrase);
targetScores.push_back(targetScore);
}
};
std::vector<TranslationOption*> ProcessAndStripXMLTags(std::string& line, const InputType &source);
|