spaCy-Coptic
Coptic NLP wrapper for spaCy
Basic Usage
>>> import spacy_coptic
>>> nlp=spacy_coptic.load()
>>> doc=nlp("ⲙⲟⲟϣⲉ ϩⲱⲥ ϣⲏⲣⲉ ⲙ̄ⲡⲟⲩⲟⲉⲓⲛ")
>>> 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 ⲙⲟⲟϣⲉ ⲙⲟⲟϣⲉ VERB V _ 0 ROOT _ _
2 ϩⲱⲥ ϩⲱⲥ CCONJ CONJ _ 3 mark _ _
3 ϣⲏⲣⲉ ϣⲏⲣⲉ NOUN N _ 1 advcl _ _
4 ⲙ̄ ⲛ ADP PREP _ 6 case _ SpaceAfter=No
5 ⲡ ⲡ DET ART _ 6 det _ SpaceAfter=No
6 ⲟⲩⲟⲉⲓⲛ ⲟⲩⲟⲉⲓⲛ NOUN N _ 3 nmod _ _
>>> import deplacy
>>> deplacy.render(doc,WordRight=True)
ROOT ╔═════════ VERB ⲙⲟⲟϣⲉ
mark ║ ╔══════> CCONJ ϩⲱⲥ
advcl ╚>╚═╔═════ NOUN ϣⲏⲣⲉ
case ║ ╔══> ADP ⲙ̄
det ║ ║ ╔> DET ⲡ
nmod ╚>╚═╚═ NOUN ⲟⲩⲟⲉⲓⲛ
spacy_coptic.load(api) loads spaCy Language pipeline for Coptic NLP WebAPI. If you have already installed coptic-nlp and you have coptic_nlp.py in the current directory, you can try the pipeline locally just as:
>>> import spacy_coptic
>>> from coptic_nlp import nlp_coptic
>>> nlp=spacy_coptic.load(nlp_coptic)
>>> doc=nlp("ⲙⲟⲟϣⲉ ϩⲱⲥ ϣⲏⲣⲉ ⲙ̄ⲡⲟⲩⲟⲉⲓⲛ")
Installation
pip3 install spacy_coptic --user
Metadata
Release files for spacy-coptic 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spacy_coptic-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / spacy_coptic-0.8.1-py3-none-any.whl
| Download URL | spacy_coptic-0.8.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c897c576165b0c5409059e0cc9f64333ed0fe2af3cabfad94c49cd4e78f26da
|
|
BLAKE2b-256 checksum How to use checksums |
15c3f919acbc4d23baec453608b5beb74343adcc0061609ccbfd62c23279fc70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Security for spacy-coptic 0.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.