Method, device and storage medium for determining a destination on a map

By obtaining text fragments and determining the recursive order based on grammatical relationships, and selecting a matching model to update the map area, it solves the problem of ignoring the structure and reasoning properties of natural language in the existing technology, and achieves more efficient and convenient robot map positioning and control.

CN113535869BActive Publication Date: 2024-09-06BAIDU USA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110691321.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-30
Filing Date
2021-06-22
Publication Date
2024-09-06
Estimated Expiration
2041-06-22

AI Technical Summary

Technical Problem

Existing robot language addressing algorithms rely on large amounts of data training and ignore the structure and reasoning properties of natural language, resulting in a lack of versatility for unrecorded language structures and difficulty in understanding position descriptions, resulting in inconvenient robot control.

Method used

By obtaining multiple fragments of text, determining the recursive order based on grammatical relationships, selecting matching models and updating map areas, using natural language processing technology to maximize the use of language structural features, decomposing the addressing task into independent language understanding tasks, using probability distributions Point to the target location.

Benefits of technology

It achieves robot map positioning with less data requirements and is easier to optimize, which can better understand user input and help users control the robot conveniently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535869B_ABST
    Figure CN113535869B_ABST
Patent Text Reader

Abstract

A method, device and storage medium for determining a destination on a map are provided. In the method, N segments of text are obtained; based on the grammatical relationship between the N segments of text, a recursive order of the N segments is determined; for each of the N segments, a matching model is selected from multiple models based on the meaning of the segment; in a recursive order, each segment is input into the matching model of the segment together with an initial area of ​​the map or an updated area output by the matching model for the previous segment of the segment in the recursive order; and the updated area output by the matching model for the last segment in the recursive order is used as the destination in the map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to the field of computer technology, and more particularly, to a method, an apparatus, and a computer-readable storage medium for determining a destination on a map. Background Art

[0002] In human-computer interaction, natural language is one of the most ideal forms of communication between users and robots. However, interpreting natural language is still a very difficult problem for robots. The main problem is that even if speech is successfully converted into text, there is still a considerable gap between the text and its appropriate interpretation. Summary of the invention

[0003] In a first aspect, a method for determining a destination on a map is provided. The method includes: obtaining N segments of text, wherein N is an integer greater than 1; determining a recursive order of the N segments based on grammatical relationships between the N segments of the text; for each of the N segments, selecting a matching model from a plurality of models based on the meaning of each segment, wherein the matching model of each segment is configured to use an input text and an input area of ​​a map as input, and output an updated area of ​​the map based on the meaning of the input text and the input area; in a recursive order, inputting each segment into the matching model of the segment together with an initial area of ​​the map or an updated area output by the matching model for a previous segment of the segment in the recursive order; and using the updated area output by the matching model for the last segment in the recursive order as the destination in the map.

[0004] In a second aspect, a device for determining a destination on a map is provided. The device includes one or more processors and a memory. The memory is used to store instructions executable by one or more processors to enable the device to perform the following operations, which include: obtaining N segments of text, where N is an integer greater than 1; determining the recursive order of the N segments based on the grammatical relationship between the N segments of the text; for each of the N segments, selecting a matching model from multiple models based on the meaning of each segment, wherein the matching model of each segment is configured to use the input text and the input area of ​​the map as input, and output an updated area of ​​the map based on the meaning of the input text and the input area; in a recursive order, each segment together with the initial area of ​​the map or the updated area output by the matching model for the previous segment of the segment in the recursive order is input into the matching model of the segment; and using the updated area output by the matching model for the last segment in the recursive order as the destination in the map.

