Directories
¶
| Path | Synopsis |
|---|---|
|
Package bundle reads a .spacy model directory from disk: meta.json, config.cfg, vocab/, tokenizer, and per-pipe subdirectories.
|
Package bundle reads a .spacy model directory from disk: meta.json, config.cfg, vocab/, tokenizer, and per-pipe subdirectories. |
|
Package config implements a small parser for spaCy's config.cfg files (a subset of confection/thinc.config).
|
Package config implements a small parser for spaCy's config.cfg files (a subset of confection/thinc.config). |
|
Package doc holds the runtime container produced by tokenizer + pipeline components.
|
Package doc holds the runtime container produced by tokenizer + pipeline components. |
|
examples
|
|
|
bench
command
Command bench measures gospacy.Bundle.Pipe throughput.
|
Command bench measures gospacy.Bundle.Pipe throughput. |
|
load-spacy-bundle
command
Command load-spacy-bundle loads a .spacy model directory and prints:
|
Command load-spacy-bundle loads a .spacy model directory and prints: |
|
load-thinc-model
command
Command load-thinc-model loads a Python-trained thinc Chain(Linear,Softmax) model and runs a forward pass on a small fixed input.
|
Command load-thinc-model loads a Python-trained thinc Chain(Linear,Softmax) model and runs a forward pass on a small fixed input. |
|
tokenize
command
Command tokenize is the smallest gospacy demo: build the English tokenizer rules, tokenize a string, print one row per token.
|
Command tokenize is the smallest gospacy demo: build the English tokenizer rules, tokenize a string, print one row per token. |
|
internal
|
|
|
cmd/genexceptions
command
Command genexceptions reads spaCy's English tokenizer-exceptions table (via a sidecar Python script) and emits lang/en/exceptions_gen.go with the same data as a Go map literal.
|
Command genexceptions reads spaCy's English tokenizer-exceptions table (via a sidecar Python script) and emits lang/en/exceptions_gen.go with the same data as a Go map literal. |
|
cmd/genstopwords
command
Command genstopwords reads spaCy's English stop-word list (via a sidecar Python script) and emits vocab/stopwords_en.go with the same data as a Go map literal.
|
Command genstopwords reads spaCy's English stop-word list (via a sidecar Python script) and emits vocab/stopwords_en.go with the same data as a Go map literal. |
|
diff
Package diff loads Python-generated golden fixtures from testdata/golden/ and provides comparators used by Go tests to verify gospacy output against the pinned reference spaCy.
|
Package diff loads Python-generated golden fixtures from testdata/golden/ and provides comparators used by Go tests to verify gospacy output against the pinned reference spaCy. |
|
lookups
Package lookups loads msgpack lookup tables in the format written by spacy.lookups.Lookups.to_bytes — a map keyed by table name where each value is the table's own msgpack-encoded payload.
|
Package lookups loads msgpack lookup tables in the format written by spacy.lookups.Lookups.to_bytes — a map keyed by table name where each value is the table's own msgpack-encoded payload. |
|
murmur
Package murmur implements the hash primitives used by spaCy and thinc:
|
Package murmur implements the hash primitives used by spaCy and thinc: |
|
lang
|
|
|
en
Package en holds language-specific tokenizer data for English.
|
Package en holds language-specific tokenizer data for English. |
|
Package nn provides the abstract Ops interface used by neural-network layers.
|
Package nn provides the abstract Ops interface used by neural-network layers. |
|
backend/gonum
Package gonum implements the gospacy Ops interface using gonum/blas/blas32 for BLAS-class ops and hand-written Go for non-BLAS ops.
|
Package gonum implements the gospacy Ops interface using gonum/blas/blas32 for BLAS-class ops and hand-written Go for non-BLAS ops. |
|
layers
Package layers provides thinc-equivalent layer constructors.
|
Package layers provides thinc-equivalent layer constructors. |
|
Package pipeline holds the rule-based and neural components that mutate a Doc after tokenization: Tagger, AttributeRuler, Lemmatizer (and later Parser, NER).
|
Package pipeline holds the rule-based and neural components that mutate a Doc after tokenization: Tagger, AttributeRuler, Lemmatizer (and later Parser, NER). |
|
lang/en
Package en wires English-specific behavior into the Lemmatizer.
|
Package en wires English-specific behavior into the Lemmatizer. |
|
parserinternals
Package parserinternals ports the C++/Cython StateC and ArcEager TransitionSystem machinery from spacy.pipeline._parser_internals.
|
Package parserinternals ports the C++/Cython StateC and ArcEager TransitionSystem machinery from spacy.pipeline._parser_internals. |
|
workflows
Package workflows holds end-to-end ports of representative real-world spaCy usage patterns (POS frequency, noun-chunk extraction, SVO triples, passive detection, sentence iteration, etc.).
|
Package workflows holds end-to-end ports of representative real-world spaCy usage patterns (POS frequency, noun-chunk extraction, SVO triples, passive detection, sentence iteration, etc.). |
|
Package registry maps @architectures strings (from config.cfg) to Go factory functions that build a *nn.Model tree.
|
Package registry maps @architectures strings (from config.cfg) to Go factory functions that build a *nn.Model tree. |
|
Package tokenizer implements gospacy's rule-based tokenizer.
|
Package tokenizer implements gospacy's rule-based tokenizer. |
|
Package vocab implements gospacy's lexical infrastructure: the StringStore (uint64↔string), Lexeme (per-string lexical attributes), and Vocab (the owning container).
|
Package vocab implements gospacy's lexical infrastructure: the StringStore (uint64↔string), Lexeme (per-string lexical attributes), and Vocab (the owning container). |
Click to show internal directories.
Click to hide internal directories.