mirror of
https://github.com/Relintai/MLPP.git
synced 2025-02-04 15:55:53 +01:00
Updated Data.cpp
This commit is contained in:
parent
9072e593de
commit
1015009a90
@ -140,15 +140,6 @@ namespace MLPP{
|
|||||||
|
|
||||||
// Images
|
// Images
|
||||||
|
|
||||||
void Data::getImage(std::string fileName, std::vector<double>& image){
|
|
||||||
std::ifstream img(fileName, std::ios::binary);
|
|
||||||
if(!img.is_open()){
|
|
||||||
std::cout << "The file failed to open." << std::endl;
|
|
||||||
}
|
|
||||||
std::vector<double> v{std::istreambuf_iterator<char>{img}, {}};
|
|
||||||
image = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TEXT-BASED & NLP
|
// TEXT-BASED & NLP
|
||||||
std::string Data::toLower(std::string text){
|
std::string Data::toLower(std::string text){
|
||||||
for(int i = 0; i < text.size(); i++){
|
for(int i = 0; i < text.size(); i++){
|
||||||
|
Loading…
Reference in New Issue
Block a user