[0005] In a third aspect, a non-temporary computer-readable storage medium storing instructions is provided, wherein the instructions are executable by a processor to perform operations, the operations comprising: obtaining N segments of text, wherein N is an integer greater than 1; determining a recursive order of the N segments based on the grammatical relationship between the N segments of the text; for each of the N segments, selecting a matching model from a plurality of models based on the meaning of the segment, wherein the matching model for each segment is configured to use an input text and an input area of ​​a map as input, and output an updated area of ​​the map based on the meaning of the input text and the input area; in a recursive order, inputting each segment into the matching model of the segment together with an initial area of ​​the map or an updated area output by the matching model for a previous segment of the segment in the recursive order; and using the updated area output by the matching model for the last segment in the recursive order as a destination in the map. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent from the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements:

[0007] Figure 1 is a flow chart of a method for determining a destination on a map according to some embodiments of the present disclosure;

[0008] Figure 2 is a schematic diagram of an implementation method of determining a recursive order of fragments according to some embodiments of the present disclosure;

[0009] Figure 3 is a schematic diagram of the implementation method of inputting each of the text fragments into the matching model;

[0010] Figure 4 is a schematic diagram of an application example of inputting each of the text fragments into the matching model;

[0011] Figure 5 is a flowchart of a method for determining a destination on a map according to some other embodiments of the present disclosure;

[0012] Figure 6 is a schematic diagram of a semantic description of update functions of multiple models according to some embodiments of the present disclosure;

[0013] Figure 7 is a schematic diagram of performing calculations on a text segment according to some embodiments of the present disclosure;

[0014] Figure 8 is an application scenario of a method for determining a destination on a map; and

[0015] Fig. 9 is a schematic diagram of a device for determining a destination on a map according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0016] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the relevant disclosure, rather than to limit the present disclosure. In addition, it should be noted that for ease of description, only components related to the relevant disclosure are shown in the accompanying drawings.

[0017] It should also be noted that the embodiments and features in the embodiments in the present disclosure can be combined with each other on a non-conflicting basis. The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0018] Most current robot language addressing algorithms maintain a limited set of strategies for fixed scenarios and establish a mapping between images or geographic information and natural language through a large amount of data training. Most existing technologies use the learning ability of neural networks to memorize the mapping relationship between language and target locations from a large amount of data. This approach does not fully utilize the structure of the language and ignores the reasoning nature of the destination description in natural language. Its disadvantages include huge demand for data, lack of generality for undocumented language structures, and difficulty in understanding location descriptions that require reasoning, which leads to inconvenience in robot control.

[0019] Figure 1 is a flow chart of a method for determining a destination on a map according to some embodiments of the present disclosure. The method comprises steps 101 to 105.

[0020] Step 101 includes: obtaining N segments of text, where N is an integer greater than 1.

[0021] In some embodiments, the text is obtained based on user input. The user input can be any input that a machine or computer can receive. In some embodiments, the user input includes at least one of voice, input from a keyboard, input from a sensor, or input from a touch screen.

[0022] In some embodiments, the N segments include segments indicating positions and segments indicating positional relationships.

[0023] In some implementations, the user says "go to the conference room near the north exit", and the robot receives the speech and obtains the text "go to the conference room near the north exit" from the speech. In some implementations, semantic analysis is performed on the text to obtain text about the location description, such as "the conference room near the north exit". Then, multiple segments of the text are obtained, namely noun segments (e.g., "conference room" and "north exit") and preposition segments (e.g., "nearby").

[0024] Step 102 includes: determining a recursive order of the N segments based on grammatical relations between the N segments of the text.

[0025] In some embodiments, step 102 includes: Figure 2 Steps 1021 and 1022 are shown. Step 1021 includes determining the noun subject segment preceding the preposition segment, the preposition segment, and the object segment of the preposition segment from the N segments.

[0026] In some embodiments, natural language processing (NLP) tools are used to parse the text into words with a subject u. h 、preposition u prep and the object of the preposition u pob The subordinate structure of j.

[0027] Step 1022 includes determining the noun subject segment preceding the preposition segment as the first segment in the recursive order, determining the preposition segment as the second segment in the recursive order, and determining the object segment as the third segment in the recursive order.

