diff --git a/supplemental/tokenizer/cpp/en/about.html b/supplemental/tokenizer/cpp/en/about.html
index 53af186c..48e76974 100644
--- a/supplemental/tokenizer/cpp/en/about.html
+++ b/supplemental/tokenizer/cpp/en/about.html
@@ -22,7 +22,7 @@
ailia_tokenizer
- 1.3.1.0
+ 1.4.0.0
|
diff --git a/supplemental/tokenizer/cpp/en/about_8md.html b/supplemental/tokenizer/cpp/en/about_8md.html
index 8a4e1984..17e8f36c 100644
--- a/supplemental/tokenizer/cpp/en/about_8md.html
+++ b/supplemental/tokenizer/cpp/en/about_8md.html
@@ -22,7 +22,7 @@
ailia_tokenizer
- 1.3.1.0
+ 1.4.0.0
|
diff --git a/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h.html b/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h.html
index 8e3e37f5..03217374 100644
--- a/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h.html
+++ b/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h.html
@@ -22,7 +22,7 @@
ailia_tokenizer
- 1.3.1.0
+ 1.4.0.0
|
@@ -216,6 +216,9 @@
int AILIA_API | ailiaTokenizerGetVocab (struct AILIATokenizer *net, int token, const char **vocab) |
| Perform encode. More...
|
|
+int AILIA_API | ailiaTokenizerAddSpecialTokens (struct AILIATokenizer *net, const char **tokens, unsigned int count) |
+ | Add SpecialToken. More...
|
+ |
void AILIA_API | ailiaTokenizerDestroy (struct AILIATokenizer *net) |
| It destroys the tokenizer instance. More...
|
|
@@ -537,6 +540,52 @@
+
+◆ ailiaTokenizerAddSpecialTokens()
+
+
+
+
+
+ int AILIA_API ailiaTokenizerAddSpecialTokens |
+ ( |
+ struct AILIATokenizer * |
+ net, |
+
+
+ |
+ |
+ const char ** |
+ tokens, |
+
+
+ |
+ |
+ unsigned int |
+ count |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
Add SpecialToken.
+
- Parameters
-
+
+ net | A tokenizer instance pointer |
+ tokens | Token(UTF8) |
+ count | The number of tokens |
+
+
+
+
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
+
This is valid only for AILIA_TOKENIZER_TYPE_ROBERTA and AILIA_TOKENIZER_TYPE_ROBERTA.
+
+
+
◆ ailiaTokenizerCreate()
diff --git a/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h_source.html b/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h_source.html
index 3b2a93ca..22283dcd 100644
--- a/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h_source.html
+++ b/supplemental/tokenizer/cpp/en/ailia__tokenizer_8h_source.html
@@ -22,7 +22,7 @@
ailia_tokenizer
- 1.3.1.0
+ 1.4.0.0
|
@@ -186,36 +186,39 @@
-
-
-
-
-
-
-
-
-
-
-
- 721 #define ailiaTokenizerOpenModelFile ailiaTokenizerOpenModelFileW
- 722 #define ailiaTokenizerOpenDictionaryFile ailiaTokenizerOpenDictionaryFileW
- 723 #define ailiaTokenizerOpenVocabFile ailiaTokenizerOpenVocabFileW
- 724 #define ailiaTokenizerOpenMergeFile ailiaTokenizerOpenMergeFileW
- 725 #define ailiaTokenizerOpenAddedTokensFile ailiaTokenizerOpenAddedTokensFileW
- 726 #define ailiaTokenizerOpenConfigFile ailiaTokenizerOpenConfigFileW
-
- 728 #define ailiaTokenizerOpenModelFile ailiaTokenizerOpenModelFileA
- 729 #define ailiaTokenizerOpenDictionaryFile ailiaTokenizerOpenDictionaryFileA
- 730 #define ailiaTokenizerOpenVocabFile ailiaTokenizerOpenVocabFileA
- 731 #define ailiaTokenizerOpenMergeFile ailiaTokenizerOpenMergeFileA
- 732 #define ailiaTokenizerOpenAddedTokensFile ailiaTokenizerOpenAddedTokensFileA
- 733 #define ailiaTokenizerOpenTokenizerConfigFile ailiaTokenizerOpenTokenizerConfigFileA
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 745 #define ailiaTokenizerOpenModelFile ailiaTokenizerOpenModelFileW
+ 746 #define ailiaTokenizerOpenDictionaryFile ailiaTokenizerOpenDictionaryFileW
+ 747 #define ailiaTokenizerOpenVocabFile ailiaTokenizerOpenVocabFileW
+ 748 #define ailiaTokenizerOpenMergeFile ailiaTokenizerOpenMergeFileW
+ 749 #define ailiaTokenizerOpenAddedTokensFile ailiaTokenizerOpenAddedTokensFileW
+ 750 #define ailiaTokenizerOpenConfigFile ailiaTokenizerOpenConfigFileW
+
+ 752 #define ailiaTokenizerOpenModelFile ailiaTokenizerOpenModelFileA
+ 753 #define ailiaTokenizerOpenDictionaryFile ailiaTokenizerOpenDictionaryFileA
+ 754 #define ailiaTokenizerOpenVocabFile ailiaTokenizerOpenVocabFileA
+ 755 #define ailiaTokenizerOpenMergeFile ailiaTokenizerOpenMergeFileA
+ 756 #define ailiaTokenizerOpenAddedTokensFile ailiaTokenizerOpenAddedTokensFileA
+ 757 #define ailiaTokenizerOpenTokenizerConfigFile ailiaTokenizerOpenTokenizerConfigFileA
+
+
+
+
+
+
int AILIA_API ailiaTokenizerGetTextLength(struct AILIATokenizer *net, unsigned int *len)
Gets the size of text. (Include null)
int AILIA_API ailiaTokenizerOpenAddedTokensFileA(struct AILIATokenizer *net, const char *path)
Open added tokens file.
@@ -247,6 +250,7 @@
int AILIA_API ailiaTokenizerOpenMergeFileW(struct AILIATokenizer *net, const wchar_t *path)
int AILIA_API ailiaTokenizerGetCharEnds(struct AILIATokenizer *net, int *char_ends, unsigned int count)
Gets the Char end positions.
int AILIA_API ailiaTokenizerDecodeWithSpecialTokens(struct AILIATokenizer *net, const int *tokens, unsigned int token_count)
Perform decode with special tokens.
+int AILIA_API ailiaTokenizerAddSpecialTokens(struct AILIATokenizer *net, const char **tokens, unsigned int count)
Add SpecialToken.