mirror of
https://github.com/explosion/spaCy.git
synced 2025-11-01 16:37:45 +03:00
At a few points in the code it's normal to get a "2d" array where each row is a single entry. Calling squeeze will make that a proper 1d array... unless it's just one entry, in which case it turns into a 0d scalar. That's not what we want; flatten() provides the desired behavior. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| coref_util.py | ||
| coref.py | ||
| entity_linker.py | ||
| multi_task.py | ||
| parser.py | ||
| tagger.py | ||
| textcat.py | ||
| tok2vec.py | ||