Skip to main content

Multilingual POS-tagger and Dependency-parser

Project description

Current PyPI packages

MultiCOMBO

Multilingual POS-Tagger and Dependency-Parser with COMBO-pytorch and spaCy.

Basic usage

>>> import multicombo
>>> nlp=multicombo.load()
>>> doc=nlp('Who plays "La vie en rose"?')
>>> print(multicombo.to_conllu(doc))
# text = Who plays "La vie en rose"?
1	Who	who	PRON		PronType=Int	2	nsubj	_	Translit=who
2	plays	play	VERB		Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin	0	root	_	_
3	"	"	PUNCT		_	5	punct	_	SpaceAfter=No
4	La	le	DET		Definite=Def|Gender=Fem|Number=Sing|PronType=Art	5	det	_	Translit=la
5	vie	vie	NOUN		Gender=Fem|Number=Sing	2	obj	_	_
6	en	en	ADP		_	7	case	_	_
7	rose	rose	NOUN		Number=Sing	5	nmod	_	SpaceAfter=No
8	"	"'	PUNCT		_	5	punct	_	SpaceAfter=No
9	?	?	PUNCT		_	2	punct	_	SpaceAfter=No

>>> import deplacy
>>> deplacy.render(doc)
Who   PRON  <════════════╗   nsubj
plays VERB  ═══════════╗═╝═╗ ROOT
"     PUNCT <══════╗   ║   ║ punct
La    DET   <════╗        det
vie   NOUN  ═══╗═╝═╝═╗<    obj
en    ADP   <            case
rose  NOUN  ═╝<           nmod
"     PUNCT <════════╝     ║ punct
?     PUNCT <══════════════╝ punct

>>> deplacy.serve(doc)
http://127.0.0.1:5000

trial.svg multicombo.load(lang="xx") loads spaCy Language pipeline with bert-base-multilingual-cased and spacy.lang.xx.MultiLanguage tokenizer. Other language specific tokenizers can be loaded with the option lang, while several languages require additional packages:

Installation for Linux

pip3 install multicombo --user

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

multicombo-0.3.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file multicombo-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: multicombo-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.44.0 CPython/3.7.6

File hashes

Hashes for multicombo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1020a1fcf25b49380ca22808d4a0c6be9a4eddd861ddadc3f9724db3f50b550
MD5 0054afc7795f3eca8468c5ebcfc6eaff
BLAKE2b-256 26d1978e9edce4a4449653312f97f483117155fea905b67bd1277f94e5a9ca97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page