ModErn Text Analysis
META Enumerates Textual Applications
Namespaces | Functions
printing.h File Reference
#include <iostream>
#include <string>
#include "logging/logger.h"

Go to the source code of this file.

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 
 meta::printing
 Contains functions that print to the terminal and provide progress bars.
 

Functions

std::string meta::printing::add_commas (const std::string &number)
 
std::string meta::printing::make_green (std::string str)
 
std::string meta::printing::make_red (std::string str)
 
std::string meta::printing::make_bold (std::string str)
 
std::string meta::printing::bytes_to_units (double num_bytes)
 Converts a number of bytes into a human-readable number. More...
 
void meta::printing::show_progress (size_t idx, size_t max, size_t freq, const std::string &prefix="")
 
void meta::printing::end_progress (const std::string &prefix)
 Ends output from a call to show_progess by displaying 100% completion. More...
 

Detailed Description

Author
Sean Massung

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.