import streamlit as st import spacy from spacytextblob.spacytextblob import SpacyTextBlob from spacy_streamlit import visualize_ner st.header("NER Demo") st.markdown("This demo uses Spacy to identify entities in text.") # Streamlit text boxes # Text source: https://www.fool.com/earnings/call-transcripts/2022/02/08/danaos-dac-q4-2021-earnings-call-transcript/ text = st.text_area('Enter text:', value="Good day, and welcome to the Danaos Corporation conference call to discuss the financial results for the three months ended December 31, 2021. As a reminder, today's call is being recorded. Hosting the call today is Dr. John Coustas, chief executive officer of Danaos Corporation; and Mr. Evangelos Chatzis, chief financial officer of Danaos Corporation. Dr. Coustas and Mr. Chatzis will be making some introductory comments and then we will open the call to a question-and-answer session. Please go ahead. Thank you, operator, and good morning to everyone. And thank you for joining us today. Before we begin, I quickly want to remind everyone that management's remarks this morning may contain certain forward-looking statements and that actual results could differ materially from those projected today. These forward-looking statements are made as of today, and we undertake no obligation to update them. Factors that might affect future results are discussed in our filings with the SEC, and we encourage you to review these detailed Safe Harbor and risk factor disclosures. Please also note that where we feel appropriate, we will continue to refer to non-GAAP financial measures such as EBITDA, adjusted EBITDA and adjusted net income to evaluate our business. Reconciliations of non-GAAP financial measures to GAAP financial measures are included in our earnings release and accompanying materials. With that, now let me turn the call over to Dr. Coustas, who will provide a broad overview of the quarter.") nlp = spacy.load("en_core_web_sm") if text: doc = nlp(text) visualize_ner(doc, labels=nlp.get_pipe("ner").labels)