9 #ifndef _STRUS_VECTOR_STORGE_TRANSACTION_INTERFACE_HPP_INCLUDED
10 #define _STRUS_VECTOR_STORGE_TRANSACTION_INTERFACE_HPP_INCLUDED
34 virtual void defineFeature(
const std::string& type,
const std::string& feat)=0;
39 virtual void defineScalar(
const std::string& name,
double value)=0;
42 virtual void clear()=0;
Vector type used for word embedding vector calculations.
virtual void defineVector(const std::string &type, const std::string &feat, const WordVector &vec)=0
Define a vector for a feature for later retrieval.
Interface for building a repository of vectors with classifiers to map them to discrete features...
Definition: vectorStorageTransactionInterface.hpp:19
Numeric types used for local and global indices.
virtual void clear()=0
Clear all vectors,types and feature names in the storage.
virtual void defineScalar(const std::string &name, double value)=0
Define some scalar configuration parameter used in calculation (depending on implementation) ...
virtual void rollback()=0
Rollback of the transaction, no changes made.
virtual void defineFeature(const std::string &type, const std::string &feat)=0
Define a feature without vector.
std::vector< float > WordVector
Definition: wordVector.hpp:16
virtual bool commit()=0
Ensure the persistent storage of the features added with addFeature(const std::string&,const WordVector&) till now.
virtual ~VectorStorageTransactionInterface()
Destructor.
Definition: vectorStorageTransactionInterface.hpp:23