Skip to content

Neural network models for joint POS tagging and dependency parsing (CoNLL 2017-2018)

License

Notifications You must be signed in to change notification settings

KoichiYasuoka/spaCy-jPTDP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Current PyPI packages

spaCy-jPTDP

jPTDP wrapper for spaCy

Basic Usage

>>> import spacy_jptdp
>>> nlp=spacy_jptdp.load("en_ewt")
>>> doc=nlp("We are finished.")
>>> for t in doc:
...   print("\t".join([str(t.i+1),t.orth_,"_",t.pos_,"_","_",str(0 if t.head==t else t.head.i+1),t.dep_,"_","_" if t.whitespace_ else "SpaceAfter=No"]))
...
1	We	_	PRON	_	_	3	nsubj	_	_
2	are	_	AUX	_	_	3	cop	_	_
3	finished	_	ADJ	_	_	0	ROOT	_	SpaceAfter=No
4	.	_	PUNCT	_	_	3	punct	_	SpaceAfter=No
>>> import deplacy
>>> deplacy.render(doc)
We       PRON  <══╗   nsubj
are      AUX   <╗ ║   cop
finished ADJ   ═╝═╝═╗ ROOT
.        PUNCT <════╝ punct

spacy_jptdp.load(treebank) loads spaCy Language pipeline for jPTDP. Available treebanks are HERE.

Installation

pip install spacy_jptdp

About

Neural network models for joint POS tagging and dependency parsing (CoNLL 2017-2018)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%