Emojify.NET 1.1.0

dotnet add package Emojify.NET --version 1.1.0
                    
NuGet\Install-Package Emojify.NET -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Emojify.NET" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Emojify.NET" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Emojify.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Emojify.NET --version 1.1.0
                    
#r "nuget: Emojify.NET, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Emojify.NET&version=1.1.0
                    
Install Emojify.NET as a Cake Addin
#tool nuget:?package=Emojify.NET&version=1.1.0
                    
Install Emojify.NET as a Cake Tool

Emojify.NET - Emoji-Based Message Categorization 🏷️🔍

Introduction

Emoji-Based Message Categorization is a .NET class library designed to enhance text communication by categorizing messages into predefined types and formatting them with relevant emojis. This project leverages a machine learning model to predict categories and assign appropriate emojis, making messages more engaging and visually informative.

Features

  • ✅ Machine learning model for message categorization.
  • ✅ .NET class library for text formatting with emojis.
  • ✅ ONNX model export for efficient deployment.

🛠️ How It Works

  1. Training: The model is trained using labeled messages (text, emoji).
  2. Deployment: The trained model is exported as an ONNX file for efficient deployment.
  3. Prediction: The .NET class library takes text input, predicts the category using the model, and assigns the corresponding emojis.
  4. Output: The formatted message is returned with the correct emoji(s).

Usage

To install the Emojify.NET package, run the following command:

dotnet add package Emojify.NET --version 1.1.0

This is how you can use the EmojiPredictor class to predict emojis for a given text:

var predictor = new EmojiPredictor();
var emoji = predictor.PredictEmoji("Successfully run the predictor!");

// Use the emoji as required in your text
Console.WriteLine($"{emoji} Successfully run the predictor!");
✅ Successfully run the predictor!

Alternatively, you can use the EmojifyService class to format your text with emojis:

EmojifyService.Initialize();
var formattedText = EmojifyService.Emojify("Error! The predictor failed to run");
Console.WriteLine(formattedText);
❌ Error! The predictor failed to run

In addition to the Emojify method, you can use the ApplyGloballyToConsole method to apply emojis to all console output automatically:

EmojifyService.Initialize().ApplyGloballyToConsole();
Console.WriteLine("Error! The predictor failed to run");
Console.WriteLine("Warning! The predictor is not running");
❌ Error! The predictor failed to run
⚠️ Warning! The predictor is not running

🚀 Roadmap

  • Optimize emoji selection logic
  • Expand category support

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 135 4/1/2025
1.0.0 143 3/18/2025