Skip to main content

Crate harper_brill

Crate harper_brill 

Source

Structs§

BrillChunker
A Chunker implementation based on the work by Eric Brill.
BrillTagger
A Tagger implementation based on the work by Eric Brill.
CachedChunker
Wraps any chunker implementation to add an LRU Cache. Useful for incremental lints.
FreqDict
A mapping between words (normalized to lowercase) and their most common UPOS tag. Can be used as a minimally accurate Tagger.

Enums§

UPOS
Represents the universal parts of speech as outlined by universaldependencies.org.

Traits§

Chunker
An implementer of this trait is capable of identifying the noun phrases in a provided sentence. See here for more details on what this is and how it can work.
Tagger
An implementer of this trait is capable of assigned Part-of-Speech tags to a provided sentence. This is widely useful for various applications. See here.

Functions§

brill_chunker
Get a copy of a shared, lazily-initialized BrillChunker. There will be only one instance per-process.
brill_tagger
Get a copy of a shared, lazily-initialized BrillTagger. There will be only one instance per-process.
burn_chunker
Get a copy of a shared, lazily-initialized BurnChunkerCpu. There will be only one instance per-process. Since neural net inference is extremely expensive, this chunker is memoized as well.

Type Aliases§

BurnChunkerCpu