The KR Postal Matcher uses a four-step process to identify and match postal information.
Step 1: Initial Parsing
The first step in the Postal Matching process isolates all words and phrases by breaking up the input attribute(s) into recognizable tokens. During the initial scan, the Postal Matcher uses commas or space characters in the input attribute to determine where one token ends and the next begins.
Example
Input record: 홍길동, 서울시 강남구대치동 973-2 3층, 135-280
Initial token results: (six tokens)
Token 1 | Token 2 | Token 3 | Token 4 | Token 5 | Token 6 |
홍길동 | 서울시 | 강남구대치동 | 973-2 | 3층 | 135-280 |
Step 2: Table-Based Tokenizing
After initial tokens are created, the Postal Matcher scans each token against the Parser Definition tables to further identify the tokens. During this secondary identification process, all elements further identifiable via the Parser Definition entries are also separated into tokens.
Example
Step 3: Mask-Based Data Identification
Any token that remains unknown after the table look-up process is subsequently reviewed against a set of pre-defined masks (data shapes) in the Parser Definition table.
Example
For example, 1100000 is identified as a postcode based on pr_postcode: 1100000
1100000 | pr_postcode: 1100000 | Recognized as postcode based on mask lookup. |
Step 4: Output to PREPOS
The Postal Matcher passes results of the data identification process to the PREPOS program. See Analyzing the Postal Matcher Results for Asian Countries.