Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
import time
|
3 |
import uuid
|
4 |
import streamlit as st
|
|
|
5 |
|
6 |
from helpers.entity_extraction_helpers import process_insurance_document
|
7 |
from services.pii_service import PIIService
|
@@ -25,6 +26,12 @@ def init_session():
|
|
25 |
st.session_state['ocr_instance'] = OCRService()
|
26 |
print("OCR service initialized")
|
27 |
st.session_state.a = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
print("-----------------------------")
|
29 |
|
30 |
st.header('', divider='rainbow')
|
|
|
2 |
import time
|
3 |
import uuid
|
4 |
import streamlit as st
|
5 |
+
import nltk
|
6 |
|
7 |
from helpers.entity_extraction_helpers import process_insurance_document
|
8 |
from services.pii_service import PIIService
|
|
|
26 |
st.session_state['ocr_instance'] = OCRService()
|
27 |
print("OCR service initialized")
|
28 |
st.session_state.a = 1
|
29 |
+
nltk.downloader.download('maxent_ne_chunker')
|
30 |
+
nltk.downloader.download('words')
|
31 |
+
nltk.downloader.download('treebank')
|
32 |
+
nltk.downloader.download('maxent_treebank_pos_tagger')
|
33 |
+
nltk.downloader.download('punkt')
|
34 |
+
nltk.download('averaged_perceptron_tagger')
|
35 |
print("-----------------------------")
|
36 |
|
37 |
st.header('', divider='rainbow')
|