# US 2021/0081598 A1 · Process for creating a fixed length representation of a variable length input

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081598 A1
- Document ID: US20210081598A1
- Status: Published application
- Kind: A1
- Application number: 17/087,041
- Filed: 2020-11-02
- Published: 2021-03-18
- Earliest claimed: 2019-04-08
- Assignees: Paypal, Inc.
- Applicants: Paypal, Inc.
- Inventors: Yarden Raiskin
- Web page: https://patentgrep.com/patent/US20210081598A1

## CPC

- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 16/951: Indexing; Web crawling techniques
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/146: Coding or compression of tree-structured data
- G06F 40/166: Editing, e.g. inserting or deleting
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/08: Learning methods
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06Q 30/0641: {utilising user interfaces specially adapted for shopping}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

A computer system identifies that a first portion of markup language, extracted from a markup language document of a website, corresponds to a first actionable element, wherein the first portion of markup language is a variable length representation. In response to identifying that the first portion of markup language corresponds to the first actionable element, the computer system utilizes a recurrent neural network (RNN) encoder to create a first code representation that corresponds to the first portion of markup language. The computer system identifies a first additional information that corresponds to one or more pre-defined goals. The computer system creates a final fixed length markup language representation that includes the first code representation and the first additional information. The computer system inputs the final fixed length markup language representation into a model.

## Claims

### Claim 1

(canceled)

### Claim 2

A system, comprising:
one or more processors, one or more computer-readable memories, with program instructions stored on the one or more computer-readable memories, the one or more processors configured to execute the program instructions to cause the system to perform operations comprising:
identifying a pre-set goal corresponding to a website;
determining that a first portion of a markup language associated with the website corresponds to a first actionable element, wherein the first portion of the markup language is a variable length representation;
in response to determining that the first portion of the markup language corresponds to the first actionable element, creating a fixed length representation of the first actionable element, wherein the fixed length representation of the first actionable element corresponds to the first portion of the markup language and includes a first additional information associated with the pre-set goal;
inputting the fixed length representation of the first actionable element into a model; and
determining, based on an output provided by the model, whether to utilize a web crawler to select the first actionable element, wherein selecting the first actionable element causes a first action to be taken.

### Claim 3 (depends on 2)

The system of claim 2, wherein the determining whether to utilize the web crawler to select the first actionable element further comprises analyzing the first additional information to determine one or more previous actions taken by the web crawler.

### Claim 4 (depends on 3)

The system of claim 3, wherein the determining whether to utilize the web crawler to select the first actionable item further comprises determining whether the first actionable element corresponds to one or more actions associated with the pre-set goal.

### Claim 5 (depends on 2)

The system of claim 2, the operations further comprising:
in response to determining to utilize a web crawler to select the first actionable element, determining a reward to provide a reinforcement learning agent of the system, wherein the reward corresponds to an action caused by the selection of the first actionable element.

### Claim 6 (depends on 2)

The system of claim 2, wherein the pre-set goal is to access a checkout page, wherein the first actionable element corresponds to adding a first item to a digital cart, and wherein the operations further comprise:
in response to determining, based on analyzing the first additional information, that the digital cart contains an item, determining to not utilize the web crawler to select the first actionable element.

### Claim 7 (depends on 2)

The system of claim 2, wherein the creating the fixed length representation of the first actionable element includes utilizing a recurrent neural network (RNN) encoder to create a first code representation that corresponds to the first markup language.

### Claim 8 (depends on 2)

The system of claim 2, wherein the model is a reinforcement learning model.

### Claim 9

A method comprising:
identifying a pre-set goal corresponding to a website;
determining that a first portion of a markup language associated with the website corresponds to a first actionable element, wherein the first portion of the markup language is a variable length representation;
in response to determining that the first portion of the markup language corresponds to the first actionable element, creating a fixed length representation of the first actionable element, wherein the fixed length representation of the first actionable element corresponds to the first portion of the markup language and includes a first additional information associated with the pre-set goal;
inputting the fixed length representation of the first actionable element into a model; and
determining, based on an output provided by the model, whether to utilize a web crawler to select the first actionable element, wherein selecting the first actionable element causes a first action to be taken.

### Claim 10 (depends on 9)

The method of claim 9, wherein the determining whether to utilize the web crawler to select the first actionable element further comprises analyzing the first additional information to determine one or more previous actions taken by the web crawler.

### Claim 11 (depends on 10)

The method of claim 10, wherein the determining whether to utilize the web crawler to select the first actionable item further comprises determining whether the first actionable element corresponds to one or more actions associated with the pre-set goal.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
in response to determining to utilize a web crawler to select the first actionable element, determining a reward to provide a reinforcement learning agent of the system, wherein the reward corresponds to an action caused by the selection of the first actionable element.

### Claim 13 (depends on 9)

The method of claim 9, wherein the pre-set goal is to access a checkout page, wherein the first actionable element corresponds to adding a first item to a digital cart, and wherein the operations further comprise:
in response to determining, based on analyzing the first additional information, that the digital cart contains an item, determining to not utilize the web crawler to select the first actionable element.

### Claim 14 (depends on 9)

The method of claim 9, wherein the creating the fixed length representation of the first actionable element includes utilizing a recurrent neural network (RNN) encoder to create a first code representation that corresponds to the first markup language.

### Claim 15 (depends on 9)

The method of claim 9, wherein the model is a reinforcement learning model.

### Claim 16

A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
identifying a pre-set goal corresponding to a website;
determining that a first portion of a markup language associated with the website corresponds to a first actionable element, wherein the first portion of the markup language is a variable length representation;
in response to determining that the first portion of the markup language corresponds to the first actionable element, creating a fixed length representation of the first actionable element, wherein the fixed length representation of the first actionable element corresponds to the first portion of the markup language and includes a first additional information associated with the pre-set goal;
inputting the fixed length representation of the first actionable element into a model; and
determining, based on an output provided by the model, whether to utilize a web crawler to select the first actionable element, wherein selecting the first actionable element causes a first action to be taken.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the determining whether to utilize the web crawler to select the first actionable element further comprises analyzing the first additional information to determine one or more previous actions taken by the web crawler.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the determining whether to utilize the web crawler to select the first actionable item further comprises determining whether the first actionable element corresponds to one or more actions associated with the pre-set goal.

### Claim 19 (depends on 16)

The non-transitory machine-readable medium of claim 16, the operations further comprising:
in response to determining to utilize a web crawler to select the first actionable element, determining a reward to provide a reinforcement learning agent of the system, wherein the reward corresponds to an action caused by the selection of the first actionable element.

### Claim 20 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the pre-set goal is to access a checkout page, wherein the first actionable element corresponds to adding a first item to a digital cart, and wherein the operations further comprise:
in response to determining, based on analyzing the first additional information, that the digital cart contains an item, determining to not utilize the web crawler to select the first actionable element.

### Claim 21 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the creating the fixed length representation of the first actionable element includes utilizing a recurrent neural network (RNN) encoder to create a first code representation that corresponds to the first markup language.
