how to edit the pattern action file

Infosphere's Quality Product

Moderators: chulett, rschirm

Post Reply
akonda
Participant
Posts: 97
Joined: Wed Feb 28, 2007 6:15 am

how to edit the pattern action file

Post by akonda »

Hi Guys

Can somebody please share thoughts on how to edit the pattern action file to parse the address information thru MNS stage.

input : 1130 W WARNER RD, BLDG A

required o/p:
Address1 - 1130 W WARNER RD
Address2 - BLDG A

issue is "BLDG A" is going to unhandledText. please advice,
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

Without looking at it too closely, I'd suggest doing a search for

/SUB Buildings

in the PAT file and look to the last couple of patterns before the /END_SUB
They handle L (Building Type) plus another token at the end of the text. You want to do the same sort of thing.

Use the classification file to get an understanding of the types of other tokens you want this new behaviour to handle, and therefore how many specific pattern-action statements you might need to cover it.


Note: you will need to make a copy of the ruleset to edit any of the files.
akonda
Participant
Posts: 97
Joined: Wed Feb 28, 2007 6:15 am

Post by akonda »

I see what you are saying. But, If I make a copy of the ruleset(USMNAD) to edit any of the files and "provision" it. Is that new copy can be accessble by MNS stage? or how would that changes of ruleset applied to the MNS stage. ?
stuartjvnorton
Participant
Posts: 527
Joined: Thu Apr 19, 2007 1:25 am
Location: Melbourne

Post by stuartjvnorton »

akonda wrote:I see what you are saying. But, If I make a copy of the ruleset(USMNAD) to edit any of the files and "provision" it. Is that new copy can be accessble by MNS stage? or how would that changes of ruleset applied to the MNS stage. ?
Ah, you got me there. The perils of not looking too closely... ;-)

The MNS stage doesn't look like it's extensible in that way. Making a copy under the MNS Rules folder didn't bring up any new options in the country list in the stage. Hooray for hard-coding.

It looks like the only kosher way (if it's possible) is using overrides.
Post Reply