[0028] Step 103 includes: for each of the N fragments, selecting a matching model from multiple models based on the meaning of each fragment, wherein the matching model of each fragment is configured to use the input text and the input area of ​​the map as input, and output an updated area of ​​the map based on the meaning of the input text and the input area.

[0029] In some embodiments, the multiple models include a first type model and a second type model, wherein the first type model is configured to use a first map area and a first type of text indicating a location as input, and output a first updated area within the first map area, and wherein the second type model is configured to use a second map area and a second type of text indicating the positional relationship as input, and output a second updated area based on the second map area and the positional relationship.

[0030] In some embodiments, the positional relationship includes a proximity relationship, and the second type model includes a proximity model configured to use the second map area and the second type text indicating the proximity relationship as input and output a second updated area adjacent to the second map area.

[0031] In some embodiments, the positional relationship includes a directional relationship, and the second type model includes a directional model configured to use the second map area and the second type text indicating the directional relationship as input and output a second update area in the direction of the second map area.

[0032] In some implementations, the models matching the noun segment preceding the prepositional segment, the prepositional segment, and the object noun segment may use the following equations, respectively:

[0033]

[0034]

[0035]

[0036] in, represents a ground function with θ as a parameter, and b0 represents a virtual confidence or an initial distribution across the entire map m. In some embodiments, equation (1) and equation (3) share the same function.

[0037] Step 104 includes inputting each segment into the matching model of each segment in a recursive order, together with the initial region of the map or the updated region output by the matching model for the segment preceding the segment in the recursive order.

[0038] In some embodiments, step 104 includes: Figure 3 Step 1041 and step 1042 are shown.

[0039] Step 1041 includes: inputting the first segment in the recursive order and the initial area of ​​the map into the matching model of the first segment to obtain a first updated area.

[0040] Step 1042 includes: for each of the second to Nth segments in the recursive order, inputting the segment and the update region output by the matching model for the previous segment of the segment in the recursive order into the matching model of the segment to obtain an update region for the segment.

[0041] Figure 4 FIG. 1 shows an example of application of step 104. Figure 4 In the example above, the first segment "North Exit" is input into the first model together with the initial area of ​​the map, as defined in equation (1). Then, the second segment "Nearby" is input into the second model together with the output of the first model, as defined in equation (2). Finally, the third segment "Conference Room" is input into the third model together with the output of the second model, as defined in equation (3).

[0042] Step 105 includes using the updated region output by the matching model for the last segment in the recursive order as the destination in the map.

[0043] In some embodiments, using Figure 4 The output of the third model in is used as the destination. In some embodiments, the coordinates of the map are determined by the robot based on the destination on the map, and then the robot plans a path from the current position of the robot to the coordinates of the map and moves along the planned path.

[0044] The method according to some embodiments of the present disclosure makes maximum use of the structural features of natural language, decomposes the complete addressing task into several independent language understanding tasks according to the instruction structure, and sends the extracted information in the form of probability distribution. In the initial state, the target probability is evenly distributed throughout the map. The probability distribution is understood and updated one by one through independent languages ​​and points to the final target location.

[0045] The method according to some embodiments of the present disclosure is interpretable, easy to optimize, and requires less data. Using the method according to some embodiments of the present disclosure, the coordinates of the destination in the map can be easily determined by the robot based on the user's input, thereby helping the user control the robot.

[0046] Figure 5 is a flow chart of a method for determining a destination on a map according to some other embodiments of the present disclosure. The method includes steps 501 to 505.

[0047] Step 501 includes obtaining N segments of text, the N segments including segments indicating positions, segments indicating directions, segments indicating proximity, and segments not indicating any positions or any positional relationships.

[0048] Step 502 includes determining the recursive order of the N segments based on the grammatical relationship between the N segments of the text. Step 502 is the same as step 102, and the relevant description can refer to the description of step 102.

