-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPreprocessedTermData.cs
44 lines (38 loc) · 1.14 KB
/
PreprocessedTermData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// PreprocessedTermData.cs
//
// Author:
// Mārcis Pinnis <marcis.pinnis@gmail.com>
//
// Copyright (c) 2013 Mārcis Pinnis
//
// This program can be freely used only for scientific and educational purposes.
//
// This program 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.
using System;
using System.Xml;
using System.IO;
using MPFramework;
using System.Text;
namespace MPAligner
{
public class PreprocessedTermData
{
public PreprocessedTermData ()
{
}
public ProcessedTermEntry[] srcTerms;
public ProcessedTermEntry[] trgTerms;
public bool interlinguaDictUsed;
public bool interlinguaTranslitUsed;
public string srcLang;
public string trgLang;
public static PreprocessedTermData ReadFromFile (string inputFile)
{
string inputStr = File.ReadAllText(inputFile,Encoding.UTF8);
return MPFrameworkFunctions.DeserializeString<PreprocessedTermData>(inputStr);
}
}
}