mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
bf0cdae8d4
* Add long_token_splitter component Add a `long_token_splitter` component for use with transformer pipelines. This component splits up long tokens like URLs into smaller tokens. This is particularly relevant for pretrained pipelines with `strided_spans`, since the user can't change the length of the span `window` and may not wish to preprocess the input texts. The `long_token_splitter` splits tokens that are at least `long_token_length` tokens long into smaller tokens of `split_length` size. Notes: * Since this is intended for use as the first component in a pipeline, the token splitter does not try to preserve any token annotation. * API docs to come when the API is stable. * Adjust API, add test * Fix name in factory |
||
---|---|---|
.. | ||
__init__.py | ||
test_analysis.py | ||
test_attributeruler.py | ||
test_entity_linker.py | ||
test_entity_ruler.py | ||
test_functions.py | ||
test_initialize.py | ||
test_lemmatizer.py | ||
test_models.py | ||
test_morphologizer.py | ||
test_pipe_factories.py | ||
test_pipe_methods.py | ||
test_sentencizer.py | ||
test_senter.py | ||
test_tagger.py | ||
test_textcat.py | ||
test_tok2vec.py |