MikaHamalainen.hfst 1.0.0

dotnet add package MikaHamalainen.hfst --version 1.0.0
NuGet\Install-Package MikaHamalainen.hfst -Version 1.0.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="MikaHamalainen.hfst" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikaHamalainen.hfst --version 1.0.0
#r "nuget: MikaHamalainen.hfst, 1.0.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.
// Install MikaHamalainen.hfst as a Cake Addin
#addin nuget:?package=MikaHamalainen.hfst&version=1.0.0

// Install MikaHamalainen.hfst as a Cake Tool
#tool nuget:?package=MikaHamalainen.hfst&version=1.0.0

HFST.net

A C# implementation of HFST. The code is based on HFST for Java.

Usage

You can load a transducer like this

var transducerFile = "/path/to/transducer.hfstol";
var t = new HFST(transducerFile);

HFST can be initialized with a string path, FileStream or BinaryReader.

You can run the transducer like so:

var analyses = t.Lookup("koira+N+Sg+Ine");
foreach (var analysis in analyses)
{
    Console.WriteLine($"{input}\t{analysis}\t{analysis.Weight}");
}

Output:

koira+N+Sg+Ine	koirassa	0

You can get the analysis as a string by calling analysis.ToString()

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MikaHamalainen.hfst:

Package Downloads
UralicNLP

An NLP library for many languages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 128 2/20/2024

First release