<jupyter_start><jupyter_text>[deplacy](https://koichiyasuoka.github.io/deplacy/) за синтактичен анализ  с [Trankit](https://github.com/nlp-uoregon/trankit)<jupyter_code>!pip install deplacy trankit transformers
import trankit
nlp=trankit.Pipeline("bulgarian")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [Camphr-Udify](https://camphr.readthedocs.io/en/latest/notes/udify.html)<jupyter_code>!pip install deplacy camphr en-udify@https://github.com/PKSHATechnology-Research/camphr_models/releases/download/0.7.0/en_udify-0.7.tar.gz
import pkg_resources,imp
imp.reload(pkg_resources)
import spacy
nlp=spacy.load("en_udify")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [UDPipe 2](http://ufal.mff.cuni.cz/udpipe/2)<jupyter_code>!pip install deplacy
def nlp(t):
  import urllib.request,urllib.parse,json
  with urllib.request.urlopen("https://lindat.mff.cuni.cz/services/udpipe/api/process?model=bg&tokenizer&tagger&parser&data="+urllib.parse.quote(t)) as r:
    return json.loads(r.read())["result"]
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [CLASSLA](https://github.com/clarinsi/classla)<jupyter_code>!pip install deplacy classla
import classla
classla.download("bg")
nlp=classla.Pipeline("bg")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [Stanza](https://stanfordnlp.github.io/stanza)<jupyter_code>!pip install deplacy stanza
import stanza
stanza.download("bg")
nlp=stanza.Pipeline("bg")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [spaCy-COMBO](https://github.com/KoichiYasuoka/spaCy-COMBO)<jupyter_code>!pip install deplacy spacy_combo
import spacy_combo
nlp=spacy_combo.load("bg_btb")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [spaCy-jPTDP](https://github.com/KoichiYasuoka/spaCy-jPTDP)<jupyter_code>!pip install deplacy spacy_jptdp
import spacy_jptdp
nlp=spacy_jptdp.load("bg_btb")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output><jupyter_text>с [spacy-udpipe](https://github.com/TakeLab/spacy-udpipe)<jupyter_code>!pip install deplacy spacy-udpipe
import spacy_udpipe
spacy_udpipe.download("bg")
nlp=spacy_udpipe.load("bg")
doc=nlp("Гладна мечка хоро не играе.")
import deplacy
deplacy.render(doc)
deplacy.serve(doc,port=None)
# import graphviz
# graphviz.Source(deplacy.dot(doc))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14601635867918814, 'fraction_numerical': 0.0021205695243865495, 'mean_word_length': 8.626822157434402, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '573610', 'license': 'MIT', 'n_tokens_mistral': 1412, 'n_tokens_neox': 1417, 'n_words': 172, 'path': 'doc/bg.ipynb', 'repo_name': 'KoichiYasuoka/deplacy', 'size': '3301'}