Skip to main content

Current PyPI packages

spaCy-COMBO

COMBO wrapper for spaCy

Basic Usage

>>> import spacy_combo
>>> nlp=spacy_combo.load("en_ewt")
>>> doc=nlp("I saw a horse yesterday which had no name.")
>>> for t in doc:
...   print("\t".join([str(t.i+1),t.orth_,t.lemma_,t.pos_,t.tag_,"_",str(0 if t.head==t else t.head.i+1),t.dep_,"_","_" if t.whitespace_ else "SpaceAfter=No"]))
...
1	I	I	PRON	PRON_Case=Nom|Number=Sing|Person=1|PronType=Prs	_	2	nsubj	_	_
2	saw	see	VERB	VERB_Mood=Ind|Tense=Past|VerbForm=Fin	_	0	ROOT	_	_
3	a	a	DET	DET_Definite=Ind|PronType=Art	_	4	det	_	_
4	horse	horse	NOUN	NOUN_Number=Sing	_	2	obj	_	_
5	yesterday	yesterday	NOUN	NOUN_Number=Sing	_	2	obl:tmod	_	_
6	which	which	PRON	PRON_PronType=Rel	_	7	nsubj	_	_
7	had	have	VERB	VERB_Mood=Ind|Tense=Past|VerbForm=Fin	_	4	acl:relcl	_	_
8	no	no	DET	DET	_	9	det	_	_
9	name	name	NOUN	NOUN_Number=Sing	_	7	obj	_	SpaceAfter=No
10	.	.	PUNCT	PUNCT	_	2	punct	_	SpaceAfter=No
>>> import deplacy
>>> deplacy.render(doc)
I         PRON  <══════════════╗   nsubj
saw       VERB  ═══════════╗═╗═╝═╗ ROOT
a         DET   <════════╗ ║ ║   ║ det
horse     NOUN  ═══════╗═╝<╝ ║   ║ obj
yesterday NOUN  <══════║═════╝   ║ obl:tmod
which     PRON  <════╗ ║         ║ nsubj
had       VERB  ═══╗═╝<╝         ║ acl:relcl
no        DET   <╗ ║             ║ det
name      NOUN  ═╝<╝             ║ obj
.         PUNCT <════════════════╝ punct

spacy_combo.load(treebank) loads spaCy Language pipeline for COMBO. Available treebanks are shown in COMBO page.

Installation

pip version 20.0 (or higher) required:

pip install spacy_combo

Release files for spacy-combo 0.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for spacy-combo 0.8.1
File Interpreter ABI Platform
spacy_combo-0.8.1-py3-none-any.whl Python 3 none any Details

Release files / spacy_combo-0.8.1-py3-none-any.whl

Download URL spacy_combo-0.8.1-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88128fa5857d70d70a436e199dd8a4109eee18a057b8703706439530e80842c2
BLAKE2b-256 checksum
How to use checksums
55685a23f8caede487ee189732e237c2f4fcd73f784c3a8bfc7585d8c0e850c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.8.1 This release

1 release file

0.8.0

1 release file

0.7.5

1 release file

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page