File size: 501 Bytes
2daf212
811879f
2daf212
811879f
0512d9a
24f6491
 
 
0512d9a
59a1a40
0512d9a
 
811879f
 
 
 
 
 
 
 
0512d9a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import spacy_streamlit
import streamlit as st

st.set_page_config(layout="wide")

models = {
    "hu_core_news_trf": "hu_core_news_trf"
}

default_text = "Jóváhagyták a Netrisk terjeszkedését Ausztriában."

spacy_streamlit.visualize(
    models,
    default_text,
    ["parser", "ner", "tokens", "similarity"],
    show_json_doc=False,
    sidebar_title="🚀 HuSpaCy",
    sidebar_description="Industrial strength Hungarian NLP",
    similarity_texts=("kifli", "zsemle"),
    show_logo=False
)