mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
refactor to build tags
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
// Package tokenizer implements file tokenization used by the enry content
|
||||
// classifier. This package is an implementation detail of enry and should not
|
||||
// be imported by other packages.
|
||||
// +build !flex
|
||||
|
||||
package tokenizer
|
||||
|
||||
import (
|
||||
@ -9,8 +8,6 @@ import (
|
||||
"gopkg.in/src-d/enry.v1/regex"
|
||||
)
|
||||
|
||||
const byteLimit = 100000
|
||||
|
||||
// Tokenize returns language-agnostic lexical tokens from content. The tokens
|
||||
// returned should match what the Linguist library returns. At most the first
|
||||
// 100KB of content are tokenized.
|
||||
|
Reference in New Issue
Block a user