Custom tag identification

Note: Custom Tag APIs are not available for trial users. A subscription is required to access these features. Please contact help@protecto.ai for assistance.

The customer should ensure accessibility to this endpoint, along with the provided sample input and its corresponding response. This endpoint is designed to fetch the positions of custom Personally Identifiable Information (PII) within the provided input text.

Request Type: PUT

Input Structure:

input_texts: A list of input texts from which the positions of custom Personally Identifiable Information (PII) need to be extracted.

tag_type: The type of the custom PII tag to be identified.

Code Snippet

{"input_texts":["<text1>","<text2>"], "tag_type ": "CUSTOMER_ID"}

Eg

{
   "input_texts":[
      "Customer ID 56789, Sarah Johnson, has been a loyal customer for years and just made a new order, emphasizing her continued satisfaction with our products.Customer ID 98765, Michael Davis, recently placed a large order for clothing and accessories, reflecting his keen sense of style and fashion preferences.",
      "Hey, meet Customer ID 78901, Alex Turner – our tech guru! Alex just snagged some cool gadgets, showing off his love for the latest tech trends. And then there's Customer ID 65432, Lily Parker – our fashionista extraordinaire! Lily couldn't resist our stylish collection, proving she's got an eye for fashion."
   ],
"tag_type ": "CUSTOMER_ID"
}

Response:

Details have been extracted for each instance of the custom PII tag in the input texts, including the PII tag’s text, its start and end positions within the input text, and the full input text containing the custom PII tag.

{
   "data":[
      [
         {
            "type":"CUSTOMER_ID",
            "text":"56789",
            "start":12,
            "end":17,
            "input_text":"Customer ID 56789, Sarah Johnson, has been a loyal customer for years and just made a new order, emphasizing her continued satisfaction with our products.Customer ID 98765, Michael Davis, recently placed a large order for clothing and accessories, reflecting his keen sense of style and fashion preferences."
         },
         {
            "type":"CUSTOMER_ID",
            "text":"98765",
            "start":95,
            "end":100,
            "input_text":"Customer ID 56789, Sarah Johnson, has been a loyal customer for years and just made a new order, emphasizing her continued satisfaction with our products.Customer ID 98765, Michael Davis, recently placed a large order for clothing and accessories, reflecting his keen sense of style and fashion preferences."
         }
      ],
      [
         {
            "type":"CUSTOMER_ID",
            "text":"78901",
            "start":23,
            "end":38,
            "input_text":"Hey, meet Customer ID 78901, Alex Turner – our tech guru! Alex just snagged some cool gadgets, showing off his love for the latest tech trends. And then there's Customer ID 65432, Lily Parker – our fashionista extraordinaire! Lily couldn't resist our stylish collection, proving she's got an eye for fashion."
         },
         {
            "type":"CUSTOMER_ID",
            "text":"65432",
            "start":162,
            "end":177,
            "input_text":"Hey, meet Customer ID 78901, Alex Turner – our tech guru! Alex just snagged some cool gadgets, showing off his love for the latest tech trends. And then there's Customer ID 65432, Lily Parker – our fashionista extraordinaire! Lily couldn't resist our stylish collection, proving she's got an eye for fashion."
         }
      ]
   ]
}

 

What are your feelings?
Scroll to Top