Skip to content

LATINO is a light-weight library for building text mining applications in C#

License

Notifications You must be signed in to change notification settings

LatinoLib/LATINO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LATINO

Get It and Set It Up

  1. Clone LATINO from the GIT repository into, for example, C:\Work\Latino:
C:\Work>git clone git@github.com:LatinoLib/LATINO.git Latino
  1. If you plan to use any of the SVM models (SvmBinaryClassifier, SvmMulticlassClassifier) and/or the least-squares regression model (LSqrModel), you need to add the path C:\Work\Latino\Bin32 to the environmental variable PATH. On a 64-bit OS, you need to add C:\Work\Latino\Bin64 instead.

Test It

  1. Start Visual Studio.
  2. Create a new console-mode project.
  3. Add Latino.csproj (C:\Work\Latino\Latino.csproj) to the solution. This project file was created in Visual Studio 2010. If you are using a later version, VS will automatically upgrade it.
  4. Reference LATINO from the created project (References / Add Reference).
  5. Copy-paste the following code into Program.cs:
using System;
using Latino;

namespace LatinoTest
{
       class Program
       {
           static void Main(string[] args)
           {
               SparseVector<char> v = new SparseVector<char>("Hello World!".ToCharArray());
               Console.WriteLine(v);
           }
       }
}
  1. Start the program.

Building Dependencies

If you plan to use any of the SVM models (SvmBinaryClassifier, SvmMulticlassClassifier) and/or the least-squares regression model (LSqrModel), you need two unmanaged libraries, SvmLightLib and LSqrWin, respectively. These libraries come precompiled with LATINO but in case you want to make changes, you can build them yourself by following the instructions below.

SvmLightLib

Get It

Clone SvmLightLib from the GIT repository into, for example, C:\Work\SvmLightLib:

C:\Work>git clone git@github.com:LatinoLib/SvmLightLib.git SvmLightLib

Compile and Deploy It

  1. Start Visual Studio.
  2. Open SvmLightLib.sln (C:\Work\SvmLightLib\SvmLightLib.sln). This solution file and the referenced project files were created in Visual Studio 2010. If you are using a later version, VS will automatically convert these files.
  3. Set SvmLightLib as the start-up project.
  4. Build the library:
  • If you need the 32-bit binaries, build the configurations Debug/x86 and Release/x86. The DLL files, SvmLightLibDebug.dll and SvmLightLib.dll, will appear in the folder bin\x86 (C:\Work\SvmLightLib\bin\x86).
  • If you need the 64-bit binaries, build the configurations Debug/x64 and Release/x64. The DLL files, SvmLightLibDebug.dll and SvmLightLib.dll, will appear in the folder bin\x64 (C:\Work\SvmLightLib\bin\x64).
  1. Copy the DLL files into the LATINO Bin folder (C:\Work\Latino\Bin32 or C:\Work\Latino\Bin64). Make sure that you have added the LATINO Bin folder to the environmental variable PATH.

LSqrWin

Get It

Clone LSqrWin from the GIT repository into, for example, C:\Work\LSqrWin:

C:\Work>git clone git@github.com:LatinoLib/LSqrWin.git LSqrWin

Compile and Deploy It

  1. Start Visual Studio.
  2. Open LSqrDll.sln (C:\Work\LSqrWin\LSqrDll\Src\LSqrDll.sln). This solution file and the referenced project files were created in Visual Studio 2010. If you are using a later version, VS will automatically convert these files.
  3. Build the library:
  • If you need the 32-bit binaries, build the configurations Debug/x86 and Release/x86. The DLL files, LSqrDebug.dll and LSqr.dll, will appear in the folder Bin\x86 (C:\Work\LSqrWin\LSqrDll\Bin\x86).
  • If you need the 64-bit binaries, build the configurations Debug/x64 and Release/x64. The DLL files, LSqrDebug.dll and LSqr.dll, will appear in the folder Bin\x64 (C:\Work\LSqrWin\LSqrDll\Bin\x64).
  1. Copy the DLL files into the LATINO Bin folder (C:\Work\Latino\Bin32 or C:\Work\Latino\Bin64). Make sure that you have added the LATINO Bin folder to the environmental variable PATH.

License

Most of LATINO is under the MIT license. However, certain parts fall under other licenses. See LICENSE.txt for more details.

About

LATINO is a light-weight library for building text mining applications in C#

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages