WO2019140826A1 - 电子红包的发放装置、方法及计算机可读存储介质 - Google Patents

电子红包的发放装置、方法及计算机可读存储介质 Download PDF

Info

Publication number
WO2019140826A1
WO2019140826A1 PCT/CN2018/089186 CN2018089186W WO2019140826A1 WO 2019140826 A1 WO2019140826 A1 WO 2019140826A1 CN 2018089186 W CN2018089186 W CN 2018089186W WO 2019140826 A1 WO2019140826 A1 WO 2019140826A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
relationship
correlation
core
red envelope
Prior art date
Application number
PCT/CN2018/089186
Other languages
English (en)
French (fr)
Inventor
杨将
肖玉宾
祁家庆
王颖
王建波
陈雪雷
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019140826A1 publication Critical patent/WO2019140826A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/18Payment architectures involving self-service terminals [SST], vending machines, kiosks or multimedia terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3343Query execution using phonetics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/105Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems involving programming of a portable memory device, e.g. IC cards, "electronic purses"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/342Cards defining paid or billed services or quantities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/348Single-use cards, i.e. without possibility of recharging
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/26Coin-freed apparatus for hiring articles; Coin-freed facilities or services for printing, stamping, franking, typing or teleprinting apparatus

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to an apparatus and method for issuing an electronic red envelope, and a computer readable storage medium.
  • the red packets in these software mainly include: password red packets, random red packets and fixed red packets. These red packets are mainly distributed.
  • the red envelope issuer sets the red envelope amount, the red envelope number and other information to be distributed in the social software group.
  • the person who receives the red envelope clicks the red envelope interface to obtain the red envelope resource, and when the number of red packets is smaller than the number of group members in the group, the hand Fast people can grab the red envelope, but the red envelope is not only interesting, but also lacks interactivity between the red envelope issuer and the red envelope receiver.
  • the present application provides an apparatus and method for issuing an electronic red envelope, and a computer readable storage medium, the main purpose of which is to increase the interest in the electronic red envelope distribution process and the interaction between the red envelope issuer and the red envelope receiver.
  • the present application provides an apparatus for issuing an electronic red envelope, the apparatus comprising a memory and a processor, wherein the memory stores an issuance program of an electronic red envelope operable on the processor, the electronic red envelope
  • the processor stores an issuance program of an electronic red envelope operable on the processor, the electronic red envelope
  • Receiving the answering information sent by the red packet issuing client parsing the answering information according to the grammar analysis algorithm and the word segmentation tool, and extracting the second core relationship word and the second secondary relationship word of the answering information;
  • the calculated correlation degree is greater than the preset threshold, determining that the answering information is valid, sending the answering information to the red envelope issuing client display, and transferring the red envelope resource to the target according to a preset red envelope issuance rule Account.
  • the present application further provides a method for issuing an electronic red envelope, the method comprising:
  • Receiving the answering information sent by the red packet issuing client parsing the answering information according to the grammar analysis algorithm and the word segmentation tool, and extracting the second core relationship word and the second secondary relationship word of the answering information;
  • the calculated correlation degree is greater than the preset threshold, determining that the answering information is valid, sending the answering information to the red envelope issuing client display, and transferring the red envelope resource to the target according to a preset red envelope issuance rule Account.
  • the present application further provides a computer readable storage medium on which an electronic red envelope issuance program is stored, and the electronic red envelope is issued by one or more processors. Executing to implement the steps of the method of issuing an electronic red envelope as described above.
  • the apparatus, method and computer readable storage medium for the electronic red envelope proposed by the present application obtain the red envelope resource, the target account, the reference question and the red envelope issuance rule from the red envelope issuance information when receiving the red envelope issuance information sent by the red envelope issuing client Sending the inspection question to the red packet receiving client where the target account is located for the red packet receiving client to answer the reference question, and parsing the reference question and the answering information according to the grammar analysis algorithm and the word segmentation tool respectively, and obtaining the first reference problem
  • the core relationship word and the first secondary relationship word obtain the second core relationship word and the second secondary relationship word of the answer information when receiving the answer message sent by the red packet receiving client, and calculate the first core relationship word and the second a first correlation between the core relationship words, calculating a second correlation between the first secondary relationship word and the second secondary relationship word, and calculating the answer information and the reference question according to the first correlation degree and the second correlation degree Correlation between the two, if the correlation is greater than the preset threshold, it is determined that the answer message is a
  • the red envelope issuer interacts with the red envelope receiver by setting a reference question, and the receiver answers the reference question, and then answers according to the answer.
  • the correlation between the information and the reference problem determines whether the answering question is valid.
  • the red envelope resource is transferred to the target account according to the red envelope issuing rule, which enhances the interest of the electronic red envelope distribution and sends the answering information when the answering information is valid. Displaying to the red envelope issuer enhances the interactivity of electronic red envelope distribution.
  • FIG. 1 is a schematic diagram of a preferred embodiment of an apparatus for issuing an electronic red envelope according to the present application
  • FIG. 2 is a schematic diagram of a program module of an electronic red envelope issuing program in an embodiment of an electronic red envelope dispensing device of the present application;
  • FIG. 3 is a flow chart of a preferred embodiment of a method for issuing an electronic red envelope according to the present application.
  • the application provides an electronic red envelope dispensing device.
  • FIG. 1 it is a schematic diagram of a preferred embodiment of an electronic red envelope dispensing device of the present application.
  • the electronic red envelope dispensing device may be a PC (Personal Computer), or may be a portable terminal device having a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.
  • PC Personal Computer
  • portable terminal device having a display function such as a smart phone, a tablet computer, an e-book reader, or a portable computer.
  • the electronic red envelope dispensing device includes at least a memory 11, a processor 12, a communication bus 13, and a network interface 14.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
  • the memory 11 may in some embodiments be an internal storage unit of an electronic red envelope dispensing device, such as a hard disk of the electronic red envelope dispensing device.
  • the memory 11 may also be an external storage device of an electronic red envelope dispensing device in other embodiments, such as a plug-in hard disk equipped with an electronic red envelope dispensing device, a smart memory card (SMC), and a secure digital (Secure) Digital, SD) cards, flash cards, etc.
  • the memory 11 may also include an internal storage unit of the issuing device of the electronic red envelope and an external storage device.
  • the memory 11 can be used not only for storing application software installed in an electronic red envelope dispensing device and various types of data, such as code of an electronic red envelope issuing program, but also for temporarily storing data that has been output or is to be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing stored in the memory 11. Data, such as the issuance of electronic red envelopes, etc.
  • CPU Central Processing Unit
  • controller microcontroller
  • microprocessor microprocessor or other data processing chip for running program code or processing stored in the memory 11.
  • Data such as the issuance of electronic red envelopes, etc.
  • Communication bus 13 is used to implement connection communication between these components.
  • the network interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device and other electronic devices.
  • a standard wired interface such as a WI-FI interface
  • Figure 1 shows only the dispensing device of the electronic red envelope with the dispensing procedures of components 11-14 and electronic red packets, but it should be understood that not all of the illustrated components may be implemented, and that more or less may be implemented instead. Component.
  • the device may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be suitably referred to as a display screen or display unit for displaying information processed in the dispensing device of the electronic red envelope and a user interface for displaying visualization.
  • the device may also include a touch sensor.
  • the area provided by the touch sensor for the user to perform a touch operation is referred to as a touch area.
  • the touch sensor described herein may be a resistive touch sensor, a capacitive touch sensor, or the like.
  • the touch sensor includes not only a contact type touch sensor but also a proximity type touch sensor or the like.
  • the touch sensor may be a single sensor or a plurality of sensors arranged in an array.
  • the area of the display of the device may be the same as or different from the area of the touch sensor.
  • a display is stacked with the touch sensor to form a touch display. The device detects a user-triggered touch operation based on a touch screen display.
  • the device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein if the device is a mobile terminal, the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may move when the mobile terminal moves to the ear. , turn off the display and / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • the memory 11 stores an electronic red envelope issuing program; when the processor 12 executes the electronic red envelope distributing program stored in the memory 11, the following steps are implemented:
  • the red packet resource, the target account, and the reference question are obtained from the red packet issuance information.
  • the red envelope issuing client and the red packet receiving client involved in the following content may be software with red envelope issuing function, such as WeChat, Alipay, etc., wherein the red envelope issuing client is software running on the user terminal that issues the red envelope, the red envelope
  • the receiving client is software running on the user terminal receiving the red envelope, they may be the same software, but the currently logged in accounts are different; and they establish a communication connection with the issuing device of the electronic red envelope, and the issuing device of the electronic red envelope is equivalent to red envelope issuing
  • the client and red envelope receive the client's server. The user selects one or more accounts that receive the red envelope as the target account through the red envelope issuing client.
  • the accounts of all members in the WeChat group are the target accounts.
  • the user sets the red packet resource in the red envelope distribution interface of the software.
  • the red packet resource may be the red packet amount to be issued or other resources that can be issued by the software, and set a reference question that needs to be answered by the receiver, and the user may set the reference in a voice form or a text form.
  • the problem is that after the above red envelope issuance information is set, it is sent to the issuing device of the electronic red envelope.
  • the electronic red envelope issuing device obtains the red envelope amount, the target account and the reference question to be issued when receiving the red envelope issuing information sent by the red envelope issuing client.
  • the implementation of the parsing algorithm can be implemented by an electronic red envelope issuing device or by calling an open API (Application Programming Interface) for implementing a parsing algorithm provided by an external system.
  • the syntax analysis algorithm may be a context-free grammar (Context-Free Grammer), a probability-distributed context-free grammar (Probabilistic Context-Free Grammar), or the like. According to the grammar analysis algorithm and the word segmentation tool, there are many methods for obtaining the core relationship words and the secondary relationship words. The following two examples of the reference problems are listed as examples.
  • the reference problem is parsed according to the grammar analysis algorithm, and the core relationship words in the text of the reference problem are extracted, that is, the first core relationship words are used; the word segmentation tool is used to perform word segmentation on the reference problem and the word segmentation result is obtained, and the word segmentation result is removed.
  • the word segmentation tool can be Stanford Chinese word segmentation tool, jieba segmentation and so on.
  • the part of the word has verbs, adjectives, adverbs, nouns, pronouns, numerals, quantifiers, etc.
  • the reference problem is parsed according to the grammar analysis algorithm, and the core relationship words in the text of the reference problem are extracted, that is, the first core relationship words are used, and the word segmentation tool is used to perform word segmentation on the reference problem and obtain the word segmentation result, and the word segmentation result is obtained.
  • Other words in the word other than the first core relational word are used as the first secondary relationship word.
  • the electronic red envelope issuing device sends the reference question to the red envelope receiving client where the target account is located. If the reference question is a voice format, the reference question is sent to the red packet receiving client in the form of a voice file, and the prompt message using the voice answer is sent to the red packet receiving client, so that the red packet receiving client performs the reference problem in a voice form. answer.
  • the red packet receiving client receives the red packet information, displays the reference question on the red packet interface, and the red packet receiver answers the reference question in the form of a text or a voice answer, and sends the answer message to the electronic red envelope issuing device.
  • the answering information Upon receiving the reply message sent by the red packet issuing client, the answering information is parsed according to a grammar analysis algorithm and a word segmentation tool, and the second core relationship word and the second secondary relationship word of the answering information are extracted.
  • the electronic red envelope issuing device extracts the second core relationship word and the first core in the answer information in the same manner as the first core relationship word and the first secondary relationship word when receiving the answer message sent by the red envelope issuing client.
  • Relationship Words Calculating the first correlation between the extracted first core relational words and the second core relational words.
  • the word vector model may be calculated, for example, the word2vec model, and the Word2Vec model is trained in advance using the natural language corpus.
  • the trained word vector model is used to convert a core relationship or a secondary relationship word into a word vector.
  • the Word2Vec model is a tool for word vector calculation. There are mature calculation methods for training the model and using it to calculate the word vector of a word, and will not be described here.
  • the first core relationship word is input into the trained Word2Vec model to calculate the corresponding first word vector
  • the second core relationship word is input into the trained Word2Vec model to calculate the corresponding second word vector
  • the first word is calculated.
  • the cosine similarity between the vector and the second word vector, the calculated cosine similarity is taken as the first correlation between the first core relational word and the second relational word.
  • the second correlation is calculated.
  • the correlation between each of the secondary relationship words in the reference question and each of the secondary relationship words in the answer information may be separately calculated.
  • the first secondary relationship words extracted from the reference question have A1 and A2.
  • the second secondary relationship words extracted in the answer message are B1, B2, then calculate the correlation between A1 and B1, A1 and B2, A2 and B1, A2 and B2, A3 and B1, and A3 and B2. And calculating an average value of the plurality of correlation degrees obtained as the second correlation. Or, according to the part of speech of the extracted secondary relationship words, calculating a correlation between the first secondary relationship words and the second secondary relationship words with the same part of speech, and calculating the average of the plurality of correlation degrees as the second relativity.
  • the average value of the first correlation degree and the second correlation degree may be used as a correlation between the reference question and the answer information, or the first correlation degree may be assigned a weight in advance.
  • the first correlation has a weight of 0.7
  • the second correlation has a weight of 0.3.
  • the weighting algorithm is used to calculate the correlation between the reference question and the answer information based on the assigned weight.
  • the calculated correlation degree is greater than the preset threshold, determining that the answering information is valid, sending the answering information to the red envelope issuing client display, and transferring the red envelope resource to the target according to a preset red envelope issuance rule Account.
  • the electronic red envelope issuance device is preset with a preset threshold for determining whether the answer information is valid. When the calculated correlation is greater than the preset threshold, the determination answer information is valid. Send valid answer information to the red envelope distribution client display.
  • the red envelope issuance rule a plurality of rules can be pre-configured, which are selected by the user when the red envelope is issued, or set on the server side, and when the server determines that the answering information is valid, the server directly issues the red envelope according to the set red envelope issuance rule.
  • the red packet resource is evenly distributed to the target account for answering the reference question and the answering information is valid, or the red packet resource is divided into multiples according to the degree of correlation between the answering information and the reference question, and correspondingly assigned to the answering information is valid.
  • the multiple target accounts wherein the greater the correlation between the target user's answer information and the reference answer, the greater the red envelope share.
  • the red envelope issuer interacts with the red envelope receiver by setting a reference question, and the receiver answers the reference question, and then determines whether the answer question is valid according to the correlation between the answer information and the reference question.
  • the red envelope resource is transferred to the target account according to the red envelope issuance rule, which enhances the interest of the electronic red envelope distribution, and sends it to the red envelope issuer when the answer message is valid, thereby enhancing the interactiveness of the electronic red envelope distribution.
  • the issuing process of the electronic red envelope may also be divided into one or more modules, and one or more modules are stored in the memory 11 and executed by one or more processors (this implementation)
  • the processor 12 is executed to complete the application.
  • the module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function, and is used to describe the execution of the electronic red envelope issuing program in the electronic red envelope issuing device. process.
  • FIG. 2 it is a schematic diagram of a program module of an electronic red envelope issuing program in an embodiment of an electronic red envelope dispensing device of the present application.
  • an electronic red envelope dispensing program may be divided into an obtaining module 10 and sent.
  • Module 20, parsing module 30, computing module 40, and execution module 50 by way of example:
  • the obtaining module 10 is configured to: when receiving the red packet issuing information sent by the red packet issuing client, obtain the red packet resource, the target account, and the reference problem from the red packet issuing information;
  • the sending module 20 is configured to send the investigation question to the red packet receiving client where the target account is located, so that the red packet receiving client answers the reference question;
  • the parsing module 30 is configured to: parse the reference problem according to a parsing algorithm and a word segmentation tool, and extract a first core relationship word and a first sub-relationship word of the reference question;
  • the calculating module 40 is configured to: calculate a first correlation between the first core relationship word and the second core relationship word, and calculate the first secondary relationship word and the second secondary relationship word a second correlation degree, determining a correlation between the answer information and the reference question according to the first correlation degree and the second correlation degree;
  • the execution module 50 is configured to: if the calculated correlation degree is greater than a preset threshold, determine that the answering information is valid, send the answering information to the red envelope issuing client, and display the red envelope according to a preset red envelope issuance rule. The resource is transferred to the target account.
  • the present application also provides a method for issuing an electronic red envelope.
  • a flow chart of a preferred embodiment of the method for issuing an electronic red envelope is provided.
  • the method can be performed by a device that can be implemented by software and/or hardware.
  • the server corresponding to the client and the red packet receiving client are used as the execution subject.
  • the method for issuing an electronic red envelope includes:
  • Step S10 When receiving the red packet issuing information sent by the red packet issuing client, obtain the red packet resource, the target account, and the reference question from the red packet issuing information.
  • Step S20 Send the investigation question to the red packet receiving client where the target account is located, for the red packet receiving client to answer the reference question, and follow the syntax analysis algorithm and the word segmentation tool to the reference problem. Parsing, extracting the first core relationship word and the first secondary relationship word of the reference question.
  • the red packet delivery client and the red packet receiving client involved in the following content may be software with red envelope issuing function, such as WeChat, Alipay, etc., wherein the red envelope issuing client is software running on the user terminal that issues the red envelope, and the red envelope receiving The client is the software running on the user terminal that receives the red envelope. They can be the same software, but the currently logged in accounts are different; and they establish a communication connection with the server, and the server receives the red envelope issuing information sent by the client.
  • the user selects one or more accounts that receive the red envelope as the target account through the red envelope issuing client. For example, if the user issues a red envelope in a WeChat group, the accounts of all members in the WeChat group are the target accounts.
  • the user sets the red packet resource in the red envelope distribution interface of the software.
  • the red packet resource may be the red packet amount to be issued or other resources that can be issued by the software, and set a reference question that needs to be answered by the receiver, and the user may set the reference in a voice form or a text form.
  • the problem is that after the above red envelope issuance information is set, it is sent to the server corresponding to the red envelope issuing client.
  • the server When receiving the red packet issuance information sent by the red packet issuing client, the server obtains the red packet amount to be issued, the target account, and the reference question. Send the reference question to the red envelope receiving client where the target account is located. If the reference question is a voice format, the reference question is sent to the red packet receiving client in the form of a voice file, and the prompt message using the voice answer is sent to the red packet receiving client, so that the red packet receiving client performs the reference problem in a voice form. answer.
  • the red packet receiving client receives the red packet information, displays the reference question on the red packet interface, and the red packet receiver answers the reference question in the form of a text or a voice answer, and sends the answer message to the server.
  • the server parses the reference reference question and the answer information according to the syntax analysis algorithm.
  • the implementation of the parsing algorithm can be implemented by a server or by calling an open API (Application Programming Interface) for implementing a parsing algorithm provided by an external system.
  • the syntax analysis algorithm may be a context-free grammar (Context-Free Grammer), a probability-distributed context-free grammar (Probabilistic Context-Free Grammar), or the like.
  • the grammar analysis algorithm and the word segmentation tool there are many methods for obtaining the core relationship words and the secondary relationship words. The following two examples of the reference problems are listed as examples.
  • the reference problem is parsed according to the grammar analysis algorithm, and the core relationship words in the text of the reference problem are extracted, that is, the first core relationship words are used; the word segmentation tool is used to perform word segmentation on the reference problem and the word segmentation result is obtained, and the word segmentation result is removed.
  • the words belonging to the pre-determined part of speech are used as the first secondary relationship words.
  • the part of the word has verbs, adjectives, adverbs, nouns, pronouns, numerals, quantifiers, etc.
  • the reference problem is parsed according to the grammar analysis algorithm, and the core relationship words in the text of the reference problem are extracted, that is, the first core relationship words are used, and the word segmentation tool is used to perform word segmentation on the reference problem and obtain the word segmentation result, and the word segmentation result is obtained.
  • Other words in the word other than the first core relational word are used as the first secondary relationship word.
  • Step S30 when receiving the answer message sent by the red packet issuing client, parsing the reference problem according to a grammar analysis algorithm and a word segmentation tool, and extracting the first core relationship word and the first secondary relationship word of the reference question, and The answering information is parsed according to a grammar analysis algorithm and a word segmentation tool, and the second core relationship word and the second secondary relationship word of the answer information are extracted.
  • Step S40 calculating a first correlation between the first core relationship word and the second core relationship word, and calculating a number between the first secondary relationship word and the second secondary relationship word a second correlation, determining a correlation between the answer information and the reference question according to the first correlation and the second correlation.
  • the server When receiving the answer message sent by the red packet issuing client, the server extracts the second core relationship word and the first core relationship word in the reply information in the same manner as the first core relationship word and the first secondary relationship word are extracted. Calculating the first correlation between the extracted first core relational words and the second core relational words.
  • the word vector model may be calculated, for example, the word2vec model, and the Word2Vec model is trained in advance using the natural language corpus.
  • the trained word vector model is used to convert a core relationship or a secondary relationship word into a word vector.
  • the Word2Vec model is a tool for word vector calculation. There are mature calculation methods for training the model and using it to calculate the word vector of a word, and will not be described here.
  • the first core relationship word is input into the trained Word2Vec model to calculate the corresponding first word vector
  • the second core relationship word is input into the trained Word2Vec model to calculate the corresponding second word vector
  • the first word is calculated.
  • the cosine similarity between the vector and the second word vector, the calculated cosine similarity is taken as the first correlation between the first core relational word and the second relational word.
  • the second correlation is calculated.
  • the correlation between each of the secondary relationship words in the reference question and each of the secondary relationship words in the answer information may be separately calculated.
  • the first secondary relationship words extracted from the reference question have A1 and A2.
  • the second secondary relationship words extracted in the answer message are B1, B2, then calculate the correlation between A1 and B1, A1 and B2, A2 and B1, A2 and B2, A3 and B1, and A3 and B2. And calculating an average value of the plurality of correlation degrees obtained as the second correlation. Or, according to the part of speech of the extracted secondary relationship words, calculating a correlation between the first secondary relationship words and the second secondary relationship words with the same part of speech, and calculating the average of the plurality of correlation degrees as the second relativity.
  • the average value of the first correlation degree and the second correlation degree may be used as a correlation between the reference question and the answer information, or the first correlation degree may be assigned a weight in advance.
  • the first correlation has a weight of 0.7
  • the second correlation has a weight of 0.3.
  • the weighting algorithm is used to calculate the correlation between the reference question and the answer information based on the assigned weight.
  • step S50 if the calculated correlation degree is greater than the preset threshold, it is determined that the answering information is valid, the answering information is sent to the red envelope issuing client, and the red packet resource is transferred according to the preset red envelope issuance rule.
  • the target account if the calculated correlation degree is greater than the preset threshold, it is determined that the answering information is valid, the answering information is sent to the red envelope issuing client, and the red packet resource is transferred according to the preset red envelope issuance rule. The target account.
  • the server presets a preset threshold for determining whether the reply information is valid. When the calculated correlation is greater than the preset threshold, determining that the answer information is valid. Send valid answer information to the red envelope distribution client display.
  • the red envelope issuance rule a plurality of rules can be pre-configured, which are selected by the user when the red envelope is issued, or set on the server side, and when the server determines that the answering information is valid, the server directly issues the red envelope according to the set red envelope issuance rule.
  • the red packet resource is evenly distributed to the target account for answering the reference question and the answering information is valid, or the red packet resource is divided into multiples according to the degree of correlation between the answering information and the reference question, and correspondingly assigned to the answering information is valid.
  • the multiple target accounts wherein the greater the correlation between the target user's answer information and the reference answer, the greater the red envelope share.
  • the red envelope issuer interacts with the red envelope receiver by setting a reference question, and the receiver answers the reference question, and then determines whether the answer question is valid according to the correlation between the answer information and the reference question.
  • the red envelope resource is transferred to the target account according to the red envelope issuance rule, which enhances the interest of the electronic red envelope distribution, and sends it to the red envelope issuer when the answer message is valid, thereby enhancing the interactiveness of the electronic red envelope distribution.
  • the embodiment of the present application further provides a computer readable storage medium, where the issuing program of the electronic red envelope is stored, and the issuing program of the electronic red envelope may be executed by one or more processors, Implement the following operations:
  • Parsing the reference problem according to a parsing algorithm and a word segmentation tool, and extracting a first core relationship word and a first secondary relationship word of the reference question;
  • Receiving the answering information sent by the red packet issuing client parsing the answering information according to the grammar analysis algorithm and the word segmentation tool, and extracting the second core relationship word and the second secondary relationship word of the answering information;
  • the calculated correlation degree is greater than the preset threshold, determining that the answering information is valid, sending the answering information to the red envelope issuing client display, and transferring the red envelope resource to the target according to a preset red envelope issuance rule Account.
  • the step of sending the investigation question to the red packet receiving client where the target account is located, for the red packet receiving client to answer the reference question includes:
  • the reference question is a voice format
  • the receiving client answers the reference question in a voice form.
  • step of calculating the first correlation between the first core relationship word and the second core relationship word comprises:
  • the step of parsing the reference problem according to the grammar analysis algorithm and the word segmentation tool, and extracting the first core relationship word and the first secondary relationship word of the reference problem comprises:
  • the word segmentation tool to perform word segmentation processing on the reference question and obtain a word segmentation result, and the word belonging to the preset part of speech among the words other than the first core relationship word in the word segmentation result is used as the first secondary relationship word.
  • the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Artificial Intelligence (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Acoustics & Sound (AREA)
  • Machine Translation (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种电子红包的发放装置,包括存储器和处理器,存储器上存储有可在处理器上运行的电子红包的发放程序,该程序被处理器执行时实现步骤:从红包发放信息中获取红包资源、目标账户和参考问题;将考察问题发送至红包接收客户端并接收其返回的作答信息,并提取参考问题的第一核心关系词和第一次级关系词,提取作答信息的第二核心关系词和第二次级关系词;计算第一核心关系词与第二核心关系词的相关度、第一次级关系词与第二次级关系词的相关度,计算作答信息与参考问题的相关度;若相关度大于预设阈值,则判定作答信息有效。本申请还提出一种电子红包的发放方法以及一种计算机可读存储介质。本申请增强了电子红包发放的趣味性与互动性。

Description

电子红包的发放装置、方法及计算机可读存储介质
本申请基于巴黎公约申明享有2018年01月22日递交的申请号为201810058460.8、名称为“电子红包的发放装置、方法及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及移动终端技术领域,尤其涉及一种电子红包的发放装置、方法及计算机可读存储介质。
背景技术
随着互联网技术的发展,虚拟红包逐渐应用在各类社交软件和电子支付软件中,这些软件中的抢红包场景主要有:口令红包、随机红包和定额红包等,这些发红包的发放方式主要是红包发放方设置红包金额、红包个数等信息在社交软件的群组中发放,收到红包的人点击抢红包界面获取红包资源,并且当红包个数小于群组中组员的人数时,手速快的人就可以抢到红包,但是这种红包发放的方式不仅趣味性低,而且红包发放方与红包接收方之间也缺乏互动性。
发明内容
本申请提供一种电子红包的发放装置、方法及计算机可读存储介质,其主要目的在于增加电子红包发放过程中的趣味性以及红包发放方与红包接收方之间的互动。
为实现上述目的,本申请提供一种电子红包的发放装置,该装置包括存储器和处理器,所述存储器中存储有可在所述处理器上运行的电子红包的发放程序,所述电子红包的发放程序被所述处理器执行时实现如下步骤:
当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述 红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
此外,为实现上述目的,本申请还提供一种电子红包的发放方法,该方法包括:
当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红 包资源转移至所述目标账户。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有电子红包的发放程序,所述电子红包的发放程序可被一个或者多个处理器执行,以实现如上所述的电子红包的发放方法的步骤。
本申请提出的电子红包的发放装置、方法及计算机可读存储介质,在接收到红包发放客户端发送的红包发放信息时,从红包发放信息中获取红包资源、目标账户、参考问题和红包发放规则,将考察问题发送至目标账户所在的红包接收客户端以供红包接收客户端对参考问题进行作答,并且按照语法分析算法和分词工具分别对参考问题和作答信息进行解析,获取参考问题的第一核心关系词和第一次级关系词,在接收到红包接收客户端发送的作答信息时,获取作答信息的第二核心关系词和第二次级关系词,计算第一核心关系词与第二核心关系词之间的第一相关度,计算第一次级关系词与第二次级关系词之间的第二相关度,根据第一相关度和第二相关度计算作答信息与参考问题之间的相关度,若相关度大于预设阈值,则判定该作答信息为有效作答信息,将其发送至红包发放客户端展示,并按照红包发放规则将红包资源转移至目标账户,本申请的方案中,红包发放方通过设置参考问题与红包接收方互动,接收方对参考问题作答,进而根据作答信息与参考问题之间的相关度判定作答问题是否有效,在作答信息有效时按照红包发放规则将红包资源转移给目标账户,增强了电子红包发放的趣味性,并在作答信息有效时将其发送给红包发放方展示,增强了电子红包发放的互动性。
附图说明
图1为本申请电子红包的发放装置较佳实施例的示意图;
图2为本申请电子红包的发放装置一实施例中电子红包的发放程序的程序模块示意图;
图3为本申请电子红包的发放方法较佳实施例的流程图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供一种电子红包的发放装置。参照图1所示,为本申请电子红包的发放装置较佳实施例的示意图。
在本实施例中,电子红包的发放装置可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、电子书阅读器、便携计算机等具有显示功能的可移动式终端设备。
该电子红包的发放装置至少包括存储器11、处理器12,通信总线13,以及网络接口14。
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是电子红包的发放装置的内部存储单元,例如该电子红包的发放装置的硬盘。存储器11在另一些实施例中也可以是电子红包的发放装置的外部存储设备,例如电子红包的发放装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括电子红包的发放装置的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于电子红包的发放装置的应用软件及各类数据,例如电子红包的发放程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行电子红包的发放程序等。
通信总线13用于实现这些组件之间的连接通信。
网络接口14可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该装置与其他电子设备之间建立通信连接。
图1仅示出了具有组件11-14以及电子红包的发放程序的电子红包的发放装置,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
可选地,该装置还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子红包的发放装置中处理的信息以及用于显示可视化的用户界面。
可选地,该装置还可以包括触摸传感器。所述触摸传感器所提供的供用户进行触摸操作的区域称为触控区域。此外,这里所述的触摸传感器可以为电阻式触摸传感器、电容式触摸传感器等。而且,所述触摸传感器不仅包括接触式的触摸传感器,也可包括接近式的触摸传感器等。此外,所述触摸传感器可以为单个传感器,也可以为阵列布置的多个传感器。该装置的显示器的面积可以与所述触摸传感器的面积相同,也可以不同。可选地,将显示器与所述触摸传感器层叠设置,以形成触摸显示屏。该装置基于触摸显示屏侦测用户触发的触控操作。
可选地,该装置还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,若该装置为移动终端,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
在图1所示的装置实施例中,存储器11中存储有电子红包的发放程序;处理器12执行存储器11中存储的电子红包的发放程序时实现如下步骤:
当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题。
将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具 对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词。
以下内容中涉及到的红包发放客户端和红包接收客户端均可以是具有红包发放功能的软件,例如微信、支付宝等,其中,红包发放客户端是运行在发放红包的用户终端上的软件,红包接收客户端是运行在接收红包的用户终端的软件,它们可以是同一个软件,只是当前登录的账户不同;并且,它们与电子红包的发放装置建立通讯连接,电子红包的发放装置相当于红包发放客户端和红包接收客户端的服务器。用户通过红包发放客户端选择接收红包的一个或者多个账户作为目标账户,例如,用户在一个微信群中发放红包,则该微信群中的所有成员的账户均为目标账户。用户在软件的红包发放界面设置红包资源,红包资源可以是要发放的红包金额或者软件允许的其他能够发放的资源,并设置需要接收方作答的参考问题,用户可以以语音形式或者文字形式设置参考问题,在设置好上述红包发放信息后,将其发送至电子红包的发放装置。电子红包的发放装置在接收到红包发放客户端发送的红包发放信息时,从其中获取待发放的红包金额、目标账户和参考问题。
关于语法分析算法的实现,可以由电子红包的发放装置实现,或者通过调用外部系统提供的开放式的用于实现语法分析算法的API(Application Programming Interface,应用程序编程接口)实现。其中,上述语法分析算法可以是上下文无关语法(Context-Free Grammer)、概率分布的上下文无关语法(Probabilistic Context-Free Grammar)等。根据语法分析算法和分词工具得到核心关系词和次级关系词的方法可以多种,以下以参考问题的分析为例,列举其中的两种实现方式。方式一,按照语法分析算法对参考问题解析,提取参考问题的文本中的核心关系词,即上述第一核心关系词;使用分词工具对参考问题进行分词处理并获取分词结果,将分词结果中除第一核心关系词之外的其他词中属于预设词性的词作为第一次级关系词。其中,分词工具可以是Stanford汉语分词工具、jieba分词等。例如,分词处理的结果中,词的词性有动词、形容词、副词、名词、代词、数词、量词等,在该实施方式中,可以只选择分词结果中词性为动词、名词、量词的词作为第一次级关系词。方式二,按照语法分析算法对参考问题解析,提取参考问题的文本中的核心关系词,即上述第一核心关系词,使用分词工具对参考问题进行分词处理并 获取分词结果,将分词后得到的词中除第一核心关系词之外的其他词作为第一次级关系词。
电子红包的发放装置将参考问题发送至目标账户所在的红包接收客户端。如果参考问题为语音格式,则将参考问题以语音文件的形式发送至红包接收客户端,并向红包接收客户端发送使用语音作答的提示信息,以供红包接收客户端以语音形式对参考问题进行作答。
红包接收客户端收到红包信息,在抢红包界面显示参考问题,红包接收方以文字或者语音作答的形式对该参考问题进行作答,并将作答信息发送至电子红包的发放装置。
在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词。
计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度。
电子红包的发放装置在接收到红包发放客户端发送的作答信息时,按照与提取第一核心关系词和第一次级关系词同样的方式提取作答信息中的第二核心关系词和第一核心关系词。计算提取到的第一核心关系词与第二核心关系词之间第一相关度,对于词语之间的相关度,可以通过词向量模型计算,例如word2vec模型,预先使用自然语言语料库训练Word2Vec模型,训练得到的词向量模型用于将核心关系词或者次级关系词转化为一个词向量。Word2Vec模型是一个用于词向量计算的工具,关于对该模型进行训练并使用它来计算单词的词向量已经有成熟的计算方法,在此不再赘述。将第一核心关系词输入到训练好的Word2Vec模型中计算得到对应的第一词向量,将第二核心关系词输入到训练好的Word2Vec模型中计算得到对应的第二词向量,计算第一词向量与第二词向量之间的余弦相似度,将计算得到的余弦相似度作为第一核心关系词和第二关系词之间的第一相关度。对于第二相关度的计算方式,可以有多种实施方式。例如,可以分别计算参考问题中的每一个次级关系词与作答信息中的每一个次级关系词之间的相关度,例如,参考问题中提取出 的第一次级关系词有A1、A2、A3,作答信息中提取出的第二次级关系词有B1、B2,则计算A1与B1、A1与B2、A2与B1、A2与B2、A3与B1以及A3与B2之间的相关度,计算上述得到的多个相关度的平均值作为第二相关度。或者,根据提取到的次级关系词的词性,计算词性相同的第一次级关系词与第二次级关系词之间的相关度,将计算得到的多个相关度的平均值作为第二相关度。
在计算得到第一相关度和第二相关度后,可以将第一相关度和第二相关度的平均值作为参考问题与作答信息之间的相关度,或者,预先为第一相关度分配权重a1,为第二相关度分配权重a2,若计算得到第一相关度为S1,第二相关度为s2,则参考问题与作答信息之间的相关度S=a1*S1+a2*S2,例如,第一相关度的权重为0.7,第二相关度的权重为0.3,基于分配的权重利用加权算法计算参考问题与作答信息之间的相关度。
若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
电子红包的发放装置中预先设置有用于判断作答信息是否有效的预设阈值,当计算得到的相关度大于该预设阈值时,判定作答信息有效。将有效的作答信息发送至红包发放客户端展示。关于红包发放规则,可以预先配置多种规则,由用户在发放红包时选择,或者设置在服务器端,服务器在判定作答信息有效时,直接按照设置的红包发放规则发放红包。例如,将红包资源平均地分配给回答参考问题并作答信息有效的目标账户,或者,根据作答信息与参考问题之间的相关度的大小将红包资源分成多份,并对应地分配给作答信息有效的多个目标账户,其中,目标用户的作答信息与参考答案之间的相关度越大,则得到的红包份额越大。
本实施例提出的电子红包的发放装置,红包发放方通过设置参考问题与红包接收方互动,接收方对参考问题作答,进而根据作答信息与参考问题之间的相关度判定作答问题是否有效,在作答信息有效时按照红包发放规则将红包资源转移给目标账户,增强了电子红包发放的趣味性,并在作答信息有效时将其发送给红包发放方展示,增强了电子红包发放的互动性。
可选地,在其他的实施例中,电子红包的发放程序还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行以完成本申请,本申请所称的模块是指能够完成特定功能的一系列计算机程序指令段,用于描述电子红包的发放程序在电子红包的发放装置中的执行过程。
例如,参照图2所示,为本申请电子红包的发放装置一实施例中的电子红包的发放程序的程序模块示意图,该实施例中,电子红包的发放程序可以被分割为获取模块10、发送模块20、解析模块30、计算模块40和执行模块50,示例性地:
获取模块10用于:当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
发送模块20用于:将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答;
解析模块30用于:按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
以及,在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
计算模块40用于:计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
执行模块50用于:若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
上述获取模块10、发送模块20、解析模块30、计算模块40和执行模块50等程序模块被执行时所实现的功能或操作步骤与上述实施例大体相同,在此不再赘述。
此外,本申请还提供一种电子红包的发放方法。参照图3所示,为本申 请电子红包的发放方法较佳实施例的流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。以下实施例中,以红包放客户端和红包接收客户端对应的服务器作为执行主体。
在本实施例中,电子红包的发放方法包括:
步骤S10,当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题。
步骤S20,将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词。
以下内容中涉及到的红包放客户端和红包接收客户端可以是具有红包发放功能的软件,例如微信、支付宝等,其中,红包发放客户端是运行在发放红包的用户终端上的软件,红包接收客户端是运行在接收红包的用户终端的软件,它们可以是同一个软件,只是当前登录的账户不同;并且,它们与服务器建立通讯连接,服务器接收红包发放客户端发送的红包发放信息。用户通过红包发放客户端选择接收红包的一个或者多个账户作为目标账户,例如,用户在一个微信群中发放红包,则该微信群中的所有成员的账户均为目标账户。用户在软件的红包发放界面设置红包资源,红包资源可以是要发放的红包金额或者软件允许的其他能够发放的资源,并设置需要接收方作答的参考问题,用户可以以语音形式或者文字形式设置参考问题,在设置好上述红包发放信息后,将其发送至红包发放客户端对应的服务器。
服务器在接收到红包发放客户端发送的红包发放信息时,从其中获取待发放的红包金额、目标账户和参考问题。将参考问题发送至目标账户所在的红包接收客户端。如果参考问题为语音格式,则将参考问题以语音文件的形式发送至红包接收客户端,并向红包接收客户端发送使用语音作答的提示信息,以供红包接收客户端以语音形式对参考问题进行作答。
红包接收客户端收到红包信息,在抢红包界面显示参考问题,红包接收方以文字或者语音作答的形式对该参考问题进行作答,并将作答信息发送至服务器。
服务器按照语法分析算法分别对参考参考问题和作答信息进行解析。具 体地,关于语法分析算法的实现,可以由服务器实现,或者通过调用外部系统提供的开放式的用于实现语法分析算法的API(Application Programming Interface,应用程序编程接口)实现。其中,上述语法分析算法可以是上下文无关语法(Context-Free Grammer)、概率分布的上下文无关语法(Probabilistic Context-Free Grammar)等。根据语法分析算法和分词工具得到核心关系词和次级关系词的方法可以多种,以下以参考问题的分析为例,列举其中的两种实现方式。方式一,按照语法分析算法对参考问题解析,提取参考问题的文本中的核心关系词,即上述第一核心关系词;使用分词工具对参考问题进行分词处理并获取分词结果,将分词结果中除第一核心关系词之外的其他词中属于预设词性的词作为第一次级关系词。例如,分词处理的结果中,词的词性有动词、形容词、副词、名词、代词、数词、量词等,在该实施方式中,可以只选择分词结果中词性为动词、名词、量词的词作为第一次级关系词。方式二,按照语法分析算法对参考问题解析,提取参考问题的文本中的核心关系词,即上述第一核心关系词,使用分词工具对参考问题进行分词处理并获取分词结果,将分词后得到的词中除第一核心关系词之外的其他词作为第一次级关系词。
步骤S30,在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词,并按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词。
步骤S40,计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度。
服务器在接收到红包发放客户端发送的作答信息时,,按照与提取第一核心关系词和第一次级关系词同样的方式提取作答信息中的第二核心关系词和第一核心关系词。计算提取到的第一核心关系词与第二核心关系词之间第一相关度,对于词语之间的相关度,可以通过词向量模型计算,例如word2vec模型,预先使用自然语言语料库训练Word2Vec模型,训练得到的词向量模型用于将核心关系词或者次级关系词转化为一个词向量。Word2Vec模型是一个 用于词向量计算的工具,关于对该模型进行训练并使用它来计算单词的词向量已经有成熟的计算方法,在此不再赘述。将第一核心关系词输入到训练好的Word2Vec模型中计算得到对应的第一词向量,将第二核心关系词输入到训练好的Word2Vec模型中计算得到对应的第二词向量,计算第一词向量与第二词向量之间的余弦相似度,将计算得到的余弦相似度作为第一核心关系词和第二关系词之间的第一相关度。对于第二相关度的计算方式,可以有多种实施方式。例如,可以分别计算参考问题中的每一个次级关系词与作答信息中的每一个次级关系词之间的相关度,例如,参考问题中提取出的第一次级关系词有A1、A2、A3,作答信息中提取出的第二次级关系词有B1、B2,则计算A1与B1、A1与B2、A2与B1、A2与B2、A3与B1以及A3与B2之间的相关度,计算上述得到的多个相关度的平均值作为第二相关度。或者,根据提取到的次级关系词的词性,计算词性相同的第一次级关系词与第二次级关系词之间的相关度,将计算得到的多个相关度的平均值作为第二相关度。
在计算得到第一相关度和第二相关度后,可以将第一相关度和第二相关度的平均值作为参考问题与作答信息之间的相关度,或者,预先为第一相关度分配权重a1,为第二相关度分配权重a2,若计算得到第一相关度为S1,第二相关度为s2,则参考问题与作答信息之间的相关度S=a1*S1+a2*S2,例如,第一相关度的权重为0.7,第二相关度的权重为0.3,基于分配的权重利用加权算法计算参考问题与作答信息之间的相关度。
步骤S50,若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
服务器中预先设置有用于判断作答信息是否有效的预设阈值,当计算得到的相关度大于该预设阈值时,判定作答信息有效。将有效的作答信息发送至红包发放客户端展示。关于红包发放规则,可以预先配置多种规则,由用户在发放红包时选择,或者设置在服务器端,服务器在判定作答信息有效时,直接按照设置的红包发放规则发放红包。例如,将红包资源平均地分配给回答参考问题并作答信息有效的目标账户,或者,根据作答信息与参考问题之间的相关度的大小将红包资源分成多份,并对应地分配给作答信息有效的多个目标账户,其中,目标用户的作答信息与参考答案之间的相关度越大,则 得到的红包份额越大。
本实施例提出的电子红包的发放方法,红包发放方通过设置参考问题与红包接收方互动,接收方对参考问题作答,进而根据作答信息与参考问题之间的相关度判定作答问题是否有效,在作答信息有效时按照红包发放规则将红包资源转移给目标账户,增强了电子红包发放的趣味性,并在作答信息有效时将其发送给红包发放方展示,增强了电子红包发放的互动性。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有电子红包的发放程序,所述电子红包的发放程序可被一个或多个处理器执行,以实现如下操作:
当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答;
在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
进一步地,所述将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答的步骤包括:
若所述参考问题为语音格式,则将所述参考问题以语音文件的形式发送至所述红包接收客户端,并向所述红包接收客户端发送使用语音作答的提示 信息,以供所述红包接收客户端以语音形式对所述参考问题进行作答。
进一步地,,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
进一步地,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
本申请计算机可读存储介质具体实施方式与上述电子红包的发放装置和方法各实施例基本相同,在此不作累述。
需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机, 服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种电子红包的发放装置,其特征在于,所述装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的电子红包的发放程序,所述电子红包的发放程序被所述处理器执行时实现如下步骤:
    当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
    将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
    在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
    计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
    若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
  2. 如权利要求1所述的电子红包的发放装置,其特征在于,所述将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答的步骤包括:
    若所述参考问题为语音格式,则将所述参考问题以语音文件的形式发送至所述红包接收客户端,并向所述红包接收客户端发送使用语音作答的提示信息,以供所述红包接收客户端以语音形式对所述参考问题进行作答。
  3. 如权利要求1所述的电子红包的发放装置,其特征在于,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  4. 如权利要求2所述的电子红包的发放装置,其特征在于,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  5. 如权利要求1所述的电子红包的发放装置,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
  6. 如权利要求2所述的电子红包的发放装置,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
  7. 如权利要求5所述的电子红包的发放装置,其特征在于,所述计算所述第一次级关系词与所述第二次级关系词之间的第二相关度的步骤包括:
    若所述第一次级关系词和所述第二次级关系词均有多个,则分别计算词性相同的第一次级关系词与第二次级关系词之间的相关度;
    将计算得到的多个相关度的平均值作为所述第一次级关系词与所述第二次级关系词之间的第二相关度;
    根据预先为所述第一相关度和所述第二相关度分配的权重,以及计算得到的第一相关度和第二相关度,计算所述作答信息与所述参考问题之间的相关度。
  8. 一种电子红包的发放方法,其特征在于,所述方法包括:
    当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
    将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
    在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
    计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
    若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
  9. 如权利要求8所述的电子红包的发放方法,其特征在于,所述将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答的步骤包括:
    若所述参考问题为语音格式,则将所述参考问题以语音文件的形式发送至所述红包接收客户端,并向所述红包接收客户端发送使用语音作答的提示信息,以供所述红包接收客户端以语音形式对所述参考问题进行作答。
  10. 如权利要求8所述的电子红包的发放方法,其特征在于,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  11. 如权利要求9所述的电子红包的发放方法,其特征在于,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  12. 如权利要求8所述的电子红包的发放方法,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
  13. 如权利要求9所述的电子红包的发放方法,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
  14. 如权利要求12所述的电子红包的发放方法,其特征在于,所述计算所述第一次级关系词与所述第二次级关系词之间的第二相关度的步骤包括:
    若所述第一次级关系词和所述第二次级关系词均有多个,则分别计算词性相同的第一次级关系词与第二次级关系词之间的相关度;
    将计算得到的多个相关度的平均值作为所述第一次级关系词与所述第二次级关系词之间的第二相关度;
    根据预先为所述第一相关度和所述第二相关度分配的权重,以及计算得到的第一相关度和第二相关度,计算所述作答信息与所述参考问题之间的相关度。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有电子红包的发放程序,所述电子红包的发放程序可被一个或者多个处理器执行,以实现如下步骤:
    当接收到红包发放客户端发送的红包发放信息时,从所述红包发放信息中获取红包资源、目标账户和参考问题;
    将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答,并按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词;
    在接收到红包发放客户端发送的作答信息时,按照语法分析算法和分词工具对所述作答信息解析,提取所述作答信息的第二核心关系词和第二次级关系词;
    计算所述第一核心关系词与所述第二核心关系词之间的第一相关度,并计算所述第一次级关系词与所述第二次级关系词之间的第二相关度,根据所述第一相关度与所述第二相关度确定所述作答信息与所述参考问题之间的相关度;
    若计算得到的相关度大于预设阈值,则判定所述作答信息有效,将所述作答信息发送至所述红包发放客户端展示,并按照预设的红包发放规则将红包资源转移至所述目标账户。
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述将所述考察问题发送至所述目标账户所在的红包接收客户端,以供所述红包接收客户端对所述参考问题进行作答的步骤包括:
    若所述参考问题为语音格式,则将所述参考问题以语音文件的形式发送至所述红包接收客户端,并向所述红包接收客户端发送使用语音作答的提示信息,以供所述红包接收客户端以语音形式对所述参考问题进行作答。
  17. 如权利要求15所述的计算机可读存储介质,其特征在于,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  18. 如权利要求16所述的计算机可读存储介质,其特征在于,,所述计算所述第一核心关系词与所述第二核心关系词之间的第一相关度的步骤包括:
    根据预先训练好的词向量模型计算所述第一核心关系词对应的第一词向量和所述第二核心关系词对应的第二词向量;
    计算所述第一词向量与所述第二词向量之间的余弦相似度,将所述余弦相似度作为所述第一核心关系词和第二关系词之间的第一相关度。
  19. 如权利要求15所述的计算机可读存储介质,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
  20. 如权利要求16所述的计算机可读存储介质,其特征在于,所述按照语法分析算法和分词工具对所述参考问题解析,提取所述参考问题的第一核心关系词和第一次级关系词的步骤包括:
    按照所述语法分析算法对所述参考问题解析,提取所述参考问题的第一核心关系词;
    使用所述分词工具对所述参考问题进行分词处理并获取分词结果,将分词结果中除所述第一核心关系词之外的其他词中属于预设词性的词作为所述第一次级关系词。
PCT/CN2018/089186 2018-01-22 2018-05-31 电子红包的发放装置、方法及计算机可读存储介质 WO2019140826A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810058460.8 2018-01-22
CN201810058460.8A CN108305057B (zh) 2018-01-22 2018-01-22 电子红包的发放装置、方法及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2019140826A1 true WO2019140826A1 (zh) 2019-07-25

Family

ID=62865825

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089186 WO2019140826A1 (zh) 2018-01-22 2018-05-31 电子红包的发放装置、方法及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN108305057B (zh)
WO (1) WO2019140826A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003600B (zh) * 2018-08-02 2021-06-08 科大讯飞股份有限公司 消息处理方法及装置
CN109710410B (zh) * 2018-12-24 2021-08-13 微梦创科网络科技(中国)有限公司 一种互联网信息资源分配方法及装置
CN110378677B (zh) * 2019-07-10 2023-05-09 维沃移动通信有限公司 一种红包领取方法、装置、移动终端及存储介质
CN110688215A (zh) * 2019-08-23 2020-01-14 咪咕文化科技有限公司 虚拟资源的分配方法、服务器和计算机可读存储介质
CN111582862B (zh) * 2020-06-26 2023-06-27 腾讯科技(深圳)有限公司 信息处理方法、装置、系统、计算机设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004090776A1 (en) * 2003-04-11 2004-10-21 Nhn Corporation A method for determining a specialist in a field on-line and a system for enabling the method
CN106878275A (zh) * 2017-01-03 2017-06-20 阿里巴巴集团控股有限公司 身份验证方法及装置和服务器
CN107133303A (zh) * 2017-04-28 2017-09-05 百度在线网络技术(北京)有限公司 用于输出信息的方法和装置
CN107181784A (zh) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 一种资源分配方法及装置
CN107241265A (zh) * 2017-07-07 2017-10-10 苏州沛潭信息科技有限公司 一种在即时通讯工具中实现问答活动的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851346A (zh) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 电视红包的发放方法及装置
CN106204156A (zh) * 2016-07-20 2016-12-07 天涯社区网络科技股份有限公司 一种用于网络论坛的广告投放方法及装置
CN106484664B (zh) * 2016-10-21 2019-03-01 竹间智能科技(上海)有限公司 一种短文本间相似度计算方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004090776A1 (en) * 2003-04-11 2004-10-21 Nhn Corporation A method for determining a specialist in a field on-line and a system for enabling the method
CN107181784A (zh) * 2016-03-11 2017-09-19 阿里巴巴集团控股有限公司 一种资源分配方法及装置
CN106878275A (zh) * 2017-01-03 2017-06-20 阿里巴巴集团控股有限公司 身份验证方法及装置和服务器
CN107133303A (zh) * 2017-04-28 2017-09-05 百度在线网络技术(北京)有限公司 用于输出信息的方法和装置
CN107241265A (zh) * 2017-07-07 2017-10-10 苏州沛潭信息科技有限公司 一种在即时通讯工具中实现问答活动的方法

Also Published As

Publication number Publication date
CN108305057B (zh) 2021-01-15
CN108305057A (zh) 2018-07-20

Similar Documents

Publication Publication Date Title
WO2019140826A1 (zh) 电子红包的发放装置、方法及计算机可读存储介质
EP3206110B1 (en) Method of providing handwriting style correction function and electronic device adapted thereto
US10769253B2 (en) Method and device for realizing verification code
US20170168705A1 (en) Method and electronic device for adjusting video progress
WO2020177592A1 (zh) 画作问答方法及装置、画作问答系统、可读存储介质
WO2019056793A1 (zh) 简历识别装置、方法及计算机可读存储介质
CN107679054A (zh) 数据比对方法、装置及可读存储介质
TW202025139A (zh) 語音互動方法、裝置及系統
US20170277526A1 (en) Software categorization method and electronic device
CN111787154A (zh) 一种信息处理方法及电子设备
WO2019071890A1 (zh) 产品推荐装置、方法及计算机可读存储介质
CN112463106A (zh) 基于智能屏幕的语音交互方法、装置、设备及存储介质
WO2018082560A1 (zh) 帐号注册方法、相关设备及系统
CN113761514B (zh) 一种云桌面多因子安全认证方法及系统
US20180349580A1 (en) Information processing method and device, and electronic equipment
US20180357404A1 (en) Information processing method and apparatus, and electronic device
WO2020073661A1 (zh) 动态码同步进程扩容方法、动态码生成器及存储介质
WO2020252639A1 (zh) 内容推送方法及相关产品
CN111125509A (zh) 语言分类系统
US20170169211A1 (en) One kind of website passwords generating method and apparatus
CN111160157B (zh) 基于dwg图纸的文本提取方法及相关产品
US20170161322A1 (en) Method and electronic device for searching resource
CN113781084A (zh) 一种调查问卷展示方法和装置
WO2023066258A1 (zh) 隐私数据的数据处理方法、装置、计算机设备及介质
EP4075424A1 (en) Speech recognition method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18900596

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18900596

Country of ref document: EP

Kind code of ref document: A1