Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This stages stage identifies tokens that look like post postal codes and flag it them as "POSTCODE". The stage support codes up to 5 characters length, so this includes US, UK and Canada, as well as any other country with similar standards.

...

Saga_config_stage
boundaryFlagstext block split
requiredFlagstoken, semantic tagskipFlagsstop word
"countries" : "us uk ca"

Example Output

Saga_graph
V---------------------[Send the package to 32830 near the amusement parks.]----------------------V 
^-------------------[Send the package to 32830 near the amusement parks]--------------------V-[]-^ 
^-[Send]-V-[the]-V-[package]-V-[to]-V----[32830]---V-[near]-V-[the]-V-[amusement]-V-[parks]-^      
^-[send]-^                          ^-[{postcode}]-^


V-----------------[301 Front St W, Toronto, ON M5V 2T6, Canada]-----------------V 
^-[301]-V-[Front]-V-[St]-V-[W,]-V-[Toronto,]-V-[ON]-V-[M5V]-V-[2T6,]-V-[Canada]-^ 
                         ^-[W]--^-[Toronto]--^              ^-[2T6]--^            
                                                    ^--[{postcode}]--^   

...