Best method for parsing unstructured texts like below using NLP? Would a model be the best solution to this? If so, what would be the best way to start?
Prerequisite: Mathematics 408C and 408D with a grade of a C, and Physics 301 or 301K with a grade of a C.
which would result in something like
Mathematics 408C C, Mathematics 408D C, Physics 301 C or Physics 301 C
I've tried using just regex, but the sentence structure can be a lot more complex and inconsistent. Like below
Prerequisite: Architecture 415K with a grade of at least C; Mathematics 408C or 408K; and Physics 302K and 102M, or 303K and 103M.
Desired Result:
Architecture 415K C, Mathematics 408C or Mathematics 408K, Physics 302K and Physics 102M or Physics 303K and Physics 103M