[0049] Step 503 includes: selecting a matching model for each of the N fragments, the selection including: selecting a first type of model as a matching model for fragments indicating positions, selecting a direction model as a matching model for fragments indicating directions, selecting a proximity model as a matching model for fragments indicating proximity, and selecting a third type of model as a matching model for fragments that do not indicate any positions or any positional relationships.

[0050] In the following description of the present disclosure, the fragments of the text are also referred to as modifiers, and the input and output of the model are also referred to as prior and posterior, respectively. Table I shows examples of the first type of model (i.e., exact model), proximity model, direction model, and third type of model (i.e., virtual model) and their available inputs, outputs, and rules according to some embodiments.

[0051] Table I

[0052] Update Type

[0053]

[0054] In some embodiments, equations (1) to (3) are unified and viewed as the following general confidence update chain:

[0055]

[0056] b k =f θ (u k ,…f θ (u2,f θ (u1, b0)))…) (5)

[0057] Where k refers to u pobj and u prep In some embodiments, the text is broken down into grammatically relevant segments (u k ), and each of the sequences is recursively applied to update the concept of confidence b.

[0058] In some embodiments, a set of learnable functions is constructed and classifier The update function in equation (4) can be expressed as:

[0059]

[0060] in, is the indicator function. The classifier c is represented as a neural network and is defined as follows:

[0061]

[0062] Among them, Φ c represents the hidden state extracted by the gated recurrent unit (GRU) layer, and W c refers to the weights of the linear layer that maps the hidden states of the GRU to the original classification weights. Figure 6 A semantic diagram showing update functions of multiple models according to some embodiments of the present disclosure is shown. The update functions of the precise model, the directional model, the proximity model and the virtual model are described as follows.

[0063] Accurate model

[0064] In some embodiments, the map m∈M is divided into a set of regions of interest Each region has a boundary B within the map boundary B0 i Each area a i A tuple of commonly mentioned strings, such as a unique region id, region category, and region name (if applicable), is associated, and at most N words are assigned to each region of interest.

[0065] In some implementations, each word in the region information is converted into a fixed-length embedding, and then the length embeddings are concatenated. The result is a matrix representation of the map information, represented as S is the number of regions of interest. N is the number of tokens in the region descriptor. H is the dimensionality of the word embedding. In some embodiments, the modifier u k is encoded as an embedding matrix In some embodiments, the exact model is formulated as an S-level classification problem that generates a discrete distribution w defined over all regions in the map. k Each area a i The calculation of is as follows:

[0066]

[0067] where γ k , and w k-1 represents the direction scale factor, modifier-map attention and prior weight explained below, and η refers to the normalization factor. Then, w k (i) Assigned to the boundary B i The area on the map indicated by is then normalized over the entire map to recover the full confidence b k .

[0068] γ k The use of is triggered by the fact that the direction is usually used as an adjective of the subject (see Table 1). The equation is as follows:

[0069]

[0070] where σ is the sigmoid function, x i It is area a i The centroid of the map, B0 is the boundary of the map, e αk is the predicted direction α k ∈[-π,π] unit direction vector, κ k ∈[0,1] indicates whether k The trainable variable using the direction, β k is to adjust γ k is a scaling factor of , and ∈ is a positive constant. When directional adjectives are used, κ k is marked as 1 and presented in exponential form γ k , the exponential form of γ k According to each area a i The projection of the centroid along the prediction direction is used to weight each region a i . Add beta k As an offset to provide additional flexibility. When no directional adjective is involved, κ kis marked as 0, and for all a i Will γ k (i) is pushed to ∈, thus effectively eliminating this discriminant term. i and b i All terms except are shared by all region weights and are computed by the learnable function as

[0071]

[0072] where Φ* represents the hidden state extracted by the GRU layer, and W* are the weights of the linear layer that produces a scalar output.

[0073] The attention term in equation (8) As shown below:

[0074]

