Emojify.NET
1.1.0
dotnet add package Emojify.NET --version 1.1.0
NuGet\Install-Package Emojify.NET -Version 1.1.0
<PackageReference Include="Emojify.NET" Version="1.1.0" />
<PackageVersion Include="Emojify.NET" Version="1.1.0" />
<PackageReference Include="Emojify.NET" />
paket add Emojify.NET --version 1.1.0
#r "nuget: Emojify.NET, 1.1.0"
#addin nuget:?package=Emojify.NET&version=1.1.0
#tool nuget:?package=Emojify.NET&version=1.1.0
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
- Training: The model is trained using labeled messages (text, emoji).
- Deployment: The trained model is exported as an ONNX file for efficient deployment.
- Prediction: The .NET class library takes text input, predicts the category using the model, and assigns the corresponding emojis.
- 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 | Versions 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. |
-
net8.0
- Microsoft.ML.OnnxRuntime (>= 1.21.0)
-
net9.0
- Microsoft.ML.OnnxRuntime (>= 1.21.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.