Versions Compared

Key

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

Identifies credit card adding as part of the metadata the issuer

Operates On:  Lexical Items with TOKEN and possibly other flags as specified below.

Saga_is_recognizer


Include Page
Generic Configuration Parameters
Generic Configuration Parameters

Configuration Parameters

  • Parameter
    summaryName of the resource with the credit card patterns and data
    defaultCreditCardNumberRanges.txt
    namefilename
  • Parameter
    summarystring with the valid characters to be separators of the credit card numbers
    default" -"
    nameseparators


Saga_config_stagecode
boundaryFlagstext block split
languagejs
"filename": "CreditCardNumberRanges.txt"
"separators":" -"

Example Output

saga_graph
Code Block
languagetext
V------------------------[a VISA card 4532237395560219  plus a MasterCard 5240856217484884  and an AMEX 349382887599993 ]------------------------V 
^-[a]-V-[VISA]-V-[card]-V-[4532237395560219]-V-[plus]-V-[a]-V---[MasterCard]----V-[5240856217484884]-V-[and]-V-[an]-V-[AMEX]-V-[349382887599993]-^ 
                        ^-------[{CC}]-------^              ^-[Master]-V-[Card]-^-------[{CC}]-------^                       ^------[{CC}]-------^ 


V-------------------------------------------------------[a VISA card 4703-5053 9433-9434  plus a MasterCard 2221 0088-8115-4688  and an AMEX 3736-8970559 9123 ]-------------------------------------------------------V 
^-[a]-V-[VISA]-V-[card]-V--------------------[{CC}]----------------------V-[plus]-V-[a]-V---[MasterCard]----V--------------------[{CC}]---------------------V-[and]-V-[an]-V-[AMEX]-V--------------[{CC}]---------------^ 
                        ^^--------[4703-5053]------V------[9433-9434]------^              ^-[Master]-V-[Card]-^-[2221]-V-----------[0088-8115-4688]-----------^                       ^------[3736-8970559]-V-----V-[9123]-^ 
                        ^-[4703]-V-[-]-V-[5053]-^-[9433]-V-[-]-V-[9434]-^                                           ^-[0088]-V-[-]-V-[8115]-V-[-]-V-[4688]-^                       ^-[3736]-V-[-]-V-[8970559]-^ 

Output Flags

Lex-Item Flags:

  • SEMANTIC_TAG - Identifies all lexical items which are semantic tags
  • CREDIT_CARD - The tokens were identified as a credit card

Vertex Flags:

Info

No vertices are created in this stage


Resource Data

Format of the resource for credit cards, each entry will be a JSON object

Resource Format

Saga_jsoncode
TitleEntity Json Format
languagejs
"issuer":"American Express",
"iin":["34","37"],
"length":"16-19"


Fields

  • Parameter
    summaryCredit card issuer
    nameissuer
    requiredtrue
  • Parameter
    summaryValid starting numbers of the credit card
    nametag
    typestring array
    requiredtrue
  • Parameter
    summaryValid length of the credit card number. It can be written as a range
    namelength
    requiredtrue