Axaprj.LexFeatExtr 1.0.0.1

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

// Install Axaprj.LexFeatExtr as a Cake Tool
#tool nuget:?package=Axaprj.LexFeatExtr&version=1.0.0.1

Axaprj.LexFeatExtr

Text Feature Extraction Formal Grammar Engine

code

VS 2017, VS 2019, .NET Core v2.1

terms and naming

  • Terminal Symbol - A Symbol that presented a particular input token or token sequence. The base element of Expressions.
  • Non-Terminal Symbol - A Symbol that presented a particular Rule. The base element of Expressions and Rules.
  • Rule - Matching non-terminal symbol to Expressions(joined by OR, ordered).
  • Expression - Boolean expression (joined by AND Symbols, a Terminal Symbol is true when it conforms to corresponding by order input token, Non-Terminal Symbol is true when its Rule is true).
  • Grammar - Set of Rules with a start Symbol.
  • Product - Objects created when an input token is matching to Symbol. Non-terminal Products are collections of Products.
  • Product - The whole text-processing result. Is a root node of tree with non-terminal Product nodes and terminal Product leaves.
  • Production - Production Produces Product.
  • Symbol Attribute - Specification of a Symbol. Implements token matching and Product creation.

example

Trivial grammar
Sum calculator
Lists parsing
Consumption info analyzer demo

Sample of specialized texts parsing. Randomly selected parts of specialized texts are used. Easy spacing preprocessing required. See the grammar in source Axaprj.LexFeatExtr.Tests.ConsumptionDemo. Texts and processing results are following:

  • "its combined fuel consumption is reduced to up to 2.4 liters per 100 kilometers ( 98 mpg US ) , with CO 2 emissions of up to 56 grams per kilometer ."
Consumption[combined consumption 
	Vals[Val[val:2.4 l100km] ( Val[val:98 mpg] )]
]
CO2Val[val:56 gkm]
  • "The lowest combined fuel consumption for the range is 7.9 L / 100 km for LS-U and LS-T 4 x 4 autos ( 209 CO 2 emissions ) , and peaks at 8.1 L / 100 km ( for all LS-T and LS-U 4 x 2 and LS-M 4 x 4 ) ."
Consumption[combined consumption 
    Vals[Val[val:7.9 l100km]]
]
// 8.1 value omitted -  bug of the current demo grammar
  • "Its combined fuel consumption is 141.2 - 122.8 mpg , while CO 2 emissions are at least 49 g / km ."
Consumption[combined consumption 
	Vals[Val[[vfrom: 141.2, vto: 122.8] mpg]]
] 
CO2Val[val:49 gkm]
  • "NEDC combined fuel consumption is 4.2 - 4.1 l / 100 km ( preliminary fuel consumption NEDC 1 : urban 4.9 - 4.8 l / 100 km ; extra - urban 3.8 - 3.6 l / 100 km ; combined 4.2 - 4.1 l / 100 km , 95 - 93 g / km CO 2 ;"
Consumption[combined consumption 
	Vals[Val[[vfrom: 4.2, vto: 4.1] l100km]]
] 
Consumption[consumption 
	Vals[
		Val[urban [vfrom: 4.9, vto: 4.8] l100km] ; 
		Val[exurban [vfrom: 3.8, vto: 3.6] l100km] ; 
		Val[combined [vfrom: 4.2, vto: 4.1] l100km] ,
	]
] 
CO2Val[[vfrom: 95, vto: 93] gkm]

authors

Axaprj, Igor Alexeev

You are welcome to Property Indicators Lab! We know how to use it in real projects. For any questions, please contact us at email propertyindicators@gmail.com.

Product 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.

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.0.0.1 478 9/18/2020