Documentation ¶
Overview ¶
Code generated by wazero-emscripten-embind, DO NOT EDIT.
because Bergamot uses Marian, which uses SentencePiece, which uses multithreading, it is now hard to generate embind code for given module as Wazero does support thread feature only experimentally. If it is needed to regenerate code, the Bergamot project can be built with -DUSE_SENTENCE_PIECE=off CMake option.
Code generated by wazero-emscripten-embind, DO NOT EDIT.
Code generated by wazero-emscripten-embind, DO NOT EDIT.
Index ¶
- func AlignedMemory(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func AlignedMemoryList(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func Attach(e embind.Engine) error
- func BlockingService(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func Response(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func TranslationModel(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func VectorResponse(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func VectorResponseOptions(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- func VectorString(e embind.Engine, ctx context.Context) (embind.ClassBase, error)
- type ClassAlignedMemory
- func (class *ClassAlignedMemory) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassAlignedMemory) Clone(ctx context.Context) (*ClassAlignedMemory, error)
- func (class *ClassAlignedMemory) Delete(ctx context.Context) error
- func (class *ClassAlignedMemory) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassAlignedMemory) GetByteArrayView(ctx context.Context) (any, error)
- func (class *ClassAlignedMemory) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassAlignedMemory) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassAlignedMemory) IsDeleted(ctx context.Context) bool
- func (class *ClassAlignedMemory) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassAlignedMemory) Size(ctx context.Context) (uint32, error)
- type ClassAlignedMemoryList
- func (class *ClassAlignedMemoryList) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassAlignedMemoryList) Clone(ctx context.Context) (*ClassAlignedMemoryList, error)
- func (class *ClassAlignedMemoryList) Delete(ctx context.Context) error
- func (class *ClassAlignedMemoryList) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassAlignedMemoryList) Get(ctx context.Context, arg0 uint32) (any, error)
- func (class *ClassAlignedMemoryList) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassAlignedMemoryList) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassAlignedMemoryList) IsDeleted(ctx context.Context) bool
- func (class *ClassAlignedMemoryList) Push_back(ctx context.Context, arg0 embind.ClassBase) error
- func (class *ClassAlignedMemoryList) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error
- func (class *ClassAlignedMemoryList) Set(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) (bool, error)
- func (class *ClassAlignedMemoryList) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassAlignedMemoryList) Size(ctx context.Context) (uint32, error)
- type ClassBlockingService
- func (class *ClassBlockingService) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassBlockingService) Clone(ctx context.Context) (*ClassBlockingService, error)
- func (class *ClassBlockingService) Delete(ctx context.Context) error
- func (class *ClassBlockingService) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassBlockingService) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassBlockingService) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassBlockingService) IsDeleted(ctx context.Context) bool
- func (class *ClassBlockingService) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassBlockingService) Translate(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, ...) (embind.ClassBase, error)
- func (class *ClassBlockingService) TranslateViaPivoting(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, ...) (embind.ClassBase, error)
- type ClassResponse
- func (class *ClassResponse) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassResponse) Clone(ctx context.Context) (*ClassResponse, error)
- func (class *ClassResponse) Delete(ctx context.Context) error
- func (class *ClassResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassResponse) GetOriginalText(ctx context.Context) (string, error)
- func (class *ClassResponse) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassResponse) GetSourceSentence(ctx context.Context, arg0 uint32) (map[string]any, error)
- func (class *ClassResponse) GetTranslatedSentence(ctx context.Context, arg0 uint32) (map[string]any, error)
- func (class *ClassResponse) GetTranslatedText(ctx context.Context) (string, error)
- func (class *ClassResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassResponse) IsDeleted(ctx context.Context) bool
- func (class *ClassResponse) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassResponse) Size(ctx context.Context) (uint32, error)
- type ClassTranslationModel
- func (class *ClassTranslationModel) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassTranslationModel) Clone(ctx context.Context) (*ClassTranslationModel, error)
- func (class *ClassTranslationModel) Delete(ctx context.Context) error
- func (class *ClassTranslationModel) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassTranslationModel) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassTranslationModel) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassTranslationModel) IsDeleted(ctx context.Context) bool
- func (class *ClassTranslationModel) SetProperty(ctx context.Context, name string, value any) error
- type ClassVectorResponse
- func (class *ClassVectorResponse) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassVectorResponse) Clone(ctx context.Context) (*ClassVectorResponse, error)
- func (class *ClassVectorResponse) Delete(ctx context.Context) error
- func (class *ClassVectorResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassVectorResponse) Get(ctx context.Context, arg0 uint32) (any, error)
- func (class *ClassVectorResponse) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassVectorResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassVectorResponse) IsDeleted(ctx context.Context) bool
- func (class *ClassVectorResponse) Push_back(ctx context.Context, arg0 embind.ClassBase) error
- func (class *ClassVectorResponse) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error
- func (class *ClassVectorResponse) Set(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) (bool, error)
- func (class *ClassVectorResponse) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassVectorResponse) Size(ctx context.Context) (uint32, error)
- type ClassVectorResponseOptions
- func (class *ClassVectorResponseOptions) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassVectorResponseOptions) Clone(ctx context.Context) (*ClassVectorResponseOptions, error)
- func (class *ClassVectorResponseOptions) Delete(ctx context.Context) error
- func (class *ClassVectorResponseOptions) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassVectorResponseOptions) Get(ctx context.Context, arg0 uint32) (any, error)
- func (class *ClassVectorResponseOptions) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassVectorResponseOptions) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassVectorResponseOptions) IsDeleted(ctx context.Context) bool
- func (class *ClassVectorResponseOptions) Push_back(ctx context.Context, arg0 map[string]any) error
- func (class *ClassVectorResponseOptions) Resize(ctx context.Context, arg0 uint32, arg1 map[string]any) error
- func (class *ClassVectorResponseOptions) Set(ctx context.Context, arg0 uint32, arg1 map[string]any) (bool, error)
- func (class *ClassVectorResponseOptions) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassVectorResponseOptions) Size(ctx context.Context) (uint32, error)
- type ClassVectorString
- func (class *ClassVectorString) CallMethod(ctx context.Context, name string, arguments ...any) (any, error)
- func (class *ClassVectorString) Clone(ctx context.Context) (*ClassVectorString, error)
- func (class *ClassVectorString) Delete(ctx context.Context) error
- func (class *ClassVectorString) DeleteLater(ctx context.Context) (embind.ClassBase, error)
- func (class *ClassVectorString) Get(ctx context.Context, arg0 uint32) (any, error)
- func (class *ClassVectorString) GetProperty(ctx context.Context, name string) (any, error)
- func (class *ClassVectorString) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
- func (class *ClassVectorString) IsDeleted(ctx context.Context) bool
- func (class *ClassVectorString) Push_back(ctx context.Context, arg0 string) error
- func (class *ClassVectorString) Resize(ctx context.Context, arg0 uint32, arg1 string) error
- func (class *ClassVectorString) Set(ctx context.Context, arg0 uint32, arg1 string) (bool, error)
- func (class *ClassVectorString) SetProperty(ctx context.Context, name string, value any) error
- func (class *ClassVectorString) Size(ctx context.Context) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignedMemory ¶
func AlignedMemoryList ¶
func BlockingService ¶
func TranslationModel ¶
func VectorResponse ¶
func VectorResponseOptions ¶
func VectorString ¶
Types ¶
type ClassAlignedMemory ¶
type ClassAlignedMemory struct {
embind.ClassBase
}
func NewClassAlignedMemory ¶
func (*ClassAlignedMemory) CallMethod ¶
func (*ClassAlignedMemory) Clone ¶
func (class *ClassAlignedMemory) Clone(ctx context.Context) (*ClassAlignedMemory, error)
func (*ClassAlignedMemory) Delete ¶
func (class *ClassAlignedMemory) Delete(ctx context.Context) error
func (*ClassAlignedMemory) DeleteLater ¶
func (class *ClassAlignedMemory) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassAlignedMemory) GetByteArrayView ¶
func (class *ClassAlignedMemory) GetByteArrayView(ctx context.Context) (any, error)
func (*ClassAlignedMemory) GetProperty ¶
func (*ClassAlignedMemory) IsAliasOf ¶
func (class *ClassAlignedMemory) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassAlignedMemory) IsDeleted ¶
func (class *ClassAlignedMemory) IsDeleted(ctx context.Context) bool
func (*ClassAlignedMemory) SetProperty ¶
type ClassAlignedMemoryList ¶
type ClassAlignedMemoryList struct {
embind.ClassBase
}
func NewClassAlignedMemoryList ¶
func NewClassAlignedMemoryList(e embind.Engine, ctx context.Context) (*ClassAlignedMemoryList, error)
func (*ClassAlignedMemoryList) CallMethod ¶
func (*ClassAlignedMemoryList) Clone ¶
func (class *ClassAlignedMemoryList) Clone(ctx context.Context) (*ClassAlignedMemoryList, error)
func (*ClassAlignedMemoryList) Delete ¶
func (class *ClassAlignedMemoryList) Delete(ctx context.Context) error
func (*ClassAlignedMemoryList) DeleteLater ¶
func (class *ClassAlignedMemoryList) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassAlignedMemoryList) GetProperty ¶
func (*ClassAlignedMemoryList) IsAliasOf ¶
func (class *ClassAlignedMemoryList) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassAlignedMemoryList) IsDeleted ¶
func (class *ClassAlignedMemoryList) IsDeleted(ctx context.Context) bool
func (*ClassAlignedMemoryList) Push_back ¶
func (class *ClassAlignedMemoryList) Push_back(ctx context.Context, arg0 embind.ClassBase) error
func (*ClassAlignedMemoryList) Resize ¶
func (class *ClassAlignedMemoryList) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error
func (*ClassAlignedMemoryList) SetProperty ¶
type ClassBlockingService ¶
type ClassBlockingService struct {
embind.ClassBase
}
func NewClassBlockingService ¶
func (*ClassBlockingService) CallMethod ¶
func (*ClassBlockingService) Clone ¶
func (class *ClassBlockingService) Clone(ctx context.Context) (*ClassBlockingService, error)
func (*ClassBlockingService) Delete ¶
func (class *ClassBlockingService) Delete(ctx context.Context) error
func (*ClassBlockingService) DeleteLater ¶
func (class *ClassBlockingService) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassBlockingService) GetProperty ¶
func (*ClassBlockingService) IsAliasOf ¶
func (class *ClassBlockingService) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassBlockingService) IsDeleted ¶
func (class *ClassBlockingService) IsDeleted(ctx context.Context) bool
func (*ClassBlockingService) SetProperty ¶
func (*ClassBlockingService) Translate ¶
func (class *ClassBlockingService) Translate(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, arg2 embind.ClassBase) (embind.ClassBase, error)
func (*ClassBlockingService) TranslateViaPivoting ¶
func (class *ClassBlockingService) TranslateViaPivoting(ctx context.Context, arg0 embind.ClassBase, arg1 embind.ClassBase, arg2 embind.ClassBase, arg3 embind.ClassBase) (embind.ClassBase, error)
type ClassResponse ¶
type ClassResponse struct {
embind.ClassBase
}
func NewClassResponse ¶
func NewClassResponse(e embind.Engine, ctx context.Context) (*ClassResponse, error)
func (*ClassResponse) CallMethod ¶
func (*ClassResponse) Clone ¶
func (class *ClassResponse) Clone(ctx context.Context) (*ClassResponse, error)
func (*ClassResponse) DeleteLater ¶
func (class *ClassResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassResponse) GetOriginalText ¶
func (class *ClassResponse) GetOriginalText(ctx context.Context) (string, error)
func (*ClassResponse) GetProperty ¶
func (*ClassResponse) GetSourceSentence ¶
func (*ClassResponse) GetTranslatedSentence ¶
func (*ClassResponse) GetTranslatedText ¶
func (class *ClassResponse) GetTranslatedText(ctx context.Context) (string, error)
func (*ClassResponse) IsAliasOf ¶
func (class *ClassResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassResponse) SetProperty ¶
type ClassTranslationModel ¶
type ClassTranslationModel struct {
embind.ClassBase
}
func NewClassTranslationModel ¶
func NewClassTranslationModel(e embind.Engine, ctx context.Context, arg0 string, arg1 embind.ClassBase, arg2 embind.ClassBase, arg3 embind.ClassBase, arg4 embind.ClassBase) (*ClassTranslationModel, error)
func (*ClassTranslationModel) CallMethod ¶
func (*ClassTranslationModel) Clone ¶
func (class *ClassTranslationModel) Clone(ctx context.Context) (*ClassTranslationModel, error)
func (*ClassTranslationModel) Delete ¶
func (class *ClassTranslationModel) Delete(ctx context.Context) error
func (*ClassTranslationModel) DeleteLater ¶
func (class *ClassTranslationModel) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassTranslationModel) GetProperty ¶
func (*ClassTranslationModel) IsAliasOf ¶
func (class *ClassTranslationModel) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassTranslationModel) IsDeleted ¶
func (class *ClassTranslationModel) IsDeleted(ctx context.Context) bool
func (*ClassTranslationModel) SetProperty ¶
type ClassVectorResponse ¶
type ClassVectorResponse struct {
embind.ClassBase
}
func NewClassVectorResponse ¶
func NewClassVectorResponse(e embind.Engine, ctx context.Context) (*ClassVectorResponse, error)
func (*ClassVectorResponse) CallMethod ¶
func (*ClassVectorResponse) Clone ¶
func (class *ClassVectorResponse) Clone(ctx context.Context) (*ClassVectorResponse, error)
func (*ClassVectorResponse) Delete ¶
func (class *ClassVectorResponse) Delete(ctx context.Context) error
func (*ClassVectorResponse) DeleteLater ¶
func (class *ClassVectorResponse) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassVectorResponse) GetProperty ¶
func (*ClassVectorResponse) IsAliasOf ¶
func (class *ClassVectorResponse) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassVectorResponse) IsDeleted ¶
func (class *ClassVectorResponse) IsDeleted(ctx context.Context) bool
func (*ClassVectorResponse) Push_back ¶
func (class *ClassVectorResponse) Push_back(ctx context.Context, arg0 embind.ClassBase) error
func (*ClassVectorResponse) Resize ¶
func (class *ClassVectorResponse) Resize(ctx context.Context, arg0 uint32, arg1 embind.ClassBase) error
func (*ClassVectorResponse) SetProperty ¶
type ClassVectorResponseOptions ¶
type ClassVectorResponseOptions struct {
embind.ClassBase
}
func NewClassVectorResponseOptions ¶
func NewClassVectorResponseOptions(e embind.Engine, ctx context.Context) (*ClassVectorResponseOptions, error)
func (*ClassVectorResponseOptions) CallMethod ¶
func (*ClassVectorResponseOptions) Clone ¶
func (class *ClassVectorResponseOptions) Clone(ctx context.Context) (*ClassVectorResponseOptions, error)
func (*ClassVectorResponseOptions) Delete ¶
func (class *ClassVectorResponseOptions) Delete(ctx context.Context) error
func (*ClassVectorResponseOptions) DeleteLater ¶
func (class *ClassVectorResponseOptions) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassVectorResponseOptions) GetProperty ¶
func (*ClassVectorResponseOptions) IsAliasOf ¶
func (class *ClassVectorResponseOptions) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassVectorResponseOptions) IsDeleted ¶
func (class *ClassVectorResponseOptions) IsDeleted(ctx context.Context) bool
func (*ClassVectorResponseOptions) SetProperty ¶
type ClassVectorString ¶
type ClassVectorString struct {
embind.ClassBase
}
func NewClassVectorString ¶
func NewClassVectorString(e embind.Engine, ctx context.Context) (*ClassVectorString, error)
func (*ClassVectorString) CallMethod ¶
func (*ClassVectorString) Clone ¶
func (class *ClassVectorString) Clone(ctx context.Context) (*ClassVectorString, error)
func (*ClassVectorString) Delete ¶
func (class *ClassVectorString) Delete(ctx context.Context) error
func (*ClassVectorString) DeleteLater ¶
func (class *ClassVectorString) DeleteLater(ctx context.Context) (embind.ClassBase, error)
func (*ClassVectorString) GetProperty ¶
func (*ClassVectorString) IsAliasOf ¶
func (class *ClassVectorString) IsAliasOf(ctx context.Context, second embind.ClassBase) (bool, error)
func (*ClassVectorString) IsDeleted ¶
func (class *ClassVectorString) IsDeleted(ctx context.Context) bool
func (*ClassVectorString) Push_back ¶
func (class *ClassVectorString) Push_back(ctx context.Context, arg0 string) error
func (*ClassVectorString) SetProperty ¶
Click to show internal directories.
Click to hide internal directories.