File size: 319 Bytes
1a04fdc |
1 2 3 4 5 6 7 8 9 10 11 |
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
|