[0075] in, is the normalization factor, is assigned to area a i The j-th word embedding of It refers to the modifier The l-th word embedding in the term is obtained by integrating the predefined region information and the modifier u k The matching word pairs between the two are counted to weight each region a i The normalized embedding dot product is filtered by a threshold λ to check for word matches.

[0076] Finally, by collecting each region a from the prior confidence i The weights are used to calculate the regional prior w k-1 (i) as follows:

[0077]

[0078] where u and v are map coordinates, and η k-1 is the normalization factor.

[0079] Proximity Model

[0080] When there are prepositions involving proximity relations, the posterior is represented as a Gaussian distribution centered on the prior and assigned a variance proportional to the size of the prior region. The update function is then expressed as:

[0081]

[0082] Among them, x k-1 and |B k-1 | is based on the prior b k-1 The indicated regions have centroid coordinates and sizes, and ρ is a proportionality constant.

[0083] Direction Model

[0084] In addition to being used as an adjective, a directional word (e.g., "north") can also be used directly as a subject, for example, "the north of conference room 202". In some embodiments, a Gaussian distribution is used to represent the prior, but the distribution is set to retain only the confidence and u k Consistent additional mask. See Figure 6 The update function can be expressed as:

[0085]

[0086] Among them, e αk is the effective direction α k The unit direction vector of N. k-1 The same form as equation (13) is used. Cos(·,·) is the cosine similarity. In some embodiments, α k is represented as a learnable variable similar to Equation (10) as shown below:

[0087]

[0088] Virtual Model

[0089] In some implementations, the virtual model function is the same mapping.

[0090] In some embodiments, the learnable function is trained by back-propagation to minimize a specific type of loss. In some embodiments, the map used for training is a floor plan of an office consisting of general work areas, meeting rooms, and designated areas such as entertainment areas. In some embodiments, in addition to reusing existing spatial structures such as rooms and designated areas, general public spaces such as corridors are also segmented. In some embodiments, the entire map is segmented into 80 regions with specified attributes. See Table II for a summary of the region attributes.

[0091] Table II

[0092] Region attributes and modifiers dictionary

[0093]

[0094] For each update type t, K = 10 modifiers u are randomly generated based on a predefined dictionary (see Table II) and are added to each region a i Used as a key area.

[0095] In some embodiments, 3200 update samples are used for training. The process of generating basic training samples for each update function is as follows.

[0096] For the dummy model: the prior and posterior confidences are omitted, and each training sample is a single item with type label t*=0 (u k ,).

[0097] For the proximity model: the prior b0 is uniformly distributed in the key region, and the posterior b1 is a Gaussian distribution centered in the key region with a standard deviation proportional to the size of the key region. Each training sample is a tuple (b0, b1, u k ).

[0098] For the directional model: the prior b0 is uniformly distributed in the key region, and the directional angle α is sampled from a uniform [-π, π) k , and the posterior b1 is generated by adopting a Gaussian distribution similar to that in the proximity update, but half of it uses the same k Finally, based on α k Determine the modifier u k Each training sample is a tuple (b0, b1, u k , α k ).

[0099] For the exact model: First randomly generate a priori b0 as the output of proximity update or direction update based on the keyword region. Then, sample map locations from b0 and select the two top regions a1 and a2 where most of the sampled locations fall. Then generate a modifier u that uniquely locates a1 based on the minimal set of rules k (See Table III, square brackets indicate optional usage.) In addition, if the directional word is used as an adjective, then κ k is marked as 1, otherwise it is marked as 0. The posterior b1 is evenly distributed in a1. Each training sample is a tuple (b0, b1, u k , α k , κ k ).

[0100] Table III

[0101] Modifier generation rules

[0102]

[0103] The set of update functions set in Equation (6) is trained by minimizing the total loss of all supervised terms applicable to each update function type. The loss for all supervised terms is defined as follows. For classifier c, the cross entropy loss L c Use as

[0104]

[0105] For the direction α k , the marginal l2 loss is used as

[0106]

