Named Entity Recognition Grammars Package 25.2
Named Entity Recognition Grammars User Guide

# Entities supported for the country pt

The following entities are supported for the country pt (Portugal)

entity | description | example
--- | --- | ---
address | A postal address. In general, a score of one is given to an address that includes a numbered, common format street address (for example "23 North Road"), a known city (for example "London"), and a postal code in a viable format for the country (for example "SW1A 2AA"). Deviations from this form lead to score penalties. The ordering of these elements varies by country. OpenText recommends that you use prefiltering to improve the performance for this grammar. See Configure Prefiltering. This entity returns the addresses in a normalized format by default. The normalized form standardizes apartment and house numbers, expands shortened forms of region names, removes additional punctuation, and converts the text to uppercase. For example "ABIDEI HURRIYET CD TANER PALAS APT 9, KAT:7, D:9, 34437 ISTANBUL". The exact order depends on the country. You can turn off normalization by setting normalize_addresses=false in the address_stoplist.lua script. This option can improve performance when you do not need normalization. | APARTADO 42024, EC - D. LUÍS, 1201-950 LISBOA PORTUGAL GONCALVES RAMOS 104 A,2700-439 AMADORA,LISBON apartamento 14 GONCALVES RAMOS 104 A, 2700-439 AMADORA, LISBON
address/city/context | A city or town, with context. | Cidade: LISBON
address/city/landmark | A city or town landmark. | Cidade
address/city/nocontext | A city or town, without context. | LISBON
address/country/context | A country, with context. | País: Portúgal
address/country/landmark | A country landmark. | País
address/country/nocontext | A country, without context. | Portúgal
address/landmark | A postal address landmark. | endereço postal
address/postcode/context | A postal code, with context. | Codigo postal: 2700-439 AMADORA
address/postcode/landmark | A postal code landmark. | Codigo postal
address/postcode/nocontext | A postal code, without context. | 2700-439 AMADORA
address/streetlocation/context | A street location (house number and street name), with context. | endereço postal: APARTADO 42024, EC - D. LUÍS endereço postal: GONCALVES 104 endereço postal: apartamento 14 GONCALVES RAMOS 104 A
address/streetlocation/landmark | A street location landmark. | endereço postal
address/streetlocation/nocontext | A street location (house number and street name), without context. | APARTADO 42024, EC - D. LUÍS GONCALVES 104 apartamento 14 GONCALVES RAMOS 104 A
banking/iban/context | An International Bank Account Number (IBAN), with context. The IBAN number can have spaces, hyphens (-), or periods (.) as delimiters between different components of the IBAN. | IBAN: PT50002700000001234567833
banking/iban/nocontext | An International Bank Account Number (IBAN), without context. | PT50002700000001234567833
banking/swiftcode/context | A SWIFT/BIC code, with context. | SWIFT code: XXXXPT00BBB
banking/swiftcode/nocontext | A SWIFT/BIC code, without context. | XXXXPT00BBB
driving/context | A driving license number with context. This entity matches both the driving license number, and the personal number or driver number, if present. On the standard European driving license, these are fields 5 and 4d.1 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | Carta de condução: A-123456 1
driving/landmark | A driving license landmark. | Carta de condução
driving/nocontext | A driving license number, without context.2 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | A-123456 1
health/ehic/context | An EHIC personal identification number with context. | CESD: 123456789012345678AA
health/ehic/landmark | An EHIC landmark | CESD
health/ehic/nocontext | An EHIC personal identification number without context. | 123456789012345678AA
health/id/context | A Portuguese SNS health number with context. | n° utente de saude: 697717117
health/id/landmark | A health number landmark. | n° utente de saude
health/id/nocontext | A health number, such as a British NHS number, French Carte Vitale number or Japanese Health Insurance Card number, without context. | 697717117
id/context | A national identity number with context. For information about the supported ID numbers, see Supported National ID Numbers. | NIC: 118666070 Número de Identificação de Segurança Social: 10000000000 bilhete de identidade: 00000000 0 ZZ4 título de residência: H691H0820
id/landmark | A national identity number landmark.3 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | NIC Número de Identificação de Segurança Social bilhete de identidade título de residência
id/nocontext | A national identity number without context. For information about the supported ID numbers, see Supported National ID Numbers.4 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | 00000000 0 ZZ4 10000000000 118666070 H691H0820
internet/email/context | An email address, with context. | correio eletrónico: jsmith@mailserver.com
internet/email/landmark | An email address landmark. | correio eletrónico
internet/email/nocontext | An email address, without context. | jsmith@mailserver.com
name | A full personal name. Romanized names can be in title case or upper case, and can be in the order given name surname or surname given name. CJKVT native script names must be surname given name. For Japanese, either form can include honorifics.5 This entity returns the names in a normalized format, in the form GIVEN NAME SURNAME, for example JOHN SMITH. You can turn off normalization by setting normalize_names=false in the name_stoplist.lua script. You can also turn off score adjustment, by setting rescore_names=false in the name_stoplist.lua script. This option can improve performance when you do not need the normalization or score refinement. | Adelino dos Atouguia QC Mr R. Mota Raquel Mota
name/given_name/context | A given name with context. For CJKVT the context landmark should be in CJKVT native script. | Nomes próprios: Raquel
name/given_name/landmark | A given name landmark. For CJKVT it will be in native script. | Nomes próprios
name/given_name/nocontext | A given name, without context. | Raquel
name/landmark | A full name landmark. | nome
name/post_title | A title that follows a name. | QC
name/pre_title | A title that precedes a name. | Mr
name/surname/context | A surname with context. For CJKVT the landmark will be in native script | nome de família: Mota
name/surname/landmark | A surname landmark. | nome de família
name/surname/nocontext | A surname without context. | Mota
name/title_surname | A title and surname. | Dr Mota Mr dos Mota
nationality/adj/context | A nationality adjective with context. | nacionalidade: Português
nationality/adj/landmark | A nationality adjective landmark. | nacionalidade
nationality/adj/nocontext | A nationality adjective without context. | Português
nationality/any/context | Any combination of nationality adjective and noun landmark and value. | PAÍS: Portugal
nationality/any/landmark | Any nationality adjective or landmark. | PAÍS
nationality/any/nocontext | Any nationality adjective or noun. | Portugal
nationality/noun/context | A nationality noun with context. | PAÍS: Portugal
nationality/noun/landmark | A nationality noun landmark. | PAÍS
nationality/noun/nocontext | A nationality noun without context. | Portugal
passport/context | A passport number with context. | PASSAPORTE: H045489
passport/landmark | A passport landmark. For information about cases where the landmark and passport number do not match or have an ambiguous match, see Ambiguous Entities. | PASSAPORTE
passport/nocontext | A passport number without context. | H045489
postcode/context | A postal code with context. | Codigo postal: 2700-439 AMADORA
postcode/landmark | A postal code landmark. | Codigo postal
postcode/nocontext | A postal code without context. | 2700-439 AMADORA
telephone/context | A telephone number with context. For the telephone_cjkvt grammar, numbers can be ASCII or full-width numbers. This entity returns the telephone number in the normalized format +NNNNN, starting with the country code. For example +12012224344.6 To ensure that this entity performs correctly, set your TangibleCharacters configuration to include the following characters: ()+-. For more information, see Configure Tangible Characters. | Número telefônico: +351 21 392 4000
telephone/landmark | A telephone number landmark. For the telephone_cjkvt grammar, landmarks are available only in CJKVT native script. | Número telefônico
telephone/nocontext | A telephone number without context. For the telephone_cjkvt grammar, numbers can be ASCII or full-width numbers. This entity returns the telephone number in the normalized format +NNNNN, starting with the country code. For example +12042439955.7 To ensure that this entity performs correctly, set your TangibleCharacters configuration to include the following characters: ()+-. For more information, see Configure Tangible Characters. | +351 21 392 4000
tin/context | A tax identification number with context. For more examples, see Example Tax Identification Numbers.8 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | Número de identificação fiscal: 299999998
tin/landmark | A tax identification number landmark. | Número de identificação fiscal
tin/nocontext | A tax identification number without context. For more examples, see Example Tax Identification Numbers.9 By default, when there are multiple possible matches, post-processing returns only one country, which is the most efficient option. You can enable ambiguous entity matching by setting ambiguous_entities=true in the pii_postprocessing.lua script. This option returns multiple possible country matches. | 299999998
tin/vatin/context | A VAT identification number with context. | NIPC: PT502757191
tin/vatin/landmark | A VAT identification number landmark. | NIPC
tin/vatin/nocontext | A VAT identification number without context. | PT502757191

In the tables, ✔️ indicates that the item is always used, and ❌ that the item is never used. The ✓ symbol indicates that the item is only used for some entities (that is, for some but not all countries or languages). For details, refer to the relevant entity page.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Named Entity Recognition Grammars Package 25.2

Topic Title: Entities supported for the country pt