Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren committed Apr 15, 2024
1 parent 41bef6b commit d2504cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/machine-learning/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Overview of ML.NET
description: Discover how to use the ML.NET CLI tool to automatically train the best model from the command-line.
description: Learn about the components that make up ML.NET.
ms.date: 04/15/2024
---

Expand Down
1 change: 1 addition & 0 deletions docs/machine-learning/whats-new/snippets/csharp/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TiktokenExample.RunIt();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ML.Tokenizers" Version="0.21.1" />
<PackageReference Include="Microsoft.ML.Tokenizers" Version="*-*" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using Microsoft.ML.Tokenizers;

Expand All @@ -16,7 +16,7 @@ public static void RunIt()
// encodedIds = {9906, 11, 4435, 0}

// Decode IDs to text.
string decodedText = tokenizer.Decode(encodedIds);
string? decodedText = tokenizer.Decode(encodedIds);
Console.WriteLine($"decodedText = {decodedText}");
// decodedText = Hello, World!

Expand Down

0 comments on commit d2504cf

Please sign in to comment.