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
<PackageReference Include="Incipit.LogosLink.CorpusEngine" Version="2.0.0.2" />
paket add Incipit.LogosLink.CorpusEngine --version 2.0.0.2
#r "nuget: Incipit.LogosLink.CorpusEngine, 2.0.0.2"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows8.0 is compatible. |
-
net8.0-windows8.0
- DevExpress.Document.Processor (>= 23.2.5)
- DevExpress.RichEdit.Core (>= 23.2.5)
- Incipit.Basics.DataProcessing (>= 1.3.0.14)
- Incipit.Basics.DataTypes (>= 1.3.0.9)
- Incipit.Basics.Infrastructure (>= 1.3.0.17)
- Incipit.CustomProperties.Engine (>= 1.0.0.2)
- Incipit.LogosLink.AgencyEngine (>= 2.0.0.2)
- Incipit.LogosLink.ArgumentationEngine (>= 2.0.0.2)
- Incipit.LogosLink.Common (>= 2.0.0.2)
- Incipit.LogosLink.ContextEngine (>= 2.0.0.2)
- Incipit.LogosLink.OntologyEngine (>= 2.0.0.2)
- Microsoft-WindowsAPICodePack-Shell (>= 1.1.5)
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 | 79 | 12/17/2024 |