BSD Ports

textproc/libtextcat 2.2_6 GhostBSD

Language guessing by N-Gram-Based Text Categorization

System
GhostBSD
Repository
GhostBSD
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
textproc
Package size
162.9 KiB, 453.9 KiB installed

Description

Libtextcat is a library with functions that implement the classification technique described in Cavnar & Trenkle, "N-Gram-Based Text Categorization" [1]. It was primarily developed for language guessing, a task on which it is known to perform with near-perfect accuracy.

The central idea of the Cavnar & Trenkle technique is to calculate a "fingerprint" of a document with an unknown category, and compare this with the fingerprints of a number of documents of which the categories are known. The categories of the closest matches are output as the classification. A fingerprint is a list of the most frequent n-grams occurring in a document, ordered by frequency. Fingerprints are compared with a simple out-of-place metric.

[1] The document that started it all: William B. Cavnar & John M. Trenkle (1994) N-Gram-Based Text Categorization, <http://citeseer.ist.psu.edu/68861.html>.

In the other systems

SystemPortVersion
GhostBSDtextproc/libtextcat2.2_6
OpenBSDtextproc/libtextcat2.2p1
NetBSDwip/libtextcat2.2nb1
DragonFlytextproc/libtextcat2.2_6
MidnightBSDtextproc/libtextcat2.2

Install

Binary package:

pkg install libtextcat

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

It has been superseded by textproc/libexttextcat.

It is scheduled to be removed on or after 2026-07-31.