Retrieving a date from a "Free Text"
Posted on 2004-08-10
I am currently working on a project and I got a problem on retrieving a date given a string of universities and the date of graduation with no patterns. What I mean about "free text" or "string without patterns" is that anything goes in the string.
Here are some of the examples are:
Community College of Phildadelphia, ASN 79
Temple University BSN 1999
De La Salle University 02
Harvard University, /85
Burlington College Ass. RN 5/1995
AMA Vocational Center, August - 1998
Univeristy of Santo Tomas, Philippines, BSN May 80
As you can see,
in the first example, the date of graduation would be year 1979, at Community College of Philadelphia with a degree of ASN.
in the second example, the date of graduation would be year 1999 at the Temple University.
in the third example, the date of graduation is 2002 at De La Salle University
Fourth is Date: May 1995, School: Burlington College, Degree: RN
Fifth example: Date: May 1980, School: University of Santo Tomas, Philippines, Degree: BSN
My question is this: is there a way to parse the dates from a string given that the string doesn't have a fixed pattern?? If yes, how? (It would be better if the degrees and school are also parsed, but the most important is the date to be parsed).
Please feel free to ask questions, if I am not clear.