[0107] For the indicator κ k , cross entropy loss κ k Use as

[0108]

[0109] In some embodiments, during the training phase, 10% of the data is kept as a test set, and training is performed on the remaining samples. The text instructions are encoded using Bert embedding for each word individually, and word embeddings of length H = 768 are generated. In some embodiments, the GRU hidden size is set to 8, and optimization is performed for 10 epochs using Adam with a learning rate of 1e-4.

[0110] In some embodiments, in each confidence update, the input is a prior-modifier tuple (b0,u), as described above, and each input tuple is paired with a ground truth update type t* and a desired output term.

[0111] Step 504 includes inputting each of the N segments into a matching model for each segment in a recursive order, wherein each of the N segments has an initial region of the map or an updated region output by the matching model for a previous segment of the segment in the recursive order.

[0112] Figure 7 A schematic diagram showing the computation performed on a text snippet.

[0113] Step 505 includes using the updated region output by the matching model for the last segment in the recursive order as the destination in the map.

[0114] Step 505 is the same as step 105 , and the relevant description may refer to the description of step 105 .

[0115] Figure 8An application scenario of a method for determining a destination on a map is shown. The user is asked by the robot's speaker to describe a navigation command. In response, the user says "Go to the North Telephone Room near the entertainment area". The robot receives the user's voice through a microphone, converts the voice into text, and then determines the destination on the map based on the text using the method according to some embodiments of the present disclosure. After determining the destination, the robot plans a path from the current location to the destination and moves along the planned path using cameras and sensors.

[0116] like Fig. 9 As shown, the device includes: one or more processors 901, a memory 902, and interfaces (including high-speed interfaces and low-speed interfaces) for connecting various components. The various components are connected to each other using different buses, and can be installed on a universal motherboard or in other ways as needed. The processor can process instructions executed within the device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device connected to the interface). In other embodiments, multiple processors and / or multiple buses can be used together with multiple memories when necessary. Similarly, multiple electronic devices can be connected, and these devices provide some necessary operations, such as a server array, a group of blade servers, or a multi-processor system. In Fig. 9 In, as an example, one processor 901 is used.

[0117] The memory 902 is a non-transitory computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor, which cause at least one processor to perform a method for determining a destination on a map according to an embodiment of the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, which are used to cause a computer to perform a method for determining a destination on a map according to an embodiment of the present disclosure.

[0118] The memory 902 as a non-transitory computer-readable storage medium can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method for determining a destination on a map according to an embodiment of the present disclosure. The processor 901 executes the non-transitory software programs, instructions and modules stored in the memory 902 to perform various functional applications and data processing of the server, that is, to implement the method for determining a destination on a map according to an embodiment of the present disclosure.

[0119] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function, and the data storage area may store data created by using a device for a method for determining a destination on a map according to an embodiment of the present disclosure. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 902 may optionally include a memory remotely disposed relative to the processor 901, and these remote memories may be connected to a device for a method for determining a destination on a map according to an embodiment of the present disclosure. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0120] According to some embodiments of the present disclosure, the device for executing the method for determining the destination on the map may further include: an input device 903 and an output device 904. The processor 901, the memory 902, the input device 903 and the output device 904 may be connected via a bus or in other ways. Fig. 9 In, as an example, a connection via a bus is used.

[0121] The input device 903 can receive input digital or character information and generate key signal input related to user settings and function control of the device for learning knowledge representation method. The input device 903 is, for example, a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick, and other input devices. The output device 904 may include a display device, an auxiliary lighting device (e.g., an LED), a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.

