MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RawTextImporter.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_importers_RAWTEXTIMPORTER_HPP_
24 #define SRC_importers_RAWTEXTIMPORTER_HPP_
25 
26 #include <importers/Importer.hpp>
27 
28 namespace mic {
29 namespace importers {
30 
35 class RawTextImporter: public mic::importers::Importer<char, char> {
36 public:
41  RawTextImporter(std::string node_name_ = "raw_text_importer");
42 
46  virtual ~RawTextImporter() { };
47 
52  bool importData();
53 
58  void setDataFilename(std::string data_filename_);
59 
64 
65 private:
69  mic::configuration::Property<std::string> data_filename;
70 };
71 
72 
73 } /* namespace importers */
74 } /* namespace mic */
75 
76 namespace mic {
77 namespace types {
78 
84 
90 
91 }//: namespace types
92 }//: namespace mic
93 
94 #endif /* SRC_importers_RAWTEXTIMPORTER_HPP_ */
mic::types::Sample< char, char > CharSample
The <char-char> pair type used by e.g. RawTextImporter.
void setDataFilename(std::string data_filename_)
Template class storing the data-label pairs. Additionally it stores the the index of the sample (main...
Definition: Sample.hpp:38
mic::types::Batch< char, char > CharBatch
The <char-char> batch type used by e.g. RawTextImporter.
Parent class for all data importers.
Definition: Importer.hpp:51
Contains declaration (and definition) of base template class of all data importers.
mic::configuration::Property< std::string > data_filename
virtual void initializePropertyDependentVariables()
Importer responsible for importing/loading raw text files and returning characters one by one...
RawTextImporter(std::string node_name_="raw_text_importer")