dejanseo commited on
Commit
bba9d71
·
verified ·
1 Parent(s): 70fb52e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -6,9 +6,10 @@ from bs4 import BeautifulSoup
6
  import pandas as pd
7
  import altair as alt
8
  from collections import OrderedDict
9
- import nltk
10
  from nltk.tokenize import sent_tokenize
11
 
 
 
12
  nltk.download('punkt')
13
 
14
  # Load model and tokenizer
@@ -86,6 +87,20 @@ st.title("Sentiment Classification from URL")
86
 
87
  url = st.text_input("Enter URL:")
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  if url:
90
  text = get_text_from_url(url)
91
  if text:
 
6
  import pandas as pd
7
  import altair as alt
8
  from collections import OrderedDict
 
9
  from nltk.tokenize import sent_tokenize
10
 
11
+ # Load the punkt tokenizer from nltk
12
+ import nltk
13
  nltk.download('punkt')
14
 
15
  # Load model and tokenizer
 
87
 
88
  url = st.text_input("Enter URL:")
89
 
90
+ # Additional information
91
+ st.markdown("""
92
+ Multi-label sentiment classification model developed by [Dejan Marketing](https://dejanmarketing.com/).
93
+
94
+ The model is designed to be deployed in an automated pipeline capable of classifying text sentiment for thousands (or even millions) of text chunks or as a part of a scraping pipeline.
95
+
96
+ This is a demo model which may occassionally misclasify some texts. In a typical commercial project, a larger model is deployed for the task, and in special cases, a domain-specific model is developed for the client.
97
+
98
+ # Engage Our Team
99
+ Interested in using this in an automated pipeline for bulk query processing?
100
+
101
+ Please [book an appointment](https://dejanmarketing.com/conference/) to discuss your needs.
102
+ """)
103
+
104
  if url:
105
  text = get_text_from_url(url)
106
  if text: