Axaprj.Textc.Vect
1.0.2.1
dotnet add package Axaprj.Textc.Vect --version 1.0.2.1
NuGet\Install-Package Axaprj.Textc.Vect -Version 1.0.2.1
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="Axaprj.Textc.Vect" Version="1.0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Axaprj.Textc.Vect --version 1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Axaprj.Textc.Vect, 1.0.2.1"
#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 Axaprj.Textc.Vect as a Cake Addin #addin nuget:?package=Axaprj.Textc.Vect&version=1.0.2.1 // Install Axaprj.Textc.Vect as a Cake Tool #tool nuget:?package=Axaprj.Textc.Vect&version=1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Axaprj.Textc.Vect
(in the deep development phase now) Natural Language features extraction framework (Takenet.Textc based)
- uses own Takenet.Textc .Net Core port
- a part of FastTextProcess project.
contents
- VWord - ValueToken based on distance metrics of embedded vectors
- MacroReplace - Easy usable and extendable NLP features extractor.
code
VS 2017, .NET Core, SQLite
VWord() textc extension usage explanation
- Uses En Ru Uk aligned vectors DB FastTextRoutinesCyr::ProcCreateDbRuk
- :VWord(consumption) matched to following DictDbTests::TestV2W1consumption
In English
cos(consumption,consumptive)=0.7271223 cos(consumption,overconsumption)=0.8072221 cos(consumption,consumptions)=0.9393129 cos(consumption,underconsumption)=0.7711332 cos(consumption,consumptives)=0.7006535 cos(consumption,production/consumption)=0.7023017 cos(consumption,income–consumption)=0.7680753 cos(consumption,deconsumption)=0.7769312 cos(consumption,consumption,)=0.8818358 cos(consumption,‘consumption)=0.8400897 cos(consumption,nonconsumption)=0.8223644 cos(consumption,consumption/)=0.7580206 cos(consumption,autoconsumption)=0.7710906 cos(consumption,hyperconsumption)=0.7327829 cos(consumption,#consumption)=0.838056
In Russian
cos(consumption,потребления)=0.4010898 cos(consumption,потребление)=0.4859301 cos(consumption,потреблению)=0.3793698 cos(consumption,потреблять)=0.3513061 cos(consumption,потребление —)=0.3628894 cos(consumption,потребления,)=0.3594068
MacroReplace example
- Uses En vectors DB FastTextProcess.Tests.FastTextRoutinesEn.ProcCreateDbTest
- Example Axaprj.Textc.Vect.Test.ReplaceDemoTest.VehiclesFeaturesTest
Input:
The EU5-compliant, 130kW/430Nm 3.0-litre turbo-diesel engine introduced in the MY16.5 MU-X(and MY17 D-MAX) continues on with the option of six-speed manual or six-speed automatic transmissions.
The lowest combined fuel consumption for the range is 7.9L/100km for LS-U and LS-T 4x4 autos(209 CO2 emissions),
and peaks at 8.1 liter per 100 km.
Output:
The <%VFeat.EU5compliant%> , 130 kW / 430 Nm <%VFeat.DIESEL_ENG(3.0, UOM.L)%> introduced in the MY16 . 5 MU - X ( and MY17 D - MAX ) continues on with the option of six - speed manual or six - speed automatic transmissions .
The lowest combined fuel consumption for the range is <%VFeat.FuelConsumption(7.9, UOM.L_100Km)%> for LS - U and LS - T 4 x4 autos ( <%VFeat.CO2(209, UOM.g_Km)%> ) ,
and peaks at <%VFeat.FuelConsumption(8.1, UOM.L_100Km)%> .
Rules set
/// <summary>Unit Of Measure</summary>
enum UOM
{
kW,
Nm,
L,
L_100Km,
g_Km
}
/// <summary>Vehicles Features</summary>
enum VFeat
{
[ReplaceTC(
SyntaxPattern = ":Word(EU5) :Word?(-) :VWord(compliant)", Lng = LangLabel.en)]
EU5compliant,
[ReplaceNum(
SyntaxPattern =
"num:Decimal :Word?(-) :VWord?(litre) :VWord?(turbo) :Word?(-) :VWord(diesel) :VWord(engine)",
UOM = UOM.L, Lng = LangLabel.en)]
DIESEL_ENG,
[ReplaceNum(
SyntaxPattern =
"num:Decimal :Word(CO2) :VWord?(emission)",
UOM = UOM.g_Km, Lng = LangLabel.en)]
CO2,
[ReplaceNum(
SyntaxPatterns = new string[] {
"num:Decimal :VWord(liters) :VWord(per) :Word(100) :VWord(kilometers)",
"num:Decimal :Word(L) :Word(/) :Word(100) :Word(km)"
},
UOM = UOM.L_100Km, Lng = LangLabel.en)]
FuelConsumption
}
revision history
2020 May 16: v1.0.2.1 VReplaceTextCursor refactoring 2020 May 11: v1.0.2.0 MacroReplace implementation refactoring 2020 May 02: v1.0.1.1 MacroReplace implementation 2019 Dec 22: v0.0.1 VWord implementation
author
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Axaprj.WordToVecDB (>= 1.0.2)
- Takenet.Textc.Core (>= 0.2.29)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.