First of all, kudos to the creative break through! I was able to play with this and able to create a rudimentary address parser!
Yet, I have a simple question being a novice in this tool.
I am a writing an address parser that scans addresses...
1. We may have addresses "123 ABC street" and "123 Martin Luther King Street"
2. Mine works with first case and I am having a hard time for the second..
Here is my simple rule:
// street address rule
street_addr.Rule = house_nbr + street | street;
street.Rule = street_name + hPOSTDIR_E1 |
street_name + hPOSTDIR_E2 |
street_name + hPOSTDIR_W1 |
street_name + hPOSTDIR_W2 |
street_name + hPOSTDIR_S1 |
street_name + hPOSTDIR_S2 |
street_name + hPOSTDIR_N1 |
street_name + hPOSTDIR_N2 |
street_name + hPOSTDIR_NW |
street_name + hPOSTDIR_NE |
street_name + hPOSTDIR_SW |
street_name + hPOSTDIR_SE |
street_name.Rule = road_literal + myNumb | //road_literal can be ROAD, RD, AVE etc etc
myNumb + road_literal |
myStreet + road_literal;
In the above myStreet is a freetext literal.
How will I make myStreet literal occur many times separated by space and delimited by road literal..
This works ok for "123 abc street".
Sorry if this is too elimentary..I am looking for some guidance..
Thanks in advance from Venkat