Incipit.LogosLink.CorpusEngine 2.0.0.2

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

// Install Incipit.LogosLink.CorpusEngine as a Cake Tool
#tool nuget:?package=Incipit.LogosLink.CorpusEngine&version=2.0.0.2                

Introduction

Thank you for downloading this LogosLink package.

LogosLink is a set of tools for discourse analysis, as described in www.iatml.org. You can use LogosLink as an interactive desktop app or by adding the relevant packages to your project.

This is the Incipit.LogosLink.Corpus package, which contains types to manage corpora in terms of their documents, labels, topics, authors, etc.

How to Get Started

Once you have added this package to your project, you can create corpora, load and save them from disk, and run multiple analytics on them.

Use the Corpus and CorpusPersister classes to create, load and save corpus datasets. Use the different classes under the Incipit.LogosLink.CorpusEngine.Analytics namespace to run analytics on a corpus.

Additional Documentation

Please see the LogosLink Programmer's Guide for complete documentation.

Samples

You can create a new corpus like this:

var cor = new Corpus("Test", "C:\\Temp\\My Corpus", "YourUserName");

Then, you can add, edit and delete corpus elements like this:

//add a few labels to the corpus.
var la1 = cor.AddNewLabel("Red");
var la2 = cor.AddNewLabel("Green");
var la3 = cor.AddNewLabel("Blue");

//add a document and label it.
var doc1 = on.AddNewDocument("My Document");
doc1.AddLabel(la1);
doc1.AddLabel(la3);

//delete.
la3.Delete();
doc1.Delete();

You can load and save corpora like this:

//load a corpus from disk for read/write.
var cor = CorpusPersister.LoadCorpus("C:\\Temp\\My Corpus", "YourUserName", AccessMode.ReadWrite).Corpus;

//save corpus to disk and release write lock.
cor.Persister.SaveCorpus();
cor.Persister.ReleaseLock();

You can run some analytics on an corpus like this:

//create and run a corpus size analyser.
var ana = new CorpusEngine.Analytics.Size.SizeAnalyser(cor);
ana.Run();

//dump word count per topic to the console.
foreach (var kvp in ana.SizesByTopic)
{
	Console.WriteLine($"Topic: {kvp.Key}\tWords: {kvp.Value.Direct.WordCount}");
}

Feedback

We love feedback!

Please write to cesar.gonzalez-perez@incipit.csic.es with your comments and questions. You can also send anonymous feedback on the web at www.iatml.org/en/logoslink/feedback.

Thank you!

Product Compatible and additional computed target framework versions.
.NET net8.0-windows8.0 is compatible. 
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
2.0.0.2 80 12/17/2024