A text processing method, apparatus, computer device, and storage medium
By obtaining and updating the text identifier of the game client page, the problem of restoring text scenes in game localization test is solved, and the accuracy of text semantics is improved.
Patent Information
- Application Number
- CN202111389195.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In game localization tests, it is difficult for QA personnel to accurately restore the scenes in which the text appears, making it difficult to understand the semantics of the text.
By obtaining page indication information of the client page, the text identification in the text record data is determined, and the text identification is updated based on the page indication information to record the specific scene of the text in the game.
It realizes accurate restoration of the scenes in which text appears during the game operation, and improves the accuracy of text semantic understanding.
Smart Images

Figure CN114159797B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technologies, and in particular, to a text processing method, apparatus, computer device, and storage medium. Background Art
[0002] In the process of existing game localization testing (LQA), it is necessary to review the text that appears in the game. And during the review process, if there are any problems, iterative operations will be performed in the game files. Among them, localization testing refers to changing the software version language, such as changing the English Windows to Chinese Windows. When QA personnel are checking the game, if they find that there is a problem with a certain game text, then for the context of this text, they need to view the actual content in the game during the check. At this time, the scene where the text appears is not necessarily fixed. Therefore, it is rather difficult for QA personnel to find the corresponding resource location based on the existing file links and restore the scene where the text appears, resulting in difficulty in correctly understanding the semantics of the text. Summary of the Invention
[0003] Embodiments of this application provide a text processing method, apparatus, computer device, and storage medium, which can restore the scene where the text is located, better understand the semantics, and thus understand specific problems.
[0004] Embodiments of this application provide a text processing method, including:
[0005] Obtain page indication information corresponding to a target text displayed on a client page, where the page indication information is used to indicate the page where the target text is located;
[0006] Determine text record data of the client page, where the text record data includes each text displayed on the client page and a text identifier corresponding to the text, and the text identifier includes a text number corresponding to the text, where the text identifier is used to indicate the current text to be checked during a text check operation;
[0007] Update the text identifier of the target text in the text record data based on the page indication information of the target text.
[0008] In an optional embodiment, the obtaining page indication information corresponding to a target text displayed on a client page includes:
[0009] Obtain an edited text obtained by editing the target text in the client page;
[0010] If the edited text matches the meaning of the target text in the client, obtain the page indication information of the target text;
[0011] In an optional embodiment, updating the text identifier of the target text in the text record data based on the page indication information of the target text includes:
[0012] Replacing the target text in the text record data with the edited text, and writing the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
[0013] In an optional embodiment, obtaining the page indication information of the target text includes:
[0014] Replacing the target text in the client page with the edited text, and performing a screenshot process on the page where the edited text is located to obtain the page indication information.
[0015] In an optional embodiment, the method further includes:
[0016] If there are at least two first screenshots corresponding to the obtained edited text, determining the number of texts in each of the first screenshots;
[0017] Retaining the first screenshot with the largest number of texts in each of the first screenshots in the text record data.
[0018] In an optional embodiment, obtaining the page indication information corresponding to the target text displayed in the client page includes:
[0019] Recording the running process of the client to obtain a client video;
[0020] Determining the nodes corresponding to each text displayed in the client page in the client video, and setting video node identifiers corresponding to the texts at the nodes in the client video;
[0021] Obtaining the target video node identifier and the corresponding target video segment corresponding to the target text, and determining them as the page indication information corresponding to the target text;
[0022] In an optional embodiment, updating the text identifier of the target text in the text record data based on the page indication information of the target text includes:
[0023] Based on the page indication information corresponding to the target text, storing the target video node identifier corresponding to the target text into the text identifier of the target text in the text record data.
[0024] In an optional embodiment, the method further includes:
[0025] If there are at least two client videos corresponding to the target text, determine the number of video node identifiers of each client video within a preset time period;
[0026] Store, in the text record data, the client video with the largest number of video node identifiers among each client video.
[0027] In an alternative embodiment, the method further includes:
[0028] Obtain a target text number, and determine a target video node identifier corresponding to the text corresponding to the target text number;
[0029] Based on the target video node identifier, locate the corresponding position in the client video to play the target video segment.
[0030] In an alternative embodiment, the method further includes:
[0031] During the process of running the client, determine the order of text display in the client page;
[0032] Based on the order, adjust the arrangement order of the text and the corresponding text identifier in the text record data.
[0033] In an alternative embodiment, the method further includes:
[0034] During the process of running the client, perform a screenshot process on the page where each text displayed in the client page is located to obtain page indication information corresponding to each text;
[0035] Store the page indication information corresponding to each text into the text identifier of each text in the text record data.
[0036] In an alternative embodiment, the method further includes:
[0037] In response to a text check operation, determine a current text to be checked and page indication information corresponding to the text to be checked based on the text identifier in the text record data;
[0038] Display the text to be checked and the corresponding page indication information.
[0039] An embodiment of the present application further provides a text processing device, including:
[0040] An acquisition unit, configured to acquire page indication information corresponding to a target text displayed in a client page, where the page indication information is used to indicate the page where the target text is located;
[0041] A determination unit for determining the text record data of the client page, where the text record data includes each text displayed on the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text;
[0042] An update unit for updating the text identifier of the target text in the text record data based on the page indication information of the target text.
[0043] An embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the text processing method as described above are implemented.
[0044] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the text processing method as described above are implemented.
[0045] An embodiment of the present application provides a text processing method, which includes: obtaining page indication information corresponding to a target text displayed on a client page, where the page indication information is used to indicate the page where the target text is located; determining the text record data of the client page, where the text record data includes each text displayed on the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text; updating the text identifier of the target text in the text record data based on the page indication information of the target text.
[0046] Thus, in the process of running the client, this solution can obtain page indication information based on each text displayed on the page, save it in the text record data, and restore the scene where the text is located by searching for the text in the text record data. Combining the context can better understand the semantics to understand specific problems. Description of the Drawings
[0047] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0048] Figure 1 is a system schematic diagram of a text processing device provided by an embodiment of the present application;
[0049] Figure 2 is a flowchart of a text processing method provided by an embodiment of the present application;
[0050] Figure 3 It is another schematic flowchart of a text processing method provided by an embodiment of the present application;
[0051] Figure 4 It is a schematic structural diagram of a text processing device provided by an embodiment of the present application;
[0052] Figure 5 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners
[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0054] The embodiments of the present application provide a text processing method, device, computer device, and storage medium. Specifically, this embodiment provides a text processing method applicable to a text processing device, and the text processing device can be integrated in a computer device.
[0055] Among them, the computer device can be a terminal device such as a smartphone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, and the client can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The computer device can also be a server device, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but is not limited thereto.
[0056] For example, when the text processing method is applied to a terminal, the terminal is deployed with a target game application, and a game interface is provided when the terminal runs the target game application. The terminal device may provide a game interface to a user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal device, or the game interface may be presented through holographic projection. For example, the terminal device may include a touch screen and a processor, the touch screen is used to present the game interface and receive operation instructions generated by the user acting on the game interface, and the processor is used to run the game, generate the game interface, respond to the operation instructions, and control the display of the game interface on the touch screen.
[0057] For example, when the text processing method is run on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the main body of the game screen presentation are separated, and the storage and operation of the skill control method are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0058] See also Figure 1 , Figure 1System schematic diagram of the text processing device provided by the embodiments of the present application. The system may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by a user can be connected to the servers of different games through the network 4000. The terminal 1000 is any device with computing hardware that can support and execute software products corresponding to games. Additionally, the terminal 1000 has one or more multi-touch sensitive screens for sensing and obtaining inputs of touch or swipe operations performed by the user at multiple points on one or more touch display screens. Additionally, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be interconnected through different networks 4000 and through different servers 2000. The network 4000 can be a wireless network or a wired network. For example, the wireless network can be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. Additionally, different terminals 1000 can also use their own Bluetooth networks or hotspot networks to connect to other terminals or to servers, etc. For example, multiple users can go online through different terminals 1000, connect through an appropriate network, and synchronize with each other to support multi-player games. Additionally, the system can include multiple databases 3000. The multiple databases 3000 are coupled to different servers 2000, and information related to the game environment can be continuously stored in the databases 3000 when different users are online for multi-player games.
[0059] The embodiments of the present application provide a text processing method, which can be executed by a terminal or a server. The text processing method includes: obtaining page indication information corresponding to the target text displayed on the client page, where the page indication information is used to indicate the page where the target text is located; determining the text record data of the client page, where the text record data includes each text displayed on the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text, and the text identifier is used to indicate the text to be inspected currently during the text inspection operation; updating the text identifier of the target text in the text record data based on the page indication information of the target text. Herein, the text in the present application refers to the text related to the game and used to represent the game content, which can include, for example, the plot lines in the game, item descriptions, task descriptions, control labels, etc.
[0060] Herein, taking games as an example, the present application does not limit the types of games, as long as text can be displayed on the game page during the running of the game application. For example, during the game process, by the game user completing a certain operation or making a certain selection, text is sequentially displayed on the game page to promote the game process.
[0061] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.
[0062] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of a text processing method provided by an embodiment of the present application. As Figure 2 shown, the specific process of the text processing method in the embodiment of the present application mainly includes steps 201 to 203, and the details are as follows:
[0063] 201. Obtain page indication information corresponding to the target text displayed on the client page, where the page indication information is used to indicate the page where the target text is located.
[0064] Taking a certain game application as an example, when the QA team retrieves the game text table, it is basically all text and there are no pictures. It is impossible to determine which interface and specific scenario the text is in based on the information in the text table, and thus it is impossible to verify the problems of the text. Therefore, in the embodiment of the present application, during the operation of the game client, page indication information corresponding to the text displayed on the client page is obtained. The page indication information can be a screenshot of the page where the text is located. The page indication information is used to indicate the page where the text is located, that is, based on this page indication information, the specific scenario of the text in the game can be understood, and the semantics of the text can be better understood. For example, the text can refer to a certain dialogue in the game, such as Dialogue A. According to the screenshot of the page where Dialogue A is located, it can be known in which order Dialogue A appears in the game. For example, in this page, Dialogue A appears first, and then Dialogue B appears, and in what kind of scenario the dialogue appears (such as before the battle, during the battle, or after the battle), so that the specific scenario of Dialogue A in the game can be understood and the semantics of Dialogue A can be better understood.
[0065] In the embodiment of the present application, the game user can modify the text with problems during the game. If, when the game user is playing the game, it is found that a certain text that appears on the game page has a problem, the text can be clicked for editing, and the modified text is input in the text editing box displayed on the game page. Among them, let the text be the target text, and the input text be the edited text. After obtaining the edited text obtained by editing the target text on the game page, it is judged whether the meaning of the edited text matches the meaning of the target text in the game. If the edited text matches the meaning of the target text in the game, the page indication information of the target text is obtained. Among them, the text having a problem can refer to that the text is not easy to understand, the text expression when combined with the specific game scenario is rather jerky, or there are some grammar errors, etc.
[0066] In the embodiments of the present application, it is determined whether the meaning of the edited text matches the meaning of the target text in the game, that is, it is determined whether the semantics of the edited text is similar to the semantics of the target text in the game, or whether the keywords of the edited text match the keywords in the target text.
[0067] Among them, if it is a large segment of text, the target semantics corresponding to the edited text can be determined, and a semantic similarity analysis is performed based on the target semantics and the preset semantics of the target text in the client; if the semantic similarity between the target semantics and the preset semantics is not lower than the preset semantic similarity threshold, it is determined that the meaning of the edited text matches the meaning of the target text in the client. If it is a small segment of text, keywords can be extracted from the edited text; keyword matching is performed based on the keywords and the target keywords corresponding to the target text; if the keyword matching is successful, it is determined that the meaning of the edited text matches the meaning of the target text in the client.
[0068] In the embodiments of the present application, if the page indication information is a screenshot of the page where the target text is located, when the meaning of the edited text matches the meaning of the target text in the game, the target text displayed on the client page is replaced with the edited text, and the page where the edited text is located is screenshot to obtain the page indication information of the target text.
[0069] In the embodiments of the present application, multiple screenshots of the edited text may be obtained at the same time. For example, some screenshots are screenshots of the entire page, and some screenshots are screenshots that only contain the edited text, etc. Therefore, if at least two screenshots corresponding to the edited text are obtained, the number of texts in each screenshot is determined, and the screenshot with the largest number of texts in each screenshot is retained in the text record data of the client.
[0070] In the embodiments of the present application, for devices with relatively good performance of some devices, the running process of the client can be recorded to obtain a client video. The nodes corresponding to each text displayed on the client page in the client video are determined, video node identifiers corresponding to the texts are set at the nodes in the client video, and the video node identifiers corresponding to each text are stored in the text record data of the client. Among them, the client video is cached in the game server for game developers to view the video.
[0071] In the embodiments of the present application, there may be multiple client videos corresponding to the target text obtained at the same time. For example, if there are at least two client videos corresponding to the target text, the number of video node identifiers in each client video within a preset time period is determined. For example, in a video recorded for 1 minute, the client video with the largest number of video node identifiers in each client video is stored in the text record data.
[0072] 202. Determine the text record data of the client page. The text record data includes each text displayed on the client page and the text corresponding text identifier. The text identifier includes the text number corresponding to the text. The text identifier is used to indicate the text to be inspected currently during the text inspection operation.
[0073] In the embodiment of the present application, determining the text record data of the client page, that is, the text table, stores each text displayed on the client page and the text corresponding text identifier in the text table. The text identifier includes the text number corresponding to the text. The text number can be a mark when the text is born, such as a number composed of a string of digits. Among them, different texts with different contents correspond to different text numbers, and texts with the same content but different display positions in the game also correspond to different text numbers. Therefore, every time a new edited text appears, a new screenshot will be taken based on this text, and a corresponding new text number will also be generated. The text identifier is used to indicate the text to be inspected currently during the text inspection operation.
[0074] In the embodiment of the present application, during the process of running the client, determine the display sequence of the texts on the client page, and adjust the arrangement order of the texts and the corresponding text identifiers in the text record data based on the sequence, so as to facilitate the subsequent LQA team to view the sequence relationship of the texts and clarify the logical relationship of the texts. Among them, the experience sequence of each game user in the game is inconsistent, resulting in different display sequences of the texts on the client page. Therefore, during the sorting process, the system can determine a more reasonable text sequence based on the game sequences of multiple game users. For example, the sequence relationship with the most same sorts is used as the display sequence of the texts.
[0075] In the embodiment of the present application, during the process of running the client, perform screenshot processing on the pages where each text displayed on the client page is located to obtain the page indication information corresponding to each text; store the page indication information corresponding to each text into the text identifier of each text in the text record data. Therefore, the content of the text, the corresponding text number, the corresponding screenshot or video node identifier are recorded in the text record data. During the process of the LQA personnel checking the text record data, they can view the positions of each text in the game in turn, understand the semantics of the text, and combine the context and the scene screenshot or video clip to verify the problem.
[0076] Among them, during subsequent localization testing, developers can directly open the corresponding video clip by text number to better understand the game process. When the user inputs the text number into the game, the target text number can be obtained, the target video node identifier corresponding to the text corresponding to the target text number can be determined, and based on the target video node identifier, the corresponding position in the client video can be located to play the target video clip, that is, the corresponding video clip is exported for the user to view or understand. Alternatively, the user can also jump to a specific game scene by clicking on the text number to understand the specific problem.
[0077] 203. Update the text identifier of the target text in the text record data based on the page indication information of the target text.
[0078] In the embodiment of the present application, after obtaining the page indication information of the target text, the text identifier of the target text in the text record data of the client page is updated based on the page indication information. That is, the obtained screenshot or video node identifier is saved in the corresponding text identifier.
[0079] In the embodiment of the present application, if a game user modifies the text with problems during the game process, after obtaining the edited text for editing the target text and determining that the edited text matches the meaning of the target text in the client, after obtaining the page indication message of the target text, the target text in the text record data is replaced with the edited text, and the page indication information of the target text is written into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
[0080] In the embodiment of the present application, in the LQA process, some LQAs will check the text record data in the game and correct errors in the text record data. The specific steps include: in response to a text check operation, determining the current text to be checked and the page indication information corresponding to the text to be checked based on the text identifier in the text record data, and displaying the text to be checked and the corresponding page indication information on the client page.
[0081] This solution can obtain the page indication information based on each text displayed on the page during the operation of the client, save it in the text record data, find the text in the text record data, restore the scene where the text is located, and better understand the semantics in combination with the context to understand the specific problem.
[0082] In this embodiment, the text processing method will be described in detail. The text processing method can be integrated on the terminal or the server. Please refer to Figure 3 , Figure 3Another process schematic diagram of the text processing method provided by the embodiments of the present application. The specific process of the text processing method mainly includes steps 301 to 304, which are described in detail as follows:
[0083] 301. Obtain the edited text obtained by editing the target text in the client page.
[0084] In the embodiments of the present application, game users can modify the text with problems during the game. When a game user is playing a game and finds that a certain text appearing in the game page has a problem, the user can click on the text to edit it and enter the modified text in the text editing box displayed on the game page. Here, let the text be the target text, and the input text be the edited text. Among them, the text having a problem may mean that the text is difficult to understand, the text expression in combination with the specific game scenario is rather obscure, or there are some grammar errors, etc.
[0085] For example, the text can be in Chinese or English. For a certain Chinese text appearing in the game page, if a game user wants to add the English text of this text, then click on the text to edit it and enter the Chinese and English version of the text in the text editing box displayed on the game page, set it as the target text, and perform subsequent operations.
[0086] 302. If the meaning of the edited text matches the meaning of the target text in the client, obtain the page indication information of the target text.
[0087] In the embodiments of the present application, after obtaining the edited text obtained by editing the target text in the game page, it is determined whether the meaning of the edited text matches the meaning of the target text in the game. If the meaning of the edited text matches the meaning of the target text in the game, the page indication information of the target text is obtained.
[0088] In the embodiments of the present application, determining whether the meaning of the edited text matches the meaning of the target text in the game means determining whether the semantics of the edited text is similar to the semantics of the target text in the game, or determining whether the keywords of the edited text match the keywords in the target text.
[0089] Among them, if it is a large paragraph of text, the target semantics corresponding to the edited text can be determined, and semantic similarity analysis is performed based on the target semantics and the preset semantics of the target text in the client; if the semantic similarity between the target semantics and the preset semantics is not lower than the preset semantic similarity threshold, it is determined that the meaning of the edited text matches the meaning of the target text in the client. If it is a small paragraph of text, keywords can be extracted from the edited text; keyword matching is performed based on the keywords and the target keywords corresponding to the target text; if the keyword matching is successful, it is determined that the meaning of the edited text matches the meaning of the target text in the client.
[0090] 303. Determine the text record data of the client page. The text record data includes each text displayed on the client page and the text identifier corresponding to the text. The text identifier includes the text number corresponding to the text.
[0091] In the embodiment of the present application, determining the text record data of the client page, that is, the text table, stores each text displayed on the client page and the text identifier corresponding to the text in the text table. The text identifier includes the text number corresponding to the text. The text number can be a mark when the text is born, such as a number composed of a string of digits. Among them, different texts correspond to different text numbers, and texts with the same content but different display positions in the game also correspond to different text numbers. Therefore, every time a new edited text appears, a new screenshot will be taken based on this text, and a corresponding new text number will also be generated.
[0092] 304. Replace the target text in the text record data with the edited text, and write the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
[0093] In the embodiment of the present application, when a game user modifies a problematic text during the game, after obtaining the edited text for editing the target text and determining that the meaning of the edited text matches the target text in the client, and after obtaining the page indication message of the target text, replace the target text in the text record data with the edited text, and write the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
[0094] For example, during the game, if a user finds that a certain text displayed on the page is problematic, the user can click on this text for correct translation iteration. The system will retrieve the user's language submission content and perform preliminary translation verification, and check it against the Chinese corresponding to this position stored in the game to see if it has a similar meaning. If it is a large paragraph of iteration, semantic analysis will be performed to determine whether the key semantics are similar to the official semantics corresponding to this text (it can be compared with the translation content in Chinese or English versions). When it is found that the semantics or translation is similar, the system will take a screenshot of this scene, record the KEY value of this text, that is, the above-mentioned text number, for subsequent replacement in the text table; after taking the screenshot, the system will save this screenshot in the KEY corresponding to the text table as a cached picture for QA personnel to perform post-mortem tracking.
[0095] In some alternative embodiments of the present application, if a game user discovers multiple problematic texts during the game, after submitting the edited text, the system can determine in real time whether the meaning of the edited text matches, and then replace it in the text record data when it matches. It is also possible to perform a matching judgment on all the edited texts submitted by the user after the game ends, and then replace them all in the text record data. Alternatively, a preset time period can be set, the edited texts submitted within this time period are obtained, then a matching judgment is performed on these edited texts, and they are replaced in the text record data. Compared with real-time judgment, it can reduce the server pressure and does not require updating the text record data all the time.
[0096] Any combination of the above technical solutions can form alternative embodiments of the present application, which will not be elaborated one by one here.
[0097] In this solution, during the process of a game user playing the game, based on the text with problems displayed on the page, the modified text is input. When the meaning of the modified text matches the original text in the client, the corresponding page indication information is obtained, and the original text in the text record data is replaced with the modified text, and the page indication information is written to obtain the text identifier corresponding to the modified text, which is convenient for subsequent QA personnel to search for texts in the text record data for later review and tracking.
[0098] To better implement the above method, correspondingly, the embodiment of the present application further provides a text processing device, which can be specifically integrated in a computer device.
[0099] Please refer to Figure 4 , Figure 4 which is a schematic structural diagram of the text processing device provided by the embodiment of the present application. The text processing device includes an acquisition unit 401, a determination unit 402, and an update unit 403, as follows:
[0100] The acquisition unit 401 is configured to acquire the page indication information corresponding to the target text displayed on the client page, and the page indication information is used to indicate the page where the target text is located;
[0101] The determination unit 402 is configured to determine the text record data of the client page, where the text record data includes each text displayed on the client page and the text corresponding text identifier, and the text identifier includes the text number corresponding to the text, and the text identifier is used to indicate the current text to be inspected during the text inspection operation;
[0102] The update unit 403 is configured to update the text identifier of the target text in the text record data based on the page indication information of the target text.
[0103] In an alternative embodiment, the obtaining unit 401 includes:
[0104] Obtain the edited text obtained by editing the target text in the client page;
[0105] If the meaning of the edited text matches the meaning of the target text in the client, obtain the page indication information of the target text;
[0106] In an alternative embodiment, the updating unit 403 includes:
[0107] Replace the target text in the text record data with the edited text, and write the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
[0108] In an alternative embodiment, the obtaining unit 401 includes:
[0109] Replace the target text in the client page with the edited text, and perform a screenshot process on the page where the edited text is located to obtain the page indication information.
[0110] In an alternative embodiment, the apparatus further includes:
[0111] If at least two first screenshots correspond to the obtained edited text, determine the number of texts in each of the first screenshots;
[0112] Retain the first screenshot with the largest number of texts in each of the first screenshots in the text record data.
[0113] In an alternative embodiment, the obtaining unit 401 includes:
[0114] Record the running process of the client to obtain a client video;
[0115] Determine the nodes corresponding to each text displayed on the client page in the client video, and set video node identifiers corresponding to the texts at the nodes in the client video;
[0116] Obtain the target video node identifier and the corresponding target video segment corresponding to the target text, and determine them as the page indication information corresponding to the target text;
[0117] In an alternative embodiment, the updating unit 403 includes:
[0118] Based on the page indication information corresponding to the target text, store the target video node identifier corresponding to the target text into the text identifier of the target text in the text record data.
[0119] In an optional embodiment, the device further includes:
[0120] If there are at least two client videos corresponding to the target text, determine the number of video node identifiers of each client video within a preset time period;
[0121] Store the client video with the largest number of video node identifiers in each of the client videos in the text record data.
[0122] In an optional embodiment, the device further includes:
[0123] Obtain the target text number, and determine the target video node identifier corresponding to the text corresponding to the target text number;
[0124] Based on the target video node identifier, locate the corresponding position in the client video to play the target video segment.
[0125] In an optional embodiment, the device further includes:
[0126] During the process of running the client, determine the order of text display in the client page;
[0127] Based on the order, adjust the arrangement order of the text and the corresponding text identifier in the text record data.
[0128] In an optional embodiment, the device further includes:
[0129] During the process of running the client, perform a screenshot process on the page where each text displayed in the client page to obtain the page indication information corresponding to each text;
[0130] Store the page indication information corresponding to each text into the text identifier of each text in the text record data.
[0131] In an optional embodiment, the device further includes:
[0132] In response to a text check operation, based on the text identifier in the text record data, determine the current text to be checked and the page indication information corresponding to the text to be checked;
[0133] Display the text to be checked and the corresponding page indication information.
[0134] Any combination of the above technical solutions can form an optional embodiment of the present application, which will not be elaborated here one by one.
[0135] In the text processing device provided in the embodiment of the present application, when the acquisition unit 401 acquires the page indication information corresponding to the target text displayed in the client page, the page indication information is used to indicate the page where the target text is located; then, when the determination unit 402 determines the text record data of the client page, the text record data includes each text displayed in the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text, where the text identifier is used to indicate the text to be inspected currently in the text inspection operation; finally, the update unit 403 updates the text identifier of the target text in the text record data based on the page indication information of the target text.
[0136] The text processing device provided in the embodiment of the present application can, during the operation of the client, acquire the page indication information based on each text displayed in the page and save it in the text record data. By searching for the text in the text record data, the scene where the text is located can be restored, and the semantics can be better understood in combination with the context to understand the specific problem.
[0137] Correspondingly, the embodiment of the present application further provides a computer device, which can be a computer device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. As Figure 5 shown, Figure 5 is a schematic structural diagram of the computer device 500 provided in the embodiment of the present invention. The computer device 500 includes a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, and a computer program stored on the memory 502 and executable on the processor. Among them, the processor 501 is electrically connected to the memory 502. Those skilled in the art can understand that the structure of the computer device 500 shown in the figure does not constitute a limitation on the computer device, and it may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0138] The processor 501 is the control center of the computer device 500, connecting various parts of the entire computer device 500 through various interfaces and lines. By running or loading the software programs and / or modules stored in the memory 502, and calling the data stored in the memory 502, the processor 501 executes various functions of the computer device 500 and processes data, thereby monitoring the computer device 500 as a whole.
[0139] In an embodiment of the present application, the processor 501 in the computer device 500 will load instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 will run the application programs stored in the memory 502 to implement various functions:
[0140] Obtain page indication information corresponding to the target text displayed on the client page, where the page indication information is used to indicate the page where the target text is located; determine the text record data of the client page, where the text record data includes each text displayed on the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text. Among them, the text identifier is used to indicate the text to be inspected currently during the text inspection operation; update the text identifier of the target text in the text record data based on the page indication information of the target text.
[0141] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated here.
[0142] Optionally, as Figure 5 shown, the computer device 500 further includes: a touch display screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. Among them, the processor 501 is electrically connected to the touch display screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507 respectively. Those skilled in the art can understand that Figure 5 the computer device structure shown in
[0143] The touch display screen 503 can be used to display a graphical user interface and receive operation instructions generated by a user's interaction with the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations of the user on or near it (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 501, and can receive and execute the commands sent by the processor 501. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event. Subsequently, the processor 501 provides corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present invention, the touch panel and the display panel can be integrated into the touch display screen 503 to achieve input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 503 can also be used as part of the input unit 506 to achieve the input function.
[0144] The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other computer devices through wireless communication, and transmit and receive signals with the network device or other computer devices.
[0145] The audio circuit 505 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 505 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 505 and then converted into audio data. After the audio data is output to the processor 501 for processing, it is transmitted through the radio frequency circuit 504 to, for example, another computer device, or the audio data is output to the memory 502 for further processing. The audio circuit 505 may also include an earphone jack to provide communication between a peripheral earphone and the computer device.
[0146] The input unit 506 can be used to receive input digital, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0147] The power supply 507 is used to supply power to each component of the computer device 500. Optionally, the power supply 507 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 507 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0148] Although Figure 5 not shown in the figure, the computer device 500 may also include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.
[0149] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0150] As can be seen from the above, the computer device provided in this embodiment can obtain page indication information corresponding to the target text displayed in the client page, and the page indication information is used to indicate the page where the target text is located; determine the text record data of the client page, and the text record data includes each text displayed in the client page and the text corresponding text identifier, and the text identifier includes the text number corresponding to the text, where the text identifier is used to indicate the current text to be inspected in the text inspection operation; update the text identifier of the target text in the text record data based on the page indication information of the target text. This solution can obtain page indication information based on each text displayed in the page during the operation of the client, and save it in the text record data. By searching for the text in the text record data, the scene where the text is located can be restored, and the semantics can be better understood in combination with the context to understand specific problems.
[0151] Those of ordinary skill in the art can understand that all or part of the steps in the above various methods can be completed by instructions, or by instructions controlling related hardware. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0152] To this end, an embodiment of the present application provides a computer-readable storage medium, which stores multiple computer programs that can be loaded by a processor to execute the steps in any of the text processing methods provided by the embodiments of the present application. For example, the computer program can execute the following steps:
[0153] Obtain page indication information corresponding to the target text displayed on the client page, where the page indication information is used to indicate the page where the target text is located; determine the text record data of the client page, where the text record data includes each text displayed on the client page and the text identifier corresponding to the text, and the text identifier includes the text number corresponding to the text. Among them, the text identifier is used to indicate the current text to be inspected in the text inspection operation; update the text identifier of the target text in the text record data based on the page indication information of the target text.
[0154] For the specific implementation of each of the above operations, reference can be made to the previous embodiments and will not be elaborated here.
[0155] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc.
[0156] The above has introduced in detail a text processing method, device, computer device, and storage medium provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A text processing method, characterized in that, Including: Obtain the edited text obtained by editing the target text in the client page, where the target text is the text with problems in the game page, and the edited text is the text modified by the game user for the target text; If the meaning of the edited text matches the meaning of the target text in the client, obtain the page indication information corresponding to the target text displayed in the client page. The page indication information includes a screenshot of the page where the target text is located in the game, and the screenshot is used to indicate the scene of the target text in the game; Determine the text record data of the client page. The text record data includes each text displayed in the client page and the text corresponding text identifier. The text identifier includes the text number corresponding to the text, where the text identifier is used to indicate the current text to be inspected in the text inspection operation; Update the text identifier of the target text in the text record data based on the page indication information of the target text, including: replacing the target text in the text record data with the edited text, and writing the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
2. The text processing method according to claim 1, wherein The obtaining the page indication information of the target text includes: Replacing the target text in the client page with the edited text, and performing a screenshot process on the page where the edited text is located to obtain the page indication information.
3. The text processing method according to claim 2, wherein The method further includes: If at least two first screenshots correspond to the obtained edited text, determine the number of texts in each of the first screenshots; Retain the first screenshot with the largest number of texts in each of the first screenshots in the text record data.
4. The text processing method according to claim 1, characterized in that The obtaining the page indication information corresponding to the target text displayed in the client page includes: Recording the screen of the running process of the client to obtain a client video; Determine the nodes corresponding to each text displayed in the client page in the client video, and set video node identifiers corresponding to the texts at the nodes in the client video; Obtain the target video node identifier and the corresponding target video segment corresponding to the target text, and determine them as the page indication information corresponding to the target text.
5. The text processing method according to claim 4, wherein The updating the text identifier of the target text in the text record data based on the page indication information of the target text includes: Based on the page indication information corresponding to the target text, store the target video node identifier corresponding to the target text into the text identifier of the target text in the text record data.
6. The text processing method according to claim 4, characterized in that The method further includes: If there are at least two client videos corresponding to the target text, determine the number of video node identifiers of each client video within a preset time period; Store the client video with the largest number of video node identifiers in each of the client videos in the text record data.
7. The text processing method according to claim 4, characterized in that The method further includes: Obtain the target text number, and determine the target video node identifier corresponding to the text corresponding to the target text number; Locate the corresponding position in the client video based on the target video node identifier and play the target video segment.
8. The text processing method according to claim 1, characterized in that The method further includes: During the running of the client, determine the display sequence of texts in the client page; Based on the sequence, adjust the arrangement order of texts and corresponding text identifiers in the text record data.
9. The text processing method according to claim 1, characterized in that, The method further includes: During the running of the client, take screenshots of the pages where the texts displayed in the client page are located to obtain page indication information corresponding to each text; Store the page indication information corresponding to each text into the text identifier of each text in the text record data.
10. The text processing method according to claim 1, wherein The method further includes: In response to a text inspection operation, determine the current text to be inspected and the page indication information corresponding to the text to be inspected based on the text identifier in the text record data; Display the text to be inspected and the corresponding page indication information.
11. A text processing device, characterized in that, Includes: An acquisition unit, configured to acquire the edited text obtained by editing the target text in the client page, where the target text is the text with problems in the game page, and the edited text is the text modified by the game user to the target text; if the edited text matches the meaning of the target text in the client, acquire the page indication information corresponding to the target text displayed in the client page, and the page indication information includes a screenshot of the page where the target text is located in the game, and the screenshot is used to indicate the scene of the target text in the game; A determination unit, configured to determine the text record data of the client page, where the text record data includes each text displayed in the client page and the text corresponding text identifier, and the text identifier includes the text number corresponding to the text; An update unit, configured to update the text identifier of the target text in the text record data based on the page indication information of the target text, including: replacing the target text in the text record data with the edited text, and writing the page indication information of the target text into the text identifier of the target text in the text record data to obtain the text identifier corresponding to the edited text.
12. A computer device, characterized in that, Includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the steps of the text processing method according to any one of claims 1-10 are implemented.
13. A computer-readable storage medium, characterized in that, A computer program is stored thereon, where when the computer program is executed by the processor, the steps of the text processing method according to any one of claims 1-10 are implemented.
Citation Information
Patent Citations
Method and device for generating Web page object test file
CN111666220A