mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 13:44:55 +03:00
Fix formatting
This commit is contained in:
parent
bc72e0e94c
commit
4b4e9115b5
|
@ -10,16 +10,12 @@ Tests for spaCy modules and classes live in their own directories of the same na
|
|||
|
||||
## Table of contents
|
||||
|
||||
- [spaCy tests](#spacy-tests)
|
||||
- [Table of contents](#table-of-contents)
|
||||
- [Running the tests](#running-the-tests)
|
||||
- [Dos and don'ts](#dos-and-donts)
|
||||
- [Parameters](#parameters)
|
||||
- [Fixtures](#fixtures)
|
||||
- [Helpers and utilities](#helpers-and-utilities)
|
||||
- [Constructing a `Doc` object manually](#constructing-a-doc-object-manually)
|
||||
- [Other utilities](#other-utilities)
|
||||
- [Contributing to the tests](#contributing-to-the-tests)
|
||||
1. [Running the tests](#running-the-tests)
|
||||
2. [Dos and don'ts](#dos-and-donts)
|
||||
3. [Parameters](#parameters)
|
||||
4. [Fixtures](#fixtures)
|
||||
5. [Helpers and utilities](#helpers-and-utilities)
|
||||
6. [Contributing to the tests](#contributing-to-the-tests)
|
||||
|
||||
## Running the tests
|
||||
|
||||
|
|
|
@ -304,6 +304,7 @@ def test_span_similarity_match():
|
|||
assert span1.similarity(doc) == 0.0
|
||||
assert span1[:1].similarity(doc.vocab["a"]) == 1.0
|
||||
|
||||
|
||||
def test_spans_are_hashable(en_tokenizer):
|
||||
"""Test spans can be hashed."""
|
||||
text = "good stuff bad stuff"
|
||||
|
|
Loading…
Reference in New Issue
Block a user