Skip to content

andreasvc/longestnontabooseq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Find the longest non-taboo sequence

Find the longest sequence of tokens in a text without any taboo n-grams.

Usage

Given a set of taboo n-grams and a text, find the longest sequence of tokens without any of the taboo n-grams. An n-gram is represented as a string of space-separated tokens.

$ longestnontaboo.py [--len] <filenames...>

Specify taboo n-grams with one n-gram per line in taboofile; multiple filenames can be specified. By default the output is the longest non-taboo sequence. With --len, only the length of this sequence is reported.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published