spaCy Token Parser (spacy-token-parser)
Use spaCy to Parse Input Tokens
Usage
Call the service with this code
from spacy_token_parser import parse_tokens
parse_tokens(input_text.split())
The output is a tuple.
The first element of the tuple is a list of dictionary tokens (below).
The second element of the tuple is a wrapped instance of spacy.tokens.doc.Doc.
List Output
[
{
"dep":"compound",
"ent":"NORP",
"head":"5665575797947403677",
"id":"6042939320535660714",
"is_alpha":true,
"is_punct":false,
"is_stop":false,
"is_wordnet":true,
"lemma":"american",
"noun_number":"singular",
"other":{
"head_i":3,
"head_idx":24,
"head_orth":5665575797947403677,
"head_text":"films",
"i":0,
"idx":0,
"orth":6042939320535660714
},
"pos":"PROPN",
"sentiment":0.0,
"shape":"xxxx",
"tag":"NNP",
"tense":"",
"text":"american",
"verb_form":"",
"x":0,
"y":8
},
{
"dep":"compound",
"ent":"",
"head":"5665575797947403677",
"id":"16602643206033239142",
"is_alpha":true,
"is_punct":false,
"is_stop":false,
"is_wordnet":true,
"lemma":"silent",
"noun_number":"singular",
"other":{
"head_i":3,
"head_idx":24,
"head_orth":5665575797947403677,
"head_text":"films",
"i":1,
"idx":9,
"orth":16602643206033239142
},
"pos":"PROPN",
"sentiment":0.0,
"shape":"xxxx",
"tag":"NNP",
"tense":"",
"text":"silent",
"verb_form":"",
"x":8,
"y":14
},
{
"dep":"compound",
"ent":"",
"head":"5665575797947403677",
"id":"16417888112635110788",
"is_alpha":true,
"is_punct":false,
"is_stop":false,
"is_wordnet":true,
"lemma":"feature",
"noun_number":"singular",
"other":{
"head_i":3,
"head_idx":24,
"head_orth":5665575797947403677,
"head_text":"films",
"i":2,
"idx":16,
"orth":16417888112635110788
},
"pos":"NOUN",
"sentiment":0.0,
"shape":"xxxx",
"tag":"NN",
"tense":"",
"text":"feature",
"verb_form":"",
"x":14,
"y":21
},
{
"dep":"ROOT",
"ent":"",
"head":"5665575797947403677",
"id":"5665575797947403677",
"is_alpha":true,
"is_punct":false,
"is_stop":false,
"is_wordnet":true,
"lemma":"film",
"noun_number":"plural",
"other":{
"head_i":3,
"head_idx":24,
"head_orth":5665575797947403677,
"head_text":"films",
"i":3,
"idx":24,
"orth":5665575797947403677
},
"pos":"NOUN",
"sentiment":0.0,
"shape":"xxxx",
"tag":"NNS",
"tense":"",
"text":"films",
"verb_form":"",
"x":21,
"y":26
}
]
Metadata
Release files for spacy-token-parser 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spacy_token_parser-0.1.16.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spacy_token_parser-0.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.3 kB
Release files / spacy_token_parser-0.1.16.tar.gz
| Download URL | spacy_token_parser-0.1.16.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a82d11eeb50028f53b6985b5842904b952e152f3da7770c90ffae3fe95c66ca
|
|
BLAKE2b-256 checksum How to use checksums |
9accbb39463f6ad21d0d8cf54960f083b513b2f8290e6f4341368838e8a185d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.5 Windows/10
|
Release files / spacy_token_parser-0.1.16-py3-none-any.whl
| Download URL | spacy_token_parser-0.1.16-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44bdcdbb86596db9fe12ab1ff486b9d740bf61e6ab4f509a8d568a7fe0fd0407
|
|
BLAKE2b-256 checksum How to use checksums |
b68a5cede13645b09a28c1f4a366c2b6b8b78b859ecf85cf78bdccab66db2e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.5 Windows/10
|