From d2504cf6ba0da7e6848bb25764070d994c2e7869 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:54:27 -0700 Subject: [PATCH] fix build warnings --- docs/machine-learning/overview.md | 2 +- docs/machine-learning/whats-new/snippets/csharp/Program.cs | 1 + .../machine-learning/whats-new/snippets/csharp/Project.csproj | 2 +- docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 docs/machine-learning/whats-new/snippets/csharp/Program.cs diff --git a/docs/machine-learning/overview.md b/docs/machine-learning/overview.md index ee0483c5654bc..3278c659079da 100644 --- a/docs/machine-learning/overview.md +++ b/docs/machine-learning/overview.md @@ -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 --- diff --git a/docs/machine-learning/whats-new/snippets/csharp/Program.cs b/docs/machine-learning/whats-new/snippets/csharp/Program.cs new file mode 100644 index 0000000000000..194971ae32a1e --- /dev/null +++ b/docs/machine-learning/whats-new/snippets/csharp/Program.cs @@ -0,0 +1 @@ +TiktokenExample.RunIt(); diff --git a/docs/machine-learning/whats-new/snippets/csharp/Project.csproj b/docs/machine-learning/whats-new/snippets/csharp/Project.csproj index 05d3e73559e06..57fd414b97dfb 100644 --- a/docs/machine-learning/whats-new/snippets/csharp/Project.csproj +++ b/docs/machine-learning/whats-new/snippets/csharp/Project.csproj @@ -7,7 +7,7 @@ - + diff --git a/docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs b/docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs index 68b55b02ecb11..5d26d83c6de9e 100644 --- a/docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs +++ b/docs/machine-learning/whats-new/snippets/csharp/Tiktoken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using Microsoft.ML.Tokenizers; @@ -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!