abdullahmubeen10
commited on
Update Demo.py
Browse files
Demo.py
CHANGED
@@ -143,8 +143,8 @@ output = fit_data(pipeline, text_to_analyze)
|
|
143 |
# Display matched sentence
|
144 |
st.subheader("Processed output:")
|
145 |
|
146 |
-
# Define the abbreviation mapping
|
147 |
-
abbreviation_mapping =
|
148 |
|
149 |
# Extract the NER results
|
150 |
results = {
|
|
|
143 |
# Display matched sentence
|
144 |
st.subheader("Processed output:")
|
145 |
|
146 |
+
# Define the correct abbreviation mapping
|
147 |
+
abbreviation_mapping = {'R': 'PER', 'G': 'ORG', 'C': 'LOC', 'SC': 'MISC'}
|
148 |
|
149 |
# Extract the NER results
|
150 |
results = {
|