You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -114,6 +120,6 @@ public async Task<Embedding> GenerateEmbeddingAsync(string text, CancellationTok
114
120
/// <remarks>
115
121
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
@@ -133,7 +139,6 @@ private static InferenceParams OptionsToParams(TextGenerationOptions options, In
133
139
/// <remarks>
134
140
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
/// <param name="text">Input string to be tokenized</param>
180
-
/// <returns>Read-only list of tokens for the input test</returns>
181
-
/// <remarks>
182
-
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
183
-
/// <see cref="CountTokens(string)"/>
184
-
publicIReadOnlyList<string>GetTokens(stringtext)
185
-
{
186
-
// Ensure the context from last time is disposed (it always should be)
/// <param name="text">Input string to be tokenized</param>
190
-
/// <returns>Read-only list of tokens for the input test</returns>
191
-
/// <remarks>
192
-
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
193
-
/// <see cref="CountTokens(string)"/>
194
-
publicIReadOnlyList<string>GetTokens(stringtext)
195
-
{
196
-
// Ensure the context from last time is disposed (it always should be)
197
-
if(!Context.NativeHandle.IsClosed)
198
-
Context.Dispose();
199
-
Context=_weights.CreateContext(_params,_logger);
200
-
201
-
/* see relevant unit tests for important implementation notes regarding unicode */
/// <returns>Read-only list of tokens for the input test</returns>
189
+
/// <remarks>
190
+
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
0 commit comments