Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extracting Text
#6
I mean
  1. Write a function that reads the file and produces a sequence of pairs (question, answer)
  2. Write a function is_significant(question, answer) that returns True or False depending on the answer being or not significant for that question.
  3. Use the above list comprehension to remove the superfluous answers and keep only the significant ones.
DataExtrator likes this post
Reply


Messages In This Thread
Extracting Text - by standenman - Nov-01-2021, 08:22 PM
RE: Extracting Text - by Gribouillis - Nov-01-2021, 08:59 PM
RE: Extracting Text - by standenman - Nov-01-2021, 09:20 PM
RE: Extracting Text - by Gribouillis - Nov-01-2021, 10:02 PM
RE: Extracting Text - by standenman - Nov-01-2021, 10:33 PM
RE: Extracting Text - by Gribouillis - Nov-01-2021, 10:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting tables and text above the table from a PDF to CSV DivAsh 3 2,508 Jan-18-2023, 07:39 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020