[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present disclosure can be performed in parallel, sequentially or in a different order. As long as the expected results of the technical solutions disclosed in the present disclosure can be achieved, no limitation is made herein.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and replacements can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.

Claims

1. A method for determining a destination on a map, the method comprising: Get N fragments of text, where N is an integer greater than 1; Determining a recursive order of the N segments based on a grammatical relationship between the N segments of the text includes: Determine, from the N segments, a noun subject segment preceding a prepositional segment, the prepositional segment, and an object segment of the prepositional segment; and determining the noun subject segment as a first segment in the recursive sequence, determining the preposition segment as a second segment in the recursive sequence, and determining the object segment as a third segment in the recursive sequence; For each of the N segments, selecting a matching model for each segment from a plurality of models based on the meaning of each segment, wherein the matching model for each segment is configured to use an input text and an input area of ​​the map as inputs, and output an updated area of ​​the map based on the meaning of the input text and the input area; Inputting each segment into a matching model for each segment in the recursive order together with an initial region of the map or an updated region output by the matching model for a previous segment of the segment in the recursive order comprises: inputting a first segment in the recursive order and an initial region of the map into a matching model of the first segment to obtain a first updated region; and For each of the second to Nth segments in the recursive sequence, inputting each segment and the update region output by the matching model for a previous segment of each segment in the recursive sequence into the matching model of each segment to obtain the update region of each segment; and The updated region output by the matching model for the last segment in the recursive order is used as a destination in the map.

2. The method according to claim 1, wherein: The N segments include segments indicating positions and segments indicating positional relationships; The multiple models include a first type of model and a second type of model, Wherein, the first type of model is configured to: use a first map area and a first type of text indicating the location as input, and output a first update area within the first map area; The second type model is configured to use a second map area and a second type of text indicating the positional relationship as input, and output a second update area based on the second map area and the positional relationship.

3. The method according to claim 2, wherein: The positional relationship includes a proximity relationship, and the second type model includes a proximity model, which is configured to use the second map area and the second type text indicating the proximity relationship as input and output the second update area adjacent to the second map area.

4. The method according to claim 3, wherein: The positional relationship includes a directional relationship, and the second type model includes a directional model, which is configured to use the second map area and the second type text indicating the directional relationship as input and output the second update area in the direction of the second map area.

5. The method according to claim 4, wherein: The plurality of models include a third type model configured to use a third map area and a third type text as input and output the third map area, wherein the third type text does not indicate any location or any location relationship.

6. The method according to claim 5, wherein: Acquiring the N segments of the text includes: acquiring the segment indicating the position, the segment indicating the direction, the segment indicating the proximity, and the segment not indicating any position or any position relationship; Wherein, for each of the N segments, selecting a matching model from a plurality of models including the first type model and the second type model based on the meaning of each segment comprises: The first type of model is selected as the matching model for the segment indicating the position, the direction model is selected as the matching model for the segment indicating the direction, the proximity model is selected as the matching model for the segment indicating proximity, and the third type of model is selected as the matching model for the segment not indicating any position or any positional relationship.

7. The method according to claim 2, wherein: The positional relationship includes a directional relationship, and the second type model includes a directional model, which is configured to use the second map area and the second type text indicating the directional relationship as input and output the second update area in the direction of the second map area.

8. The method according to claim 2, wherein: For each of the N segments, selecting the matching model from a plurality of models including the first type model and the second type model based on the meaning of each segment comprises: Determining, by a classifier, a type of each of the N segments based on the meaning of each segment; and A matching model for each segment is determined based on the type of each segment and the type of the model.

9. The method according to claim 1, wherein: The method further includes controlling the movement of the robot based on the destination in the map.

10. The method according to claim 1, wherein: The text is acquired based on user input, where the user input includes at least one of voice, input from a keyboard, input from a sensor, or input from a touch screen.

11. A device for determining a destination on a map, the device comprising: one or more processors; as well as A memory for storing instructions executable by the one or more processors to enable the device to perform the following operations, the operations comprising: Get N fragments of text, where N is an integer greater than 1; Determining a recursive order of the N segments based on a grammatical relationship between the N segments of the text includes: Determine, from the N segments, a noun subject segment preceding a prepositional segment, the prepositional segment, and an object segment of the prepositional segment; and determining the noun subject segment as a first segment in the recursive sequence, determining the preposition segment as a second segment in the recursive sequence, and determining the object segment as a third segment in the recursive sequence; For each of the N segments, selecting a matching model for each segment from a plurality of models based on the meaning of each segment, wherein the matching model for each segment is configured to use an input text and an input area of ​​the map as inputs, and output an updated area of ​​the map based on the meaning of the input text and the input area; Inputting each segment into a matching model for each segment in the recursive order together with an initial region of the map or an updated region output by the matching model for a previous segment of the segment in the recursive order comprises: inputting a first segment in the recursive order and an initial region of the map into a matching model of the first segment to obtain a first updated region; and For each of the second to Nth segments in the recursive sequence, inputting each segment and the update region output by the matching model for a previous segment of each segment in the recursive sequence into the matching model of each segment to obtain the update region of each segment; and The updated region output by the matching model for the last segment in the recursive order is used as a destination in the map.

12. The device according to claim 11, wherein The N segments include segments indicating positions and segments indicating positional relationships; The multiple models include a first type of model and a second type of model, The first type of model is configured to use a first map area and a first type of text indicating the location as input, and output a first updated area within the first map area; the second type of model is configured to use a second map area and a second type of text indicating the location relationship as input, and output a second updated area based on the second map area and the location relationship.

13. The device according to claim 12, wherein: The positional relationship includes a proximity relationship, and the second type model includes a proximity model, which is configured to use the second map area and the second type text indicating the proximity relationship as input and output the second update area adjacent to the second map area.

14. The apparatus according to claim 12, wherein: The positional relationship includes a directional relationship, and the second type model includes a directional model, which is configured to use the second map area and the second type text indicating the directional relationship as input and output the second update area in the direction of the second map area.

15. The device according to claim 14, wherein: The plurality of models include a third type model configured to use a third map area and a third type text as input and output the third map area, wherein the third type text does not indicate any location or any location relationship.

16. The device according to claim 15, wherein: Acquiring the N segments of the text includes: acquiring the segment indicating the position, the segment indicating the direction, the segment indicating the proximity, and the segment not indicating any position or any position relationship; Wherein, for each of the N segments, selecting a matching model from a plurality of models including the first type model and the second type model based on the meaning of each segment comprises: The first type of model is selected as the matching model for the segment indicating the position, the direction model is selected as the matching model for the segment indicating the direction, the proximity model is selected as the matching model for the segment indicating proximity, and the third type of model is selected as the matching model for the segment not indicating any position or any positional relationship.

17. The apparatus according to claim 11, wherein: The operations also include controlling the robot to move based on a destination in the map.

18. A non-transitory computer-readable storage medium storing instructions executable by a processor to cause the processor to perform operations comprising: Get N fragments of text, where N is an integer greater than 1; Determining a recursive order of the N segments based on a grammatical relationship between the N segments of the text includes: Determine, from the N segments, a noun subject segment preceding a prepositional segment, the prepositional segment, and an object segment of the prepositional segment; and determining the noun subject segment as a first segment in the recursive sequence, determining the preposition segment as a second segment in the recursive sequence, and determining the object segment as a third segment in the recursive sequence; For each of the N segments, selecting a matching model for each segment from a plurality of models based on the meaning of each segment, wherein the matching model for each segment is configured to use an input text and an input area of ​​a map as inputs, and output an updated area of ​​the map based on the meaning of the input text and the input area; Inputting each segment into a matching model for each segment in the recursive order together with an initial region of the map or an updated region output by the matching model for a previous segment of the segment in the recursive order comprises: inputting a first segment in the recursive order and an initial region of the map into a matching model of the first segment to obtain a first updated region; and For each of the second to Nth segments in the recursive sequence, inputting each segment and the update region output by the matching model for a previous segment of each segment in the recursive sequence into the matching model of each segment to obtain the update region of each segment; and The updated region output by the matching model for the last segment in the recursive order is used as a destination in the map.