ModErn Text Analysis
META Enumerates Textual Applications
Classes | Namespaces | Typedefs | Functions
libsvm_parser.h File Reference
#include <string>
#include <utility>
#include <vector>
#include "meta.h"

Go to the source code of this file.

Classes

class  meta::io::libsvm_parser::libsvm_parser_exception
 Exception class for this parser. More...
 

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::io
 Compressed file readers and writers, configuration file readers, a simple parser, and memory-mapped file support.
 
 meta::io::libsvm_parser
 Parser specifically for libsvm-formatted files.
 

Typedefs

using meta::io::libsvm_parser::counts_t = const std::vector< std::pair< term_id, double >>
 Collection of (term_id, double)
 

Functions

class_label meta::io::libsvm_parser::label (const std::string &text)
 Extracts a class_label from a string in libsvm format. More...
 
counts_t meta::io::libsvm_parser::counts (const std::string &text, bool contains_label=true)
 

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.