DialectSoftware.Sematics.WordReader
1.0.1
dotnet add package DialectSoftware.Sematics.WordReader --version 1.0.1
NuGet\Install-Package DialectSoftware.Sematics.WordReader -Version 1.0.1
<PackageReference Include="DialectSoftware.Sematics.WordReader" Version="1.0.1" />
paket add DialectSoftware.Sematics.WordReader --version 1.0.1
#r "nuget: DialectSoftware.Sematics.WordReader, 1.0.1"
// Install DialectSoftware.Sematics.WordReader as a Cake Addin #addin nuget:?package=DialectSoftware.Sematics.WordReader&version=1.0.1 // Install DialectSoftware.Sematics.WordReader as a Cake Tool #tool nuget:?package=DialectSoftware.Sematics.WordReader&version=1.0.1
Parse and coalesce text by applying simple rules in the form of a lambda expression that define word boundaries. Each word is tokenized into a memento that retains all the information about that word within the original context.
example: parsing a double quote qualified csv file.
DialectSoftware.Semantics.WordReader reader = WordReader.Open([path to file]);
bool include = true;
var lines = reader.ReadToEnd(c => c == '\n').Select(r => r.ReadToEnd(c => c == ',').Select(w => w.Coalesce((ref char c, string s, out bool b) =>
{
b = c != '\"' && c != '\r';
return true;
})).ToArray()).ToArray();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
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.1 | 2,640 | 3/24/2013 |