// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#pragma once

#include "common.h"
#include "tokenizer.h"

namespace ufal {
namespace morphodita {

struct tokenized_sentence {
  u32string sentence;
  vector<token_range> tokens;
};

class gru_tokenizer_factory_trainer {
 public:
  static bool train(unsigned version, const vector<tokenized_sentence>& data, ostream& os, string& error);
};

} // namespace morphodita
} // namespace ufal

// This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#pragma once

#include "common.h"
#include "tokenizer.h"

namespace ufal {
namespace morphodita {

class tokenized_sentence {
  u32string sentence;
  vector<token_range> tokens;
};

class gru_tokenizer_factory_trainer {
 public:
  static bool train(unsigned version, const vector<tokenized_sentence>& data, ostream& os, string& error);
};

} // namespace morphodita
} // namespace ufal

--- 
+++ 
@@ -15,7 +15,7 @@
 namespace ufal {
 namespace morphodita {
 
-class tokenized_sentence {
+struct tokenized_sentence {
   u32string sentence;
   vector<token_range> tokens;
 };
Make tokenized_sentence a structure (i.e., all fields public).
