v2.0.0
Loading...
Searching...
No Matches
inv_source_estimate_token.h
Go to the documentation of this file.
1//=============================================================================================================
40
41#ifndef INV_SOURCE_ESTIMATE_TOKEN_H
42#define INV_SOURCE_ESTIMATE_TOKEN_H
43
44//=============================================================================================================
45// INCLUDES
46//=============================================================================================================
47
48#include "inv_global.h"
49#include "inv_token.h"
50
51#include <vector>
52
53//=============================================================================================================
54// FORWARD DECLARATIONS
55//=============================================================================================================
56
57namespace INVLIB
58{
60}
61
62//=============================================================================================================
63// DEFINE NAMESPACE INVLIB
64//=============================================================================================================
65
66namespace INVLIB
67{
68
69//=============================================================================================================
87INVSHARED_EXPORT std::vector<InvToken> tokenize(const InvSourceEstimate& estimate,
88 const InvTokenizeOptions& options = InvTokenizeOptions());
89
90//=============================================================================================================
104INVSHARED_EXPORT InvSourceEstimate fromTokens(const std::vector<InvToken>& tokens);
105
106} // NAMESPACE INVLIB
107
108#endif // INV_SOURCE_ESTIMATE_TOKEN_H
Token vocabulary and structures for foundation-model tokenization of InvSourceEstimate.
inverse library export/import macros.
#define INVSHARED_EXPORT
Definition inv_global.h:52
Inverse source estimation (MNE, dSPM, sLORETA, dipole fitting).
INVSHARED_EXPORT InvSourceEstimate fromTokens(const std::vector< InvToken > &tokens)
Reconstruct an InvSourceEstimate from a token sequence.
INVSHARED_EXPORT std::vector< InvToken > tokenize(const InvSourceEstimate &estimate, const InvTokenizeOptions &options=InvTokenizeOptions())
Serialise an InvSourceEstimate into a flat token sequence.
Tokenization options controlling layer inclusion and sub-sampling.
Definition inv_token.h:243