@Namespace(value="sentencepiece") @NoOffset @Properties(inherit=sentencepiece.class) public class SentencePieceNormalizer extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SentencePieceNormalizer() |
SentencePieceNormalizer(long size)
Native array allocator.
|
SentencePieceNormalizer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
SentencePieceNormalizer |
getPointer(long i) |
Status |
LoadFromRuleName(String name) |
Status |
LoadFromRuleTSV(String filename) |
Status |
LoadFromSerializedProto(String serialized) |
NormalizerSpec |
mutable_normalizer_spec() |
String |
Normalize(String input) |
Status |
Normalize(String input,
BytePointer normalized) |
Status |
Normalize(String input,
BytePointer normalized,
SizeTPointer norm_to_orig) |
SentencePieceNormalizer |
position(long position) |
String |
serialized_model_proto() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SentencePieceNormalizer(Pointer p)
Pointer(Pointer)
.public SentencePieceNormalizer(long size)
Pointer.position(long)
.public SentencePieceNormalizer()
public SentencePieceNormalizer position(long position)
public SentencePieceNormalizer getPointer(long i)
getPointer
in class Pointer
@ByVal public Status LoadFromSerializedProto(@StdString String serialized)
@ByVal public Status LoadFromRuleTSV(@StdString String filename)
@ByVal public Status LoadFromRuleName(@StdString String name)
@ByVal public Status Normalize(@StdString String input, @StdString @Cast(value={"char*","std::string*"}) BytePointer normalized)
@ByVal public Status Normalize(@StdString String input, @StdString @Cast(value={"char*","std::string*"}) BytePointer normalized, @Cast(value="size_t*") @StdVector SizeTPointer norm_to_orig)
@StdString public String Normalize(@StdString String input)
public NormalizerSpec mutable_normalizer_spec()
@StdString public String serialized_model_proto()
Copyright © 2024. All rights reserved.