summaryrefslogtreecommitdiff
path: root/extractor/data_array.h
diff options
context:
space:
mode:
authorPaul Baltescu <pauldb89@gmail.com>2013-11-26 16:08:41 +0000
committerPaul Baltescu <pauldb89@gmail.com>2013-11-26 16:17:45 +0000
commit7b7167248cd605c9f5bd91b3c87e2826d2336a9f (patch)
tree608c4cf0435225b44a9d34d8f6a7d75cd841ac5a /extractor/data_array.h
parent3ece9d5cf8c58edd55da35ac96f1a5869d7d6608 (diff)
parent0d1f0af81ad2a368bc3216451a87111be8b9f6f5 (diff)
Merge branch 'master' of github.com:pauldb89/cdec
Diffstat (limited to 'extractor/data_array.h')
-rw-r--r--extractor/data_array.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/extractor/data_array.h b/extractor/data_array.h
index c5dc8a26..b96901d1 100644
--- a/extractor/data_array.h
+++ b/extractor/data_array.h
@@ -59,6 +59,14 @@ class DataArray {
// Returns the original word at the specified position.
virtual string GetWordAtIndex(int index) const;
+ // Returns the substring of word ids starting at the specified position and
+ // having the specified length.
+ virtual vector<int> GetWordIds(int start_index, int size) const;
+
+ // Returns the substring of words starting at the specified position and
+ // having the specified length.
+ virtual vector<string> GetWords(int start_index, int size) const;
+
// Returns the size of the data array.
virtual int GetSize() const;