summaryrefslogtreecommitdiff
path: root/extractor/data_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/data_array.h')
-rw-r--r--extractor/data_array.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/extractor/data_array.h b/extractor/data_array.h
index 6d3e99d5..19fbff88 100644
--- a/extractor/data_array.h
+++ b/extractor/data_array.h
@@ -23,8 +23,6 @@ class DataArray {
static string END_OF_FILE_STR;
static string END_OF_LINE_STR;
- DataArray();
-
DataArray(const string& filename);
DataArray(const string& filename, const Side& side);
@@ -43,7 +41,7 @@ class DataArray {
virtual int GetWordId(const string& word) const;
- string GetWord(int word_id) const;
+ virtual string GetWord(int word_id) const;
int GetNumSentences() const;
@@ -55,6 +53,9 @@ class DataArray {
void WriteBinary(FILE* file) const;
+ protected:
+ DataArray();
+
private:
void InitializeDataArray();
void CreateDataArray(const vector<string>& lines);