Skip to content

Commit

Permalink
Included VwParser more cleanly in IO.i
Browse files Browse the repository at this point in the history
  • Loading branch information
frx committed Aug 24, 2011
1 parent 6be180c commit 7cf81e6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/interfaces/modular/Classifier.i
Expand Up @@ -109,8 +109,6 @@
%include <shogun/classifier/vw/VowpalWabbit.h>
%include <shogun/classifier/svm/DomainAdaptationSVMLinear.h>

enum E_VW_PARSER_TYPE { T_VW, T_SVMLIGHT, T_DENSE };

#ifdef HAVE_PYTHON
%pythoncode %{
class SVM(CSVM):
Expand Down
2 changes: 2 additions & 0 deletions src/interfaces/modular/IO.i
Expand Up @@ -27,6 +27,7 @@
%rename(SerializableXmlFile) CSerializableXmlFile;
%rename(SimpleFile) CSimpleFile;
%rename(MemoryMappedFile) CMemoryMappedFile;
%rename(VwParser) CVwParser;

%include <shogun/io/File.h>
%include <shogun/io/StreamingFile.h>
Expand Down Expand Up @@ -70,6 +71,7 @@ namespace shogun

%include <shogun/io/AsciiFile.h>
%include <shogun/io/StreamingAsciiFile.h>
%include <shogun/classifier/vw/VwParser.h>
%include <shogun/io/StreamingVwFile.h>
%include <shogun/io/StreamingVwCacheFile.h>
%include <shogun/io/BinaryFile.h>
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/modular/IO_includes.i
Expand Up @@ -9,6 +9,7 @@
#include <shogun/io/StreamingFileFromSimpleFeatures.h>
#include <shogun/io/AsciiFile.h>
#include <shogun/io/StreamingAsciiFile.h>
#include <shogun/classifier/vw/VwParser.h>
#include <shogun/io/StreamingVwFile.h>
#include <shogun/io/StreamingVwCacheFile.h>
#include <shogun/io/BinaryFile.h>
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/classifier/vw/VwParser.h
Expand Up @@ -61,7 +61,7 @@ class CVwParser: public CSGObject
/**
* Destructor
*/
~CVwParser();
virtual ~CVwParser();

/**
* Get the environment
Expand Down
1 change: 1 addition & 0 deletions src/shogun/io/StreamingVwFile.cpp
Expand Up @@ -72,4 +72,5 @@ void CStreamingVwFile::init()

set_parser_type(T_VW);
write_to_cache = false;
SG_REF(env);
}

0 comments on commit 7cf81e6

Please sign in to comment.