[go: up one dir, main page]

CN112860958B - Information display method and device - Google Patents

Information display method and device Download PDF

Info

Publication number
CN112860958B
CN112860958B CN202110059240.9A CN202110059240A CN112860958B CN 112860958 B CN112860958 B CN 112860958B CN 202110059240 A CN202110059240 A CN 202110059240A CN 112860958 B CN112860958 B CN 112860958B
Authority
CN
China
Prior art keywords
character
article
displayed
rendered
information display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110059240.9A
Other languages
Chinese (zh)
Other versions
CN112860958A (en
Inventor
谢凯
甘剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baijia Technology Group Co ltd
Original Assignee
Beijing Baijia Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baijia Technology Group Co ltd filed Critical Beijing Baijia Technology Group Co ltd
Priority to CN202110059240.9A priority Critical patent/CN112860958B/en
Publication of CN112860958A publication Critical patent/CN112860958A/en
Application granted granted Critical
Publication of CN112860958B publication Critical patent/CN112860958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides an information display method and device, wherein the information display method comprises the following steps: acquiring an article to be displayed and a character to be rendered; acquiring an article character set of an article to be displayed according to a preset character format; determining the character position of the character to be rendered in the article to be displayed according to the article character set; and outputting and displaying the article to be displayed and the character to be rendered according to the character position and the preset rendering rule. Therefore, by implementing the implementation mode, the display position of the character to be rendered can be rapidly positioned, the processing steps are simple, and meanwhile, the character to be rendered can be arbitrarily rendered and displayed.

Description

Information display method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information display method and apparatus.
Background
At present, with the continuous development of the internet, the text data content input by a user can be identified by word staggering and output. In the existing information display method for the wrong words, the wrong words in the articles are generally recognized through a character string matching method, then the characters of the articles are spliced into character strings, the wrong words are matched, character string replacement is carried out, and finally data display is carried out. However, in practice, it is found that the character string processing step is complicated, and the character string length needs to be recalculated every time it is processed, and complicated rendering display cannot be performed. As can be seen, the existing information display method has complicated processing steps and cannot perform complicated rendering display.
Disclosure of Invention
An object of the embodiment of the present application is to provide an information display method and apparatus, which can quickly locate a display position of a character to be rendered, and has simple processing steps, and meanwhile, can perform arbitrary rendering and display on the character to be rendered.
An embodiment of the present application provides an information display method, including:
acquiring an article to be displayed and a character to be rendered;
acquiring an article character set of the article to be displayed according to a preset character format;
determining the character position of the character to be rendered in the article to be displayed according to the article character set;
and outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule.
In the implementation process, the information display method can preferentially acquire the article to be displayed and the character to be rendered; then acquiring an article character set of an article to be displayed according to a preset character format; then determining the character position of the character to be rendered in the article to be displayed according to the article character set; and outputting and displaying the article to be displayed and the character to be rendered according to the character position and the preset rendering rule. Therefore, by implementing the implementation mode, the specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, the final display content is free from other characters, and the accurate and efficient information display process is realized.
Further, the obtaining the article to be displayed and the character to be rendered includes:
acquiring an article to be displayed;
performing error character recognition processing on the article to be displayed to obtain an error character recognition result;
and determining the character to be rendered of the article to be displayed according to the word-staggering recognition result.
In the implementation process, the method can obtain the article to be displayed preferentially, then the article to be displayed is subjected to wrongly written word recognition, and the recognized result is determined to be the character to be rendered, so that the character to be rendered can be modified in the subsequent display process, and the accurate display of the content is realized.
Further, the character to be rendered comprises a character array, wherein the character array at least comprises a position identifier and a character body to be rendered.
In the implementation process, the method can make the subsequent operation more targeted by performing highlighting processing on the character to be rendered, so that the overall information display accuracy is improved.
Further, the preset character format includes an array of single characters, wherein the array of single characters includes one or more of character bodies, phonetic symbol information, hierarchical parameters and attribute parameters.
In the implementation process, the method can determine the article character set in the array format of a single character, so that all the characters correspond to the same format, and the execution efficiency of the method is greatly improved.
Further, the outputting and displaying the character to be rendered in the article to be displayed according to the character position and a preset rendering rule includes:
determining target characters to be highlighted in the article to be displayed according to the character positions;
determining the attribute parameters of the target characters as the attribute parameters which need to be highlighted, and obtaining a target article character set;
and carrying out article recombination processing on the target article character set to obtain a target article, and outputting and displaying the target article according to a preset rendering rule.
In the implementation process, the method can determine the target character according to the character position, and then adjust the attribute parameters of the target character so as to enable the finally displayed article to have the highlighted mark, thereby improving the convenience of watching and identifying.
A second aspect of the embodiments of the present application provides an information display apparatus, including:
the first acquisition unit is used for acquiring an article to be displayed and a character to be rendered;
the second acquisition unit is used for acquiring the article character set of the article to be displayed according to a preset character format;
the position determining unit is used for determining the character position of the character to be rendered in the article to be displayed according to the article character set;
and the display unit is used for outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule.
In the implementation process, the device can obtain the article to be displayed and the character to be rendered preferentially; then acquiring an article character set of an article to be displayed according to a preset character format; then determining the character position of the character to be rendered in the article to be displayed according to the article character set; and outputting and displaying the article to be displayed and the character to be rendered according to the character position and the preset rendering rule. Therefore, by implementing the implementation mode, the specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, the final display content is free from other characters, and the accurate and efficient information display process is realized.
Further, the first acquisition unit includes:
the acquisition subunit is used for acquiring articles to be displayed;
the recognition subunit is used for carrying out error character recognition processing on the article to be displayed to obtain an error character recognition result;
and the determining subunit is used for determining the character to be rendered of the article to be displayed according to the word-misplacement recognition result.
In the implementation process, the device can obtain the article to be displayed preferentially, then the article to be displayed is subjected to wrongly written word recognition, and the recognized result is determined to be the character to be rendered, so that the character to be rendered can be modified in the subsequent display process, and accurate display of the content is realized.
Further, the preset character format includes an array of single characters, wherein the array of single characters includes one or more of character bodies, phonetic symbol information, hierarchical parameters and attribute parameters.
In the implementation process, the device can determine the article character set in the array format of a single character, so that all the characters correspond to the same format, and the execution efficiency of the method is greatly improved.
A third aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to execute the computer program to cause the electronic device to execute the information display method according to any one of the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer program instructions which, when read and executed by a processor, perform the method for displaying information according to any one of the first aspect of the embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an information display method according to an embodiment of the present application;
fig. 2 is a flow chart of another information display method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an information display device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another information display device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of an information display method according to an embodiment of the present application. The information display method comprises the following steps:
s101, acquiring an article to be displayed and a character to be rendered.
In some possible implementations, the character to be rendered includes a character array, wherein the character array includes at least a location identification and a character body to be rendered. Specifically, the character to be rendered may be an error character in the article to be displayed, a character to be highlighted in the article to be displayed, and the like, which is not limited in this embodiment of the present application.
In some possible embodiments, when the character to be rendered is an error character in the article to be displayed, all the error character data in the article to be displayed may be obtained through an error character recognition algorithm, and all the error character data obtained through recognition are used as error characters.
For example, a character array in the characters to be rendered may be represented as { beginin dex:16, endindex:17, chn_char: "person", overlap: 1, char: "def" }. Wherein 'person' is the character body to be rendered, the beginine dex and the endindex are the position marks (i.e. subscripts) of the character body to be rendered in the article to be displayed, and '16' and '17' represent the character positions of the character body to be rendered in the article to be displayed.
In some possible embodiments, the location identification may also include a hierarchy parameter.
In some possible embodiments, the method may acquire, through a back end of the system, whole article data of an article to be displayed, and specifically, the data of the article to be displayed is stored with paragraphs or punctuation marks as segmentation points. For example, an article is provided that includes two sections, wherein the first section is "the mice come into the ground every day, and see the peanut. The second segment is "he etc., wait until the flowers fall off, and see no peanut. ", the data of the article to be displayed can be expressed as:
a: { content: "the mice were all grown in the ground every day, and the peanuts were seen to be absent. "};
b { content: "he et o, until flowers fall off, and one peanut is not seen. "}.
Wherein A is the level parameter of all characters in the first section, and B is the level parameter of all characters in the second section.
Of course, the foregoing paragraphs may be divided according to a custom rule, such as the foregoing a: { content: "the mice were all grown in the ground every day, and the peanuts were seen to be absent. "} can also be divided into C { content: "mice go into the ground every day," } and D { content: "see peanut knots none. "}, which is not described in detail.
In some possible embodiments, the article to be displayed and the character to be rendered may be returned in a preset array format. Each character to be rendered has a corresponding index (i.e. position identifier) and the article to be displayed is marked in a matching manner, so that the character position of each character to be rendered in the article to be displayed is conveniently confirmed.
S102, acquiring an article character set of an article to be displayed according to a preset character format.
In some possible embodiments, the preset character format comprises an array of individual characters, wherein the array of individual characters comprises one or more of character ontology, phonetic symbol information, hierarchical parameters, and attribute parameters. Specifically, when the character body is a Chinese character, the phonetic symbol information is the pinyin information of the Chinese character, the level parameter is used for representing the paragraph where the character body is located, and the attribute parameter is used for marking whether the character body needs to be rendered and displayed or not; when the character body is an English character, the phonetic symbol information is phonetic symbol information of the English character, the level parameter is used for representing a paragraph where the character body is located, and the attribute parameter is used for marking whether the character body needs rendering display or not; when the character body is a japanese character, the phonetic symbol information is kana information of the japanese character, the level parameter is used for representing a paragraph where the character body is located, the attribute parameter is used for marking whether the character body needs to be rendered and displayed, and the like, which is not described in detail.
For example, if a single character in the article character set is "find", then the array may be: { text: "find", scell: "zhhao", group:0, wrong:0, wherein "find" is the character body, "zh hao" is phonetic symbol information of the character body, group is the hierarchical parameter of the character body, wrong is the attribute parameter of the character body.
In the embodiment of the present invention, by storing the characters in the article to be displayed in the preset character format, all the data states can be stored therein, so that all the subsequent processes can use this as the basic data. In the traditional character string mode, the data processed last time is required to be used as the basic data of the processing, so that the processing process is complicated and complex.
In some possible embodiments, the method may obtain all the article characters in the article to be displayed according to a preset format. For example, all characters and phonetic symbol information in the article to be displayed are identified through character recognition, the alignment of each character is determined according to a semantic mode and the like, the position and the like of each character are determined according to a character vector mode and the like, and then all the article characters in the article to be displayed are stored for later use.
S103, determining the character position of the character to be rendered in the article to be displayed according to the article character set.
In some possible embodiments, the method may determine the location of the wrongly written word (character to be rendered) among all the article characters, so that the method may perform a replacement of the correct character in a subsequent process according to the location.
In some possible embodiments, the method can convert the character string corresponding to each content into an array of a single character to obtain an article character set, and the array serial number of each character body in the article character set is consistent with the character string serial number of the article to be displayed, so that the character string serial number corresponds to the beginin dex in the character to be rendered one by one.
And S104, outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule.
In the embodiment of the application, when the output display is performed, firstly, modifying attribute parameters of characters to be rendered and displayed in the article character set according to the character positions to obtain a target character set, then recovering Cheng Wenzhang data from the target character set according to the hierarchical attributes of the characters in the target character set, and finally rendering and outputting the article data according to preset rendering rules and attribute parameters.
In some possible implementations, the method may also replace the misplaced word with the correct word based on the character position.
In some possible embodiments, the method may stitch patterns of different formats to render the page according to whether phonetic symbol information is presented. For example, the spelling information of the text is displayed at the same time of displaying the text.
In some possible embodiments, the method may perform corresponding rendering according to display requirements, such as displaying pinyin or not displaying pinyin.
In some possible embodiments, the method may display the adjusted correct article or the unadjusted initial article when the final article is displayed.
In some possible embodiments, the method preferably outputs the adjusted correct article and displays an adjustment trace, such as a highlight trace, a mark color trace, or a modification trace, among others, in the correct article.
In some possible implementations, the Chinese characters and corresponding Pinyin string data are processed into { text: 'white', scell: 'bai', group:0, where the group representation is data in an entire sentence, providing support for rendering into a sentence later.
In some possible embodiments, the data begin of the miscord is a location identifier (hereinafter referred to as a subscript) of the processed array, and the wrng is added according to the subscript to find the corresponding element: true attribute.
In some possible embodiments, the location identifier is specifically used to represent a character location of the corresponding miscord character body in the article to be displayed.
For example, assume that a character array in a miscord character can be represented as { beginine dex:21, endindex:22, chn_char: "liter", overlap: 1, char: "def" }. Wherein, the 'liter' is the character body of the wrong word, the beginine dex and the endidex are the position marks (i.e. subscripts) of the character body to be rendered in the article to be displayed, and the '21' and the '22' represent the character positions of the 'liter' in the article to be displayed.
In some possible embodiments, the method may convert the two-dimensional array into a three-dimensional array according to the group attribute.
In some possible embodiments, in the array after the traversal processing, the third-dimensional data may set different color fonts according to the wrong state, and may splice different layout styles according to whether the pinyin is displayed.
In the embodiment of the present application, the execution subject of the method may be a computing device such as a computer, a server, or the like, which is not limited in any way.
In the embodiment of the present application, the execution body of the method may also be an intelligent device such as an intelligent mobile phone, a tablet computer, and the like, which is not limited in any way.
Therefore, by implementing the information display method described in fig. 1, the articles to be displayed and the characters to be rendered can be preferentially acquired; then acquiring an article character set of an article to be displayed according to a preset character format; then determining the character position of the character to be rendered in the article to be displayed according to the article character set; and outputting and displaying the article to be displayed and the character to be rendered according to the character position and the preset rendering rule. Therefore, by implementing the implementation mode, the specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, the final display content is free from other characters, and the accurate and efficient information display process is realized.
Referring to fig. 2, fig. 2 is a flow chart of another information display method according to an embodiment of the present application. As shown in fig. 2, the information display method includes:
s201, acquiring an article to be displayed.
In some possible embodiments, the method may preferentially acquire the article to be displayed, and store the article to be displayed in the buffer space.
S202, performing error character recognition processing on the article to be displayed to obtain an error character recognition result.
In some possible embodiments, the method of the false word recognition processing is not limited in this embodiment.
S203, determining the character to be rendered of the article to be displayed according to the word-misplacement recognition result.
In some possible implementations, the method may determine the miscord recognition result as the character to be rendered.
S204, acquiring an article character set of the article to be displayed according to a preset character format.
In some possible embodiments, the method may unify the article characters into a preset format.
S205, determining the character position of the character to be rendered in the article to be displayed according to the article character set.
In some possible embodiments, the method can adjust and modify the characters of the character positions by determining the character positions, so that the overall adjustment efficiency is improved.
S206, determining target characters to be highlighted in the article to be displayed according to the character positions.
In some possible embodiments, the target character to be highlighted may be the correct character after adjustment, or may be an incorrect character, or may be a word that needs to be focused on, which is not limited to this embodiment of the present application.
In some possible embodiments, highlighting is used to indicate that the correct character is adjusted.
S207, determining the attribute parameters of the target characters as the attribute parameters which need to be highlighted, and obtaining a target article character set.
In some possible implementations, attribute parameters are used to control whether a character needs to be highlighted.
For example, the method may be specific to { text: "small", spell: "xi, first, group:5} processing to obtain { text: "small", spell: "xi, first, group:5, wrong: true }.
In some possible embodiments, the above example may add the status (i.e., wrong: true) of whether the status is wrong to the base data, so that all the status is saved to the data, and further, only the data may be traversed according to the display rule in the subsequent process.
And S208, carrying out article recombination processing on the target article character set to obtain a target article, and outputting and displaying the target article according to a preset rendering rule.
In some possible embodiments, the above-mentioned array further includes a group hierarchy relationship. The group hierarchy can restore data into a two-dimensional array, where one dimension is an artificial paragraph and two dimensions are natural paragraphs of an article. The elements in the two-dimensional array are each word, and different patterns can be rendered according to whether pinyin is displayed or not.
Therefore, by implementing the information display method described in fig. 2, a specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, no wrong character exists in the final display content, and an accurate and efficient information display process is realized.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an information display device according to an embodiment of the present application. As shown in fig. 3, the information display device includes:
a first obtaining unit 310, configured to obtain an article to be displayed and a character to be rendered;
a second obtaining unit 320, configured to obtain an article character set of an article to be displayed according to a preset character format;
a position determining unit 330, configured to determine a character position of the character to be rendered in the article to be displayed according to the article character set;
and the display unit 340 is configured to output and display the article to be displayed and the character to be rendered according to the character position and the preset rendering rule.
In this embodiment of the present application, the explanation of the information display device may refer to the description in embodiment 1 or embodiment 2, and a detailed description is not repeated in this embodiment.
Therefore, by implementing the information display device described in the example of fig. 3, a specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, and the final display content has no wrong character, thereby realizing an accurate and efficient information display process.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another information display device according to an embodiment of the present disclosure. The information display device shown in fig. 4 is optimized by the information display device shown in fig. 3. As shown in fig. 4, the first acquisition unit 310 includes:
an obtaining subunit 311, configured to obtain an article to be displayed;
the recognition subunit 312 is configured to perform error character recognition processing on the article to be displayed, so as to obtain an error character recognition result;
and a determining subunit 313, configured to determine the character to be rendered of the article to be displayed according to the recognition result of the miscord.
As an alternative embodiment, the character to be rendered includes a character array, wherein the character array includes at least a location identifier and a character body to be rendered.
As an alternative embodiment, the preset character format includes an array of individual characters, wherein the array of individual characters includes one or more of character ontology, phonetic symbol information, hierarchical parameters, and attribute parameters.
As an alternative embodiment, the display unit 340 includes:
a first subunit 341, configured to determine, according to the character position, a target character that needs to be highlighted in the article to be displayed;
a second subunit 342, configured to determine an attribute parameter of the target character as an attribute parameter that needs to be highlighted, so as to obtain a target article character set;
and a third subunit 343, configured to perform article reorganization processing on the target article character set to obtain a target article, and output and display the target article according to a preset rendering rule.
In this embodiment of the present application, the explanation of the information display device may refer to the description in embodiment 1 or embodiment 2, and a detailed description is not repeated in this embodiment.
Therefore, by implementing the information display device described in fig. 4, a specific position of the character to be rendered can be determined in the article to be displayed, so that the correct character can be replaced at the position, and the final display content has no wrong character, thereby realizing an accurate and efficient information display process.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to execute the computer program to cause the electronic device to execute any one of the information display methods of embodiment 1 or embodiment 2 of the present application.
The present embodiments provide a computer readable storage medium storing computer program instructions that, when read and executed by a processor, perform the information display method of any one of embodiment 1 or embodiment 2 of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. An information display method, comprising:
acquiring an article to be displayed and a character to be rendered;
acquiring an article character set of the article to be displayed according to a preset character format;
determining the character position of the character to be rendered in the article to be displayed according to the article character set;
outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule;
the obtaining the article to be displayed and the character to be rendered comprises the following steps:
acquiring an article to be displayed;
performing error character recognition processing on the article to be displayed to obtain an error character recognition result;
determining the character to be rendered of the article to be displayed according to the word-staggering recognition result;
the outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule comprises the following steps:
determining target characters to be highlighted in the article character set according to the character positions;
determining the attribute parameters of the target characters as the attribute parameters which need to be highlighted, and obtaining a target article character set;
and carrying out article recombination processing on the target article character set to obtain a target article, and outputting and displaying the target article according to a preset rendering rule.
2. The information display method according to claim 1, wherein the character to be rendered includes a character array, wherein the character array includes at least a position identification and a character body to be rendered.
3. The information display method according to claim 1, wherein the preset character format includes an array of single characters, wherein the array of single characters includes one or more of character bodies, phonetic symbol information, hierarchical parameters, and attribute parameters.
4. An information display device, characterized in that the information display device comprises:
the first acquisition unit is used for acquiring an article to be displayed and a character to be rendered;
the second acquisition unit is used for acquiring the article character set of the article to be displayed according to a preset character format;
the position determining unit is used for determining the character position of the character to be rendered in the article to be displayed according to the article character set;
the display unit is used for outputting and displaying the article to be displayed and the character to be rendered according to the character position and a preset rendering rule;
wherein the first acquisition unit includes:
the acquisition subunit is used for acquiring articles to be displayed;
the recognition subunit is used for carrying out error character recognition processing on the article to be displayed to obtain an error character recognition result;
the determining subunit is used for determining the character to be rendered of the article to be displayed according to the word-staggering recognition result;
the display unit is specifically configured to determine, according to the character position, a target character that needs to be highlighted in the article character set; determining the attribute parameters of the target characters as the attribute parameters which need to be highlighted, and obtaining a target article character set; and carrying out article recombination processing on the target article character set to obtain a target article, and outputting and displaying the target article according to a preset rendering rule.
5. The information display apparatus according to claim 4, wherein the preset character format includes an array of single characters, wherein the array of single characters includes one or more of character bodies, phonetic symbol information, hierarchical parameters, and attribute parameters.
6. An electronic device comprising a memory for storing a computer program and a processor that runs the computer program to cause the electronic device to execute the information display method according to any one of claims 1 to 3.
7. A readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the information display method of any one of claims 1 to 3.
CN202110059240.9A 2021-01-15 2021-01-15 Information display method and device Active CN112860958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110059240.9A CN112860958B (en) 2021-01-15 2021-01-15 Information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110059240.9A CN112860958B (en) 2021-01-15 2021-01-15 Information display method and device

Publications (2)

Publication Number Publication Date
CN112860958A CN112860958A (en) 2021-05-28
CN112860958B true CN112860958B (en) 2024-01-26

Family

ID=76007157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110059240.9A Active CN112860958B (en) 2021-01-15 2021-01-15 Information display method and device

Country Status (1)

Country Link
CN (1) CN112860958B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694603A (en) * 2009-10-20 2010-04-14 中央民族大学 Cross-platform Mongolian display and intelligent input method based on Unicode
CN102118566A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Subtitle broadcasting system with software previewing function
CN102118581A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Software pre-monitoring method of subtitle broadcasting system
CN104572750A (en) * 2013-10-24 2015-04-29 北大方正集团有限公司 Method and device for line non-breaking processing based of special words
CN105103571A (en) * 2013-04-03 2015-11-25 杜比实验室特许公司 Methods and systems for generating and interactively rendering object based audio
CN105809170A (en) * 2016-03-04 2016-07-27 东软集团股份有限公司 Character identifying method and device
CN106529529A (en) * 2016-10-31 2017-03-22 腾讯科技(深圳)有限公司 Video subtitle identification method and system
CN106796518A (en) * 2014-09-30 2017-05-31 微软技术许可有限责任公司 Based on the feedback being intended to
CN106874346A (en) * 2016-12-26 2017-06-20 微梦创科网络科技(中国)有限公司 Page body extracting method and device in webpage
CN109726554A (en) * 2017-10-30 2019-05-07 武汉安天信息技术有限责任公司 A kind of detection method of rogue program, device and related application
CN110209315A (en) * 2019-06-11 2019-09-06 北京字节跳动网络技术有限公司 The display methods of character, device, electronic equipment and storage medium in user interface

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694603A (en) * 2009-10-20 2010-04-14 中央民族大学 Cross-platform Mongolian display and intelligent input method based on Unicode
CN102118566A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Subtitle broadcasting system with software previewing function
CN102118581A (en) * 2009-12-30 2011-07-06 新奥特(北京)视频技术有限公司 Software pre-monitoring method of subtitle broadcasting system
CN105103571A (en) * 2013-04-03 2015-11-25 杜比实验室特许公司 Methods and systems for generating and interactively rendering object based audio
CN104572750A (en) * 2013-10-24 2015-04-29 北大方正集团有限公司 Method and device for line non-breaking processing based of special words
CN106796518A (en) * 2014-09-30 2017-05-31 微软技术许可有限责任公司 Based on the feedback being intended to
CN105809170A (en) * 2016-03-04 2016-07-27 东软集团股份有限公司 Character identifying method and device
CN106529529A (en) * 2016-10-31 2017-03-22 腾讯科技(深圳)有限公司 Video subtitle identification method and system
CN106874346A (en) * 2016-12-26 2017-06-20 微梦创科网络科技(中国)有限公司 Page body extracting method and device in webpage
CN109726554A (en) * 2017-10-30 2019-05-07 武汉安天信息技术有限责任公司 A kind of detection method of rogue program, device and related application
CN110209315A (en) * 2019-06-11 2019-09-06 北京字节跳动网络技术有限公司 The display methods of character, device, electronic equipment and storage medium in user interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
双网络模型下的智能医疗票据识别方法;郑祖兵 等;《计算机工程与应用》;第56卷(第12期);141-148 *

Also Published As

Publication number Publication date
CN112860958A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN110321432B (en) Text event information extraction method, electronic device and nonvolatile storage medium
US20210157975A1 (en) Device, system, and method for extracting named entities from sectioned documents
CN102298582B (en) Data search and matching process and system
US10963717B1 (en) Auto-correction of pattern defined strings
CN110770735B (en) Transcoding of documents with embedded mathematical expressions
US9286526B1 (en) Cohort-based learning from user edits
JP6462970B1 (en) Classification device, classification method, generation method, classification program, and generation program
US20120054601A1 (en) Methods and systems for automated creation, recognition and display of icons
US12197881B2 (en) Text to visualization
CN115062134B (en) Knowledge question-answering model training and knowledge question-answering method, device and computer equipment
US20240296603A1 (en) Systems and methods for digital ink generation and editing
US9141867B1 (en) Determining word segment boundaries
US11520835B2 (en) Learning system, learning method, and program
US20170132484A1 (en) Two Step Mathematical Expression Search
US8943431B2 (en) Text operations in a bitmap-based document
CN110598217B (en) Click-to-read content identification method and device, home teaching machine and storage medium
CN112017078A (en) Auxiliary writing method, processing device and storage medium of patent document
CN112016282A (en) Patent document auditing method, processing device and storage medium
CN112860958B (en) Information display method and device
CN118114660A (en) Text detection method, system and computer readable storage medium
CN107145947B (en) Information processing method and device and electronic equipment
CN116225956A (en) Automated testing method, apparatus, computer device and storage medium
CN112668315B (en) Text automatic generation method, system, terminal and storage medium
Syarafina et al. Designing a word recommendation application using the Levenshtein Distance algorithm
CN112001821A (en) Patent document auditing method, processing device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant