CN111401009B - Digital expression character recognition conversion method, device, server and storage medium - Google Patents
Digital expression character recognition conversion method, device, server and storage medium Download PDFInfo
- Publication number
- CN111401009B CN111401009B CN202010185422.6A CN202010185422A CN111401009B CN 111401009 B CN111401009 B CN 111401009B CN 202010185422 A CN202010185422 A CN 202010185422A CN 111401009 B CN111401009 B CN 111401009B
- Authority
- CN
- China
- Prior art keywords
- digital
- information
- expression
- user
- conversion method
- 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
Links
- 230000014509 gene expression Effects 0.000 title claims abstract description 103
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 35
- 230000008909 emotion recognition Effects 0.000 claims description 20
- 230000008451 emotion Effects 0.000 claims description 14
- 238000005070 sampling Methods 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2433—Query languages
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a digital expression character recognition conversion method, a device, a server and a storage medium, wherein the method comprises the following steps: extracting a digital expression symbol in first information input by a user; matching the digital emoticons with corresponding digital information in a preset emoticon coding library; replacing the digital expression in the first information with the digital information to generate second information; and carrying out data statistics on the user based on the second information. The technical scheme of the invention realizes the effects of self-adaptively identifying the digital expression symbol and facilitating the statistics of data.
Description
Technical Field
The embodiment of the invention relates to the field of databases, in particular to a digital expression character recognition conversion method, a device, a server and a storage medium.
Background
At present, mobile terminal equipment and an advanced input method can input emoji emoticons. For example: numerical emoticons, etc., which are not within the utf8 character set, will cause the database based on the utf8 character set to be misplaced when performing the insert operation. The common solution is to adjust the corresponding character set code utf8mb4, so that the corresponding emoticon number is put in storage without reporting errors. Although this implementation can save the digital emoticons into a warehouse, the hidden danger caused by the number of the emoticons cannot be basically handled, and for example, when the digital emoticons need to be used for comparison and judgment, the digital emoticons cannot be identified as numbers for comparison and verification between the numbers.
Disclosure of Invention
The invention provides a digital expression character recognition conversion method, a device, a server and a storage medium, which are used for realizing the effects of self-adaptively recognizing digital expression characters and facilitating statistics data.
In a first aspect, an embodiment of the present invention provides a digital expression recognition conversion method, including:
extracting a digital expression symbol in first information input by a user;
matching the digital emoticons with corresponding digital information in a preset emoticon coding library;
replacing the digital expression in the first information with the digital information to generate second information;
and carrying out data statistics on the user based on the second information.
In a second aspect, an embodiment of the present invention further provides a digital expression recognition conversion device, including:
the digital expression extracting module is used for extracting the digital expression in the first information input by the user;
the digital information matching module is used for matching the digital emoticons with corresponding digital information in a preset emotion encoding library;
a second information generating module for replacing the digital expression symbol in the first information with the digital information to generate second information;
and the data statistics module is used for carrying out data statistics on the user based on the second information.
In a third aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the digital emotion recognition conversion method as described above.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a digital emotion recognition conversion method as described above.
According to the technical scheme, the digital expression symbol in the first information input by the user is extracted; matching the digital emoticons with corresponding digital information in a preset emoticon coding library; replacing the digital expression in the first information with the digital information to generate second information; based on the second information, the user is subjected to data statistics, the problem that the digital expression is unable to be identified in the digital statistics is solved, and the effects of adaptively identifying the digital expression and facilitating statistics of data are achieved.
Drawings
Fig. 1 is a flowchart of a digital emotion recognition conversion method in a first embodiment of the present invention.
Fig. 2 is a schematic diagram of a digital emoticon according to a first embodiment of the invention.
Fig. 3 is a flowchart of a digital emotion recognition conversion method in a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a digital emotion recognition conversion device in a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts steps as a sequential process, many of the steps may be implemented in parallel, concurrently, or with other steps. Furthermore, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Furthermore, the terms "first," "second," and the like, may be used herein to describe various directions, acts, steps, or elements, etc., but these directions, acts, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first information may be referred to as second information, and similarly, the second information may be referred to as first information, without departing from the scope of the present application. Both the first information and the second information are information, but they are not the same information. The terms "first," "second," and the like, are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Example 1
Fig. 1 is a flowchart of a digital emotion recognition conversion method according to an embodiment of the present invention, which is applicable to digital emotion recognition conversion situations, and specifically includes the following steps:
s110, extracting a digital expression symbol in first information input by a user;
in this embodiment, the emoticon is an emoji emoticon which can be input by both the current mobile terminal device and the advanced input method, and is generally used for vividly presenting and tracing non-speech information in daily face-to-face interaction. The numeric emoticons are emoticons containing numbers in emoji, and as shown in fig. 2, for example, such characters are not in the utf8 character set range, which would cause errors in the database warehouse entry operation based on the utf8 character set. The server may extract the digital emoticons in the first information input by the user in real time during the information exchange process between the users, or may extract the first information after the user inputs the first information in a specific mode, which is not limited herein.
S120, matching the digital emoticons with corresponding digital information in a preset emotion encoding library;
in this embodiment, the preset expression code library is a preset corresponding relationship between the digital expression and the normal number. The digital information is normal digital information. The server may match the digital expression extracted from the first information in step 110 with a preset expression code library to obtain a normal number corresponding to the digital expression.
S130, replacing the digital expression symbol in the first information with the digital information to generate second information;
in this embodiment, when the number included in the digital expression is also within the category of some data statistics, the normal number matched in step 120 may be directly counted, or the matched digital information may be replaced with the digital expression in the first information, and when the statistics is required, the digital expression may be directly extracted from the second information, so as to avoid the problem that the digital expression cannot be identified.
And S140, carrying out data statistics on the user based on the second information.
In this embodiment, the numbers in the second information may be counted directly, the second information may be preprocessed, the keywords in the second information may be extracted, the numbers in the corresponding statistical range may be counted according to the corresponding statistical operation of matching the keywords, and the specific calculation mode is not limited.
According to the technical scheme, the digital expression symbol in the first information input by the user is extracted; matching the digital emoticons with corresponding digital information in a preset emoticon coding library; replacing the digital expression in the first information with the digital information to generate second information; based on the second information, the user is subjected to data statistics, the problem that the digital expression is unable to be identified in the digital statistics is solved, and the effects of adaptively identifying the digital expression and facilitating statistics of data are achieved.
Example two
Fig. 3 is a flowchart of a digital emotion recognition conversion method according to a second embodiment of the present invention, where the method specifically includes:
s210, extracting a digital expression symbol in first information input by a user;
in this embodiment, the server may extract the digital expression symbol in the first information input by the user in real time during the information exchange process between the users, or may extract the first information after the user inputs the first information in a specific mode, which is not limited herein.
S220, matching the digital emoticons with corresponding digital information in a preset emotion encoding library;
in this embodiment, the server may match the digital expression extracted from the first information in step 210 with a preset expression code library to obtain a normal number corresponding to the digital expression. Further, the method for generating the preset expression code library comprises the following steps:
acquiring an expression reference table from a preset expression Fu Wangye;
in this embodiment, the preset emoji webpage is an official website for publishing emoji, and the emoji emoticons of the latest version in the official network can be collected. The expression reference table is a table containing all expressions.
Carrying out digital recognition on the digital expression in the expression reference table to generate digital information corresponding to the digital expression;
and storing the corresponding relation between the digital expression and the digital information into the preset expression coding library.
In this embodiment, after the digital emoticons are selected from the emotion reference table, normal digital information associated with each digital emotion can be stored in a preset emotion encoding library in a manual recognition mode, or a digital part can be cut out from the digital emotion through an image recognition mode and then the digital emotion is matched with a digital template to obtain corresponding digital information, so that the digital information is associated and stored in the preset emotion encoding library. Further, the corresponding relation between the digital expression and the digital information is a key value pair relation taking the digital expression as a main key and the digital information as a value.
In this embodiment, the key-value pair is stored as an organization of the database, the key being the number of the stored value, the value being the data to be stored. Mapping and coding key value pairs (key) corresponding to the arrangement of all the digital emoticons, and configuring the corresponding normal numbers for the digital emoticons. When the back end of the server collects the expression symbol filled by the user, whether the expression symbol is a digital expression symbol can be judged firstly, if the expression symbol is a digital expression symbol, the key of the corresponding expression symbol code library is called in the preset expression symbol code library, comparison and identification are carried out, and when the digital expression symbol input by the user is consistent with the key (digital expression symbol) of the code library, the corresponding value (normal number) corresponding to the digital expression symbol is output.
S230, replacing the digital expression symbol in the first information with the digital information to generate second information;
in this embodiment, the digital information may be counted directly, or the matched digital information and the digital expression in the first information may be replaced, and the statistics may be extracted when the statistics is required.
S240, storing the second information in a Mysql database.
In this embodiment, since the first information carrying the digital expression is not within the utf8 character set range, the database entry operation of the utf8 character set may be misreported when the first information is stored in the Mysql database, and the second information of the digital expression replaced by the digital information may be directly stored.
S250, acquiring a data set from the Mysql database according to a statistical instruction of a user;
in this embodiment, the statistical instruction of the user is a statistical instruction of data within a certain range in the second information, and numbers within the range may be extracted to form a set. Further, the obtaining the data set from the Mysql database according to the statistical instruction of the user includes: converting the statistics instruction of the user into a corresponding SQL sentence;
in this embodiment, an SQL statement is generated according to the statistical instruction and a preset calculation logic. Further, the converting the statistics instruction according to the user into the corresponding SQL sentence includes: extracting a statistical object and a sampling interval from the statistical instruction; and converting the statistical instruction into the SQL statement according to the statistical object and the sampling interval.
In this embodiment, the server extracts the statistical object and the sampling interval from the statistical instruction, and the sampling interval may be an interval limited by the save time or an interval limited by the digital related user, which is not limited herein.
Performing semantic analysis on the SQL sentences to extract selection sentences which can be executed by a database;
in this embodiment, some sentences may be executed by the database, and the lexical, grammatical, semantic analysis and execution can be performed on the general add-delete-and-modify-check SQL sentences, while the unexpanded database may identify some SQL sentences as erroneous SQL sentences, and the server in this embodiment may extract the selection sentences executable by the database after performing semantic analysis on the SQL sentences.
And executing the selection statement in the Mysql database to obtain a data set.
In this embodiment, the database may perform lexical, grammatical, and semantic analysis and execution on the selection statement, and the selection statement may be executed in the database as a common query statement, so that the existing optimization techniques and processing modules are utilized, for example, the sorting operation in the original processing data may be saved through index scanning, and the grouping operation may also greatly reduce the use of computing resources due to the sorted data.
And S260, counting the data set to obtain a counting result.
In this embodiment, the server calculates the data set according to a preset calculation rule to obtain a statistical result. For example, the digits related to the amount of consumption in the second information may be collected to form a set, and then added.
According to the technical scheme, the digital expression symbol in the first information input by the user is extracted; matching the digital emoticons with corresponding digital information in a preset emoticon coding library; replacing the digital expression in the first information with the digital information to generate second information; storing the second information in a Mysql database; acquiring a data set from the Mysql database according to a statistical instruction of a user; and counting the data set to obtain a statistical result, solving the problem that the digital expression character is difficult to store in a database of an utf8 character set, and achieving the effect of facilitating the calculation of the digital based on the digital expression character.
Example III
Fig. 4 is a schematic structural diagram of a digital emotion recognition conversion device 300 according to a third embodiment of the present invention, which is applicable to digital emotion recognition conversion situations, and has the following specific structure:
a digital emoji extraction module 310 for extracting a digital emoji in the first information inputted by the user;
a digital information matching module 320, configured to match the digital emoticons with corresponding digital information in a preset emoticon code library;
a second information generating module 330 for replacing the digital emoticon in the first information with the digital information to generate second information;
and a data statistics module 340, configured to perform data statistics on the user based on the second information.
Further, the apparatus 300 further comprises an emoticon reference table acquisition module, a digital information identification module and a correspondence preservation module,
the expression reference table obtaining module is used for obtaining an expression reference table from a preset expression Fu Wangye;
the digital information identification module is used for carrying out digital identification on the digital expression in the expression reference table so as to generate digital information corresponding to the digital expression;
and the corresponding relation storage module is used for storing the corresponding relation between the digital expression and the digital information into the preset expression code library.
Further, the corresponding relation between the digital expression and the digital information is a key value pair relation taking the digital expression as a main key and the digital information as a value.
Further, the apparatus 300 further comprises a second information storage module, configured to store the second information in the Mysql database.
Further, the data statistics module 340 includes a data set acquisition sub-module and a statistics sub-module,
the data set acquisition submodule is used for acquiring a data set from the Mysql database according to a statistical instruction of a user;
and the statistics sub-module is used for carrying out statistics on the data set to obtain a statistical result.
Further, the data set acquisition submodule comprises an SQL sentence conversion unit, a selection sentence extraction unit and a data set generation unit,
the SQL sentence conversion unit is used for converting the statistical instruction of the user into a corresponding SQL sentence;
the selection statement extraction unit is used for carrying out semantic analysis on the SQL statement and extracting a selection statement which can be executed by the database;
and the data set generating unit is used for executing the selection statement in the Mysql database to obtain a data set.
Further, the SQL sentence conversion unit comprises a statistics limiting subunit and an SQL sentence conversion subunit, wherein the statistics limiting subunit is used for extracting a statistics object and a sampling interval according to the statistics instruction;
and the SQL statement conversion subunit is used for converting the statistical instruction into the SQL statement according to the statistical object and the sampling interval.
The digital expression recognition conversion device 300 provided by the embodiment of the invention can execute the digital expression recognition conversion method provided by the previous embodiment, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the present invention. The server 412 shown in fig. 5 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 5, the server 412 is in the form of a general purpose server. Components of server 412 may include, but are not limited to: one or more processors 416, a storage 428, and a bus 418 that connects the various system components (including the storage 428 and the processors 416).
Bus 418 represents one or more of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Subversive Alliance, ISA) bus, micro channel architecture (Micro Channel Architecture, MAC) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Server 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 428 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 430 and/or cache memory 432. The terminal 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk such as a Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to bus 418 via one or more data medium interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for example, in the storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 442 generally perform the functions and/or methodologies in the described embodiments of the invention.
The server 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), one or more terminals that enable a user to interact with the server 412, and/or any terminals (e.g., network card, modem, etc.) that enable the server 412 to communicate with one or more other computing terminals. Such communication may occur through an input/output (I/O) interface 422. Also, the server 412 may communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, such as the internet) via the network adapter 420. As shown in fig. 5, network adapter 420 communicates with the other modules of server 412 via bus 418. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with server 412, including, but not limited to: microcode, end drives, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 416 executes various functional applications and data processing by running a program stored in the storage device 428, for example, to implement a digital emotion recognition conversion method provided by any embodiment of the present invention, which may include:
extracting a digital expression symbol in first information input by a user;
matching the digital emoticons with corresponding digital information in a preset emoticon coding library;
replacing the digital expression in the first information with the digital information to generate second information;
and carrying out data statistics on the user based on the second information.
Example five
The fifth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor implements a digital expression recognition conversion method as provided in any embodiment of the present invention, the method may include:
extracting a digital expression symbol in first information input by a user;
matching the digital emoticons with corresponding digital information in a preset emoticon coding library;
replacing the digital expression in the first information with the digital information to generate second information;
and carrying out data statistics on the user based on the second information.
The computer-readable storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (10)
1. A digital emotion recognition conversion method, comprising:
extracting a digital expression symbol in first information input by a user;
matching the digital emoticons with corresponding digital information in a preset emoticon coding library;
replacing the digital expression in the first information with the digital information to generate second information;
carrying out data statistics on the user based on the second information;
further comprises:
and counting the digital information or replacing the digital information with the digital expression in the first information when the digital expression contains the number in the category of data statistics.
2. The digital emotion recognition conversion method of claim 1, wherein the generation method of the preset emotion encoding library includes:
acquiring an expression reference table from a preset expression Fu Wangye;
carrying out digital recognition on the digital expression in the expression reference table to generate digital information corresponding to the digital expression;
and storing the corresponding relation between the digital expression and the digital information into the preset expression coding library.
3. The digital emotion recognition conversion method according to claim 2, wherein the correspondence relationship between the digital emotion and the digital information is a key value pair relationship in which the digital emotion is a primary key and the digital information is a value.
4. The digital emotion recognition conversion method of claim 1, wherein after replacing the digital emotion in the first information with the digital information to generate second information, further comprising:
the second information is stored in a Mysql database.
5. The digital emotion recognition conversion method of claim 4, wherein performing data statistics on the user based on the second information comprises:
acquiring a data set from the Mysql database according to a statistical instruction of a user;
and counting the data set to obtain a counting result.
6. The method of claim 5, wherein the obtaining a data set from the Mysql database according to a user's statistical instruction comprises:
converting the statistics instruction of the user into a corresponding SQL sentence;
performing semantic analysis on the SQL sentences to extract selection sentences which can be executed by a database;
and executing the selection statement in the Mysql database to obtain the data set.
7. The digital emotion recognition conversion method of claim 6, wherein the converting into the corresponding SQL statement according to the user's statistical instruction includes:
extracting a statistical object and a sampling interval from the statistical instruction;
and converting the statistical instruction into the SQL statement according to the statistical object and the sampling interval.
8. A digital emotion recognition conversion device, comprising:
the digital expression extracting module is used for extracting the digital expression in the first information input by the user;
the digital information matching module is used for matching the digital emoticons with corresponding digital information in a preset emotion encoding library;
a second information generating module for replacing the digital expression symbol in the first information with the digital information to generate second information;
the data statistics module is used for carrying out data statistics on the user based on the second information;
the digital information matching module is further configured to count the digital information or replace the digital information with the digital expression in the first information when the digital expression includes a number within a category of data statistics.
9. A server, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the digital emotion recognition conversion method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements the digital emotion recognition conversion method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010185422.6A CN111401009B (en) | 2020-03-17 | 2020-03-17 | Digital expression character recognition conversion method, device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010185422.6A CN111401009B (en) | 2020-03-17 | 2020-03-17 | Digital expression character recognition conversion method, device, server and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111401009A CN111401009A (en) | 2020-07-10 |
CN111401009B true CN111401009B (en) | 2024-03-01 |
Family
ID=71432559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010185422.6A Active CN111401009B (en) | 2020-03-17 | 2020-03-17 | Digital expression character recognition conversion method, device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111401009B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113037607A (en) * | 2020-12-18 | 2021-06-25 | 北京字跳网络技术有限公司 | Communication method, client, server control method, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105701074A (en) * | 2016-01-04 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Character processing method and apparatus |
CN106530096A (en) * | 2016-10-08 | 2017-03-22 | 广州阿里巴巴文学信息技术有限公司 | Emotion icon processing method, device and electronic apparatus |
US9626417B1 (en) * | 2013-05-08 | 2017-04-18 | Amdocs Software Systems Limited | System, method, and computer program for automatically converting characters from an ISO character set to a UTF8 character set in a database |
CN106648130A (en) * | 2015-11-02 | 2017-05-10 | 天脉聚源(北京)科技有限公司 | Emoticon input method and system |
CN107491477A (en) * | 2017-06-30 | 2017-12-19 | 百度在线网络技术(北京)有限公司 | A kind of emoticon searching method and device |
CN108595717A (en) * | 2018-05-18 | 2018-09-28 | 北京慧闻科技发展有限公司 | For the data processing method of text classification, data processing equipment and electronic equipment |
CN108664635A (en) * | 2018-05-15 | 2018-10-16 | 上海达梦数据库有限公司 | Acquisition methods, device, equipment and the storage medium of statistics of database information |
-
2020
- 2020-03-17 CN CN202010185422.6A patent/CN111401009B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9626417B1 (en) * | 2013-05-08 | 2017-04-18 | Amdocs Software Systems Limited | System, method, and computer program for automatically converting characters from an ISO character set to a UTF8 character set in a database |
CN106648130A (en) * | 2015-11-02 | 2017-05-10 | 天脉聚源(北京)科技有限公司 | Emoticon input method and system |
CN105701074A (en) * | 2016-01-04 | 2016-06-22 | 北京京东尚科信息技术有限公司 | Character processing method and apparatus |
CN106530096A (en) * | 2016-10-08 | 2017-03-22 | 广州阿里巴巴文学信息技术有限公司 | Emotion icon processing method, device and electronic apparatus |
CN107491477A (en) * | 2017-06-30 | 2017-12-19 | 百度在线网络技术(北京)有限公司 | A kind of emoticon searching method and device |
CN108664635A (en) * | 2018-05-15 | 2018-10-16 | 上海达梦数据库有限公司 | Acquisition methods, device, equipment and the storage medium of statistics of database information |
CN108595717A (en) * | 2018-05-18 | 2018-09-28 | 北京慧闻科技发展有限公司 | For the data processing method of text classification, data processing equipment and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111401009A (en) | 2020-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992596B (en) | Text clustering method, text clustering device, server and storage medium | |
CN110647614B (en) | Intelligent question-answering method, device, medium and electronic equipment | |
US10777192B2 (en) | Method and apparatus of recognizing field of semantic parsing information, device and readable medium | |
CN111783471B (en) | Semantic recognition method, device, equipment and storage medium for natural language | |
WO2018205389A1 (en) | Voice recognition method and system, electronic apparatus and medium | |
CN110580308B (en) | Information auditing method and device, electronic equipment and storage medium | |
CN109522552B (en) | Normalization method and device of medical information, medium and electronic equipment | |
CN109657251B (en) | Method and device for translating sentences | |
CN109241286B (en) | Method and device for generating text | |
CN108363634B (en) | Method, device and equipment for identifying service processing failure reason | |
CA3048356A1 (en) | Unstructured data parsing for structured information | |
CN111143556B (en) | Automatic counting method and device for software function points, medium and electronic equipment | |
US11423219B2 (en) | Generation and population of new application document utilizing historical application documents | |
CN111240971B (en) | Method and device for generating wind control rule test case, server and storage medium | |
CN117707922A (en) | Method and device for generating test case, terminal equipment and readable storage medium | |
CN110837545A (en) | Interactive data analysis method, device, medium and electronic equipment | |
CN113792138B (en) | Report generation method and device, electronic equipment and storage medium | |
CN111597800B (en) | Method, device, equipment and storage medium for obtaining synonyms | |
CN116402166B (en) | Training method and device of prediction model, electronic equipment and storage medium | |
CN110738056A (en) | Method and apparatus for generating information | |
CN111401009B (en) | Digital expression character recognition conversion method, device, server and storage medium | |
US11922129B2 (en) | Causal knowledge identification and extraction | |
CN118569874A (en) | Question answering method, device, equipment, medium and program product for business transaction | |
CN118673038A (en) | Index acquisition method, apparatus, electronic device and computer readable storage medium | |
CN117496547A (en) | Portable document format page identification method, device, equipment and 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518000 room 402, building B, Kingdee Software Park, Keji South 12th Road, high tech Zone, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Mingmo Technology Co.,Ltd. Address before: 518000 room 402, building B, Kingdee Software Park, Keji South 12th Road, high tech Zone, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Applicant before: Shenzhen Suijin Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |