Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenauer committed Apr 18, 2021
1 parent 9a39b1f commit 86bd129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/intelligent_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from docx import Document

def get_lst():
df = pd.read_excel('backend/Sample_Questions_Compliance.xls')
df = pd.read_excel('Sample_Questions_Compliance.xls')
lst = []

for index, row in df.iterrows():
lst.append((row['Model Question'], row['Additional Tags / Synonyms for questions (from QnA Chatbot)'],row['Model Answer']))

wordDoc = Document('backend/Sample_Questions_Legal.docx')
wordDoc = Document('Sample_Questions_Legal.docx')

for table in wordDoc.tables:
for row in table.rows:
Expand Down Expand Up @@ -42,4 +42,4 @@ def str_in_lst(quest, lst):



print(get_lst())
#print(get_lst())

0 comments on commit 86bd129

Please sign in to comment.