tracer / stanzautils.py
mishtert's picture
Upload stanzautils.py
1a04fdc
raw
history blame
319 Bytes
import stanza
import streamlit as st
# @st.cache(suppress_st_warning=True)
def call_nlp_pipeline():
# stanza.download('en', package='mimic', processors={'ner': 'bc5cdr'}, model_dir='/stanmodels')
nlp = stanza.Pipeline('en', package='mimic', processors={'ner': 'bc5cdr'}, model_dir='./stanmodels')
return nlp