WO2022083562A1 - Short message processing method and apparatus, device, and storage medium - Google Patents

Short message processing method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2022083562A1
WO2022083562A1 PCT/CN2021/124551 CN2021124551W WO2022083562A1 WO 2022083562 A1 WO2022083562 A1 WO 2022083562A1 CN 2021124551 W CN2021124551 W CN 2021124551W WO 2022083562 A1 WO2022083562 A1 WO 2022083562A1
Authority
WO
WIPO (PCT)
Prior art keywords
short message
rich media
type
key information
link
Prior art date
Application number
PCT/CN2021/124551
Other languages
French (fr)
Chinese (zh)
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 WO2022083562A1 publication Critical patent/WO2022083562A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/23Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for mobile advertising

Definitions

  • the present disclosure relates to the technical field of information processing, and in particular, to a method, device, device and storage medium for processing short messages.
  • a regular expression is usually used to parse and display a notification-type short message in a structured manner.
  • the regular expression method needs to configure the corresponding regular expression for the short message in advance, otherwise the short message cannot be parsed and structured, which has strong limitations. The effect is not interesting and attractive, and it is not suitable for short messages of marketing and promotion.
  • embodiments of the present disclosure provide a method, apparatus, device, and storage medium for processing a short message.
  • a first aspect of the embodiments of the present disclosure provides a method for processing a short message.
  • the method includes: acquiring a short message received by a terminal device; performing type identification processing and key information extraction processing on the short message to obtain a short message type of the short message and key information of the short message ; According to the short message type of the short message, obtain a rich media resource matching the short message type; generate an intelligent short message according to the obtained key information and rich media resource.
  • a second aspect of the embodiments of the present disclosure provides a short message processing device, the device comprising:
  • the first acquisition module is used to acquire the short message received by the terminal device.
  • the processing module is used to perform type identification processing and key information extraction processing on the short message, and obtain the short message type of the short message and the key information of the short message.
  • the second obtaining module is configured to obtain rich media resources matching the short message type according to the short message type of the short message.
  • the generation module is used to generate intelligent short messages based on key information and rich media resources.
  • a third aspect of an embodiment of the present disclosure provides a terminal device, the terminal device includes: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of the first aspect is implemented .
  • a fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method of the above-mentioned first aspect is implemented.
  • the terminal device after obtaining the short message received by the terminal device, performing type identification processing and key information extraction processing on the short message to obtain the short message type and key information of the short message, and then according to the identified short message type, obtain the short message related to the short message.
  • the rich media resources that match the SMS type will generate corresponding intelligent SMS messages according to the acquired key information and rich media resources. Since this embodiment can add corresponding rich media resources to the structured information (ie, smart short messages) of the short message according to the type of the short message, the interest and attractiveness of the short message display can be improved, and it is suitable for marketing and new promotion. Short message.
  • FIG. 1 is a schematic diagram of a structured display interface of a short message provided by the related art
  • FIG. 2 is a schematic flowchart of a method for processing a short message provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a short message push system provided by an embodiment of the present disclosure.
  • FIG. 4A is a schematic diagram of a marketing short message provided by an embodiment of the present disclosure.
  • Fig. 4B is the schematic diagram of the intelligent short message obtained based on Fig. 4A;
  • 5A is a schematic flowchart of a method for opening a third-party APP through a short message link provided by the related art
  • 5B is a schematic flowchart of a method for opening a third APP through a short message link provided by an embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure
  • FIG. 7A is a schematic diagram of a whitelist provided by an embodiment of the present disclosure.
  • FIG. 7B is a schematic diagram of a mapping relationship between a short message type and rich media resources provided by an embodiment of the present disclosure
  • 7C is a schematic diagram of a mapping relationship between a short message identifier and a rich media resource provided by an embodiment of the present disclosure
  • FIG. 8 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of a short message processing apparatus provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
  • the related technology generally uses a preset regular expression to display the text of notification-type short messages in a structured manner. If the content and structure of the short message can match the preset regular expression, the structure corresponding to the regular expression The template is used to structure the text of the short message. On the contrary, if the content and structure of the short message cannot match the preset regular expression, the original information of the short message is directly displayed. For example, here is the raw message of a notification SMS:
  • a terminal device for example, a mobile phone and other device with the function of sending and receiving short messages
  • a terminal device for example, a mobile phone and other device with the function of sending and receiving short messages
  • the channel number of the short message for example, 1062, 1063, 1066 and other short messages starting with 106 channel, etc.
  • the text message will be processed according to the structured template corresponding to the regular expression.
  • the text is displayed in a structured manner, and the structured presentation interface is shown in Figure 1.
  • the related technology can display the notification text messages in a structured way, it only displays the text of the text messages in a structured manner, and the display form is relatively dull and boring, which is not suitable for the use of short messages for marketing and promotion. .
  • this structured method is only applicable to short messages configured with regular expressions in advance, and cannot be used for short messages without regular expressions configured in advance, which has strong limitations.
  • the embodiments of the present disclosure provide a new short message processing solution.
  • This scheme abandons the traditional regular expression scheme, and innovatively adopts the natural language processing algorithm (this algorithm can be exemplarily understood as an offline algorithm carried on the terminal device) to identify and extract the type and key information of the short message, and A rich media resource corresponding to the short message is obtained according to the identified short message type, so as to generate a corresponding intelligent short message according to the rich media resource and key information of the short message.
  • the embodiment of the present disclosure can generate a smart short message including rich media resources according to the received short message, and display the content of the short message through the smart short message, the interest and attractiveness of the short message display can be improved, and it is suitable for the interesting display of the short message.
  • the natural language processing method adopted by the embodiments of the present disclosure is applicable to all short messages, unlike the related art, only short messages configured with regular expressions can be used. Therefore, the embodiments of the present disclosure break the limitations of the related technologies and have higher universality.
  • FIG. 2 is a schematic flowchart of a method for processing a short message provided by an embodiment of the present disclosure.
  • the method can be executed by a terminal device.
  • the terminal device can be exemplified as a mobile phone or the like, which has the ability to send and receive short messages. functions and information processing capabilities of the device.
  • the method provided by this embodiment includes the following steps:
  • Step 201 Acquire the short message received by the terminal device.
  • Step 202 Perform type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message.
  • Step 203 Acquire a rich media resource matching the short message type according to the short message type of the short message.
  • Step 204 Generate an intelligent short message according to the acquired rich media resources and key information of the short message.
  • FIG. 3 is a schematic structural diagram of a short message push system provided by an embodiment of the present disclosure.
  • the short message push system includes a resource configuration server 10 on the cloud, a terminal device 11 on the client side, and a rich media resource configuration terminal.
  • the rich media resource configuration end is hereinafter referred to as the configuration end for short
  • the configuration end for short of the computer device 12 .
  • the computer device 12 is used for data interaction with the resource configuration server 10, sending preset information configured by the configuration terminal to the resource configuration server 10 for storage, and pushing a short message to the terminal device 10, and the short message can be at least one of the following short messages
  • the preset information may include rich media resources (for example, pictures, animations, audios) configured by the configuration terminal for various types of short messages (for example, short messages for marketing, notification, and promotion and new promotion) that can be used within a certain period of time. , at least one of video), that is to say, the preset information referred to in this embodiment may include a mapping relationship between short message types and rich media resources.
  • the resource configuration server 10 is configured to store the preset information sent by the computer device 12 on a local storage device, and synchronize the preset information to the terminal device 11 .
  • the terminal device 11 is used to receive the short message sent by the computer device 12, obtain the rich media resource configured for the short message by the configuration terminal from the preset information according to the short message type of the short message, and generate the corresponding intelligent short message according to the rich media resource and key information of the short message .
  • the terminal device 11 may be equipped with a software development kit (Software Development Kit, SDK for short), and the terminal device 11 obtains preset information of the configuration terminal configuration from the resource configuration server 10 in advance through the SDK.
  • a software development kit Software Development Kit, SDK for short
  • the manner in which the terminal device 11 obtains the preset information at least includes the following:
  • the terminal device 11 periodically sends an acquisition request to the resource configuration server 10 through the SDK, and the resource configuration server 10 sends the locally stored preset information to the terminal device 11 according to the acquisition request.
  • the resource configuration server 10 periodically pushes all the preset information configured by the configuration terminal to the terminal device 11, and the terminal device 11 receives and stores the preset information pushed by the resource configuration server 10 through the SDK.
  • the resource configuration server 10 After receiving the latest preset information sent by the computer device 12, the resource configuration server 10 sends the latest preset information to the terminal device 11 in the form of an update patch, and the terminal device 11 downloads the updated patch based on the SDK. Obtain and store the latest preset information.
  • the terminal device 11 After receiving the short message pushed by the computer device 12, the terminal device 11 uses a preset natural language processing algorithm or model to perform type identification processing and key information extraction processing on the short message.
  • the execution methods can at least include the following:
  • a natural language processing model can be pre-trained, so that the model includes at least two parts, one part is used to identify the type of the short message, and the other part is used to extract the corresponding key information based on the identified short message type .
  • the terminal device 11 After receiving the short message pushed by the computer device 12, the terminal device 11 calls the natural language processing model through the SDK, takes the received short message as the input of the model, and obtains the type and key information of the short message from the model output.
  • two natural language processing models may also be trained separately, wherein one natural language processing model (hereinafter referred to as the first model) is used to identify the type of short messages, and the other natural language processing model (hereinafter referred to as the second model) model) is used to extract the key information of SMS.
  • the terminal device 11 After receiving the short message pushed by the computer device 12, the terminal device 11 calls the first model and the second model through the SDK, inputs the short message into the first model and the second model respectively, outputs the type of the short message through the first model, and obtains the type of the short message through the second model. Output the key information of the SMS.
  • the input of the first model can still be the short message received by the terminal device 11, but the input of the second model becomes the short message received by the terminal device 11 and the type of the short message output by the first model.
  • the second model is trained to extract key information associated with the SMS type. For example, for marketing SMS, information such as SMS title, body, signature and link can be extracted from the SMS as key information.
  • the relationship between the type of the short message and the key information of the short message can be set as required, and this relationship can be mapped to the model through the model training method , so that the model has the corresponding key information extraction ability.
  • the link in the key information can also be compared with the preset link blacklist, and when the link is in the blacklist, the Links are removed from critical information to prevent users from entering unsafe web pages and keep users' data safe.
  • FIG. 4A is a schematic diagram of a marketing short message provided by an embodiment of the present disclosure
  • FIG. 4B is a schematic diagram of a smart short message obtained based on FIG. 4A . As shown in FIG.
  • the “** squirrel” in the figure is a short message signature, which is used here to indicate a brand name.
  • the short message signature can also be used to indicate a business name, a store name, an operator name, and the like.
  • "c.tb.cn/c.KOz8" is the short link of the merchant's store.
  • the part between "**squirrel” and "c.tb.cn/c.KOz8" is marketing content.
  • the type of the short message output by the model is a marketing type, and the key information output by the model can exemplarily include three parts, namely: the content title extracted from the marketing content, Content body and links.
  • the terminal device 11 When the user clicks the "Buy Now” button, the terminal device 11 automatically executes the short link “c.tb.cn” /c.KOz8" to get the original link corresponding to the short link, and by splicing the original link of the short link and the prefix of the link of the application (Application, referred to as APP) pointed to by the short link, the "**squirrel” store is in The deep link in the APP, so that the page of the "**Squirrel” store can be directly opened in the APP through the deep link.
  • APP Application, referred to as Application
  • the link in the original short message can be associated with a preset area in the smart short message (for example, the area where the preset button or the rich media resource is located), and when the user performs a click operation in the preset area,
  • a preset area in the smart short message for example, the area where the preset button or the rich media resource is located
  • the short link associated with the preset area is executed, the original link corresponding to the short link is obtained, and then a deep link (ie Deep Link) of the third-party application interface is generated according to the original link, and the third-party application interface is directly opened based on the deep link.
  • FIG. 5A is a schematic flowchart of a method for opening a third-party APP via a short message link provided by the related art
  • FIG. 5B is a schematic flowchart of a method for opening a third APP via a short message link provided by an embodiment of the present disclosure.
  • the related art needs to open the H5 page corresponding to the browser according to the link in the short message, remind the user whether to allow the opening of a third-party application program in the H5 page, and only the user clicks the "Allow" button in the H5 page Only then can the third-party APP be opened, and the entire opening process is cumbersome and complicated.
  • the method provided by the embodiment of the present disclosure by associating the short link in the short message with the area or preset button where the rich media resource in the smart short message is located, not only the It can hide the short link, improve the simplicity of the smart message display interface, and can directly parse the original link of the short link when the user clicks on the area, and generate the corresponding Deep Link according to the original link, so that according to the Deep Link, you can directly Opening a third-party APP does not need to be relayed through a browser. Therefore, compared with related technologies, the method provided by the embodiment of the present disclosure has simpler operation and better user experience.
  • the above is only an example of the way of opening the application program interface, but it is not all ways.
  • the deep link corresponding to the short link can also be configured in the preset information in advance. During execution, the deep link corresponding to the short link can be directly obtained from the preset information, so that the corresponding application program interface can be directly opened according to the deep link.
  • the natural language processing method is innovatively used to identify and extract the type and key information of the short message, and according to the identified short message type, the rich media resources corresponding to the short message are obtained, and then the generated rich media resources and key information are generated according to the obtained rich media resources and key information.
  • Corresponding smart short messages Since this embodiment can add corresponding rich media resources to the structured information of the short message according to the type of the short message, the interest and attractiveness of the short message display can be improved, and it is suitable for short messages of marketing and promotion.
  • the natural language processing method adopted in this embodiment is applicable to all short messages, unlike the related art, only short messages configured with regular expressions can be used. higher universality.
  • FIG. 6 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure.
  • the short message received by the terminal device includes the short message signature.
  • the method includes:
  • Step 601 Obtain configuration information corresponding to the short message signature from pre-obtained preset information, where the preset information includes a mapping relationship between the short message signature and the configuration information.
  • Step 602 according to the short message type of the short message, search for a rich media resource matching the short message type from the configuration information, where the configuration information includes the mapping relationship between the short message type and the rich media resource.
  • the preset information pushed by the resource configuration server 10 to the terminal device 11 may include a short message signature list and configuration information corresponding to each short message signature in the short message signature list.
  • the short message signature list includes the short message signatures of the configuration terminal that has signed a contract and has submitted preset information.
  • the configuration information corresponding to each short message signature may include one or more short message types, and each short message type may correspond to one or more rich media resources.
  • the configuration terminal can configure a general resource, which can be used by all short messages in this type.
  • the configuration terminal can also set different rich media resources for different short messages. Different short messages use different rich media resources, thereby realizing the differentiation of short messages and improving user experience.
  • the correspondence between different short messages and rich media resources may be exemplarily represented in the configuration information as a mapping relationship between short message identifiers and rich media resources, where the short message identifiers are listed in this document.
  • the embodiment may be at least one of the following: a short message label, a hash value of the short message label, a link in a short message, a hash value of a link in a short message, and a hash value calculated based on all contents of the short message.
  • FIG. 7A is a schematic diagram of a whitelist provided by an embodiment of the present disclosure
  • FIG. 7B is a mapping between a short message type and a rich media resource provided by an embodiment of the present disclosure
  • Figure 7C is a schematic diagram of a mapping relationship between a short message identifier and rich media resources provided by an embodiment of the present disclosure.
  • the hash value H corresponding to the short message signature L is calculated by a preset algorithm, and the hash value H of the short message signature is used as the identifier of the short message, and the rich media corresponding to the identifier is found in multiple rich media resources according to the identifier of the short message.
  • the rich media resource is the rich media resource configured by the configuration terminal for the short message.
  • FIG. 8 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure.
  • the short message received by the terminal device may not include the short message signature.
  • the method includes the following steps:
  • Step 801 Search and obtain a plurality of rich media resources corresponding to the short message type of the short message from pre-obtained preset information, where the preset information includes a mapping relationship between the short message type and the rich media resources.
  • Step 802 based on a preset algorithm, calculate and obtain the identifier of the short message.
  • Step 803 Obtain a rich media resource corresponding to the identifier of the short message from the multiple rich media resources obtained by searching.
  • the rich media resources configured for the same type of short message by different configuration terminals may be exemplarily stored in the same storage area.
  • the calculation method of the short message identifier can be set as required. For example, in a possible implementation manner, the hash value of the link in the short message can be calculated to obtain the hash value corresponding to the short message link, and the link of the short message can be calculated by hash value.
  • the hash value is used as the identifier of the short message, so that according to the identifier of the short message, the rich media resource corresponding to the identifier can be determined from multiple rich media resources, and the rich media resource is the rich media resource matching the type of the short message .
  • this is only an example description rather than a unique limitation on the calculation method of the short message identifier.
  • This embodiment does not need to carry a short message signature in the short message, and can also determine the rich media resource corresponding to the short message from the multiple rich media resources corresponding to the short message type according to the short message type of the short message, which can not only satisfy the display requirements of different short messages It can also improve the acquisition efficiency and accuracy of rich media resources, and speed up the generation of intelligent short messages.
  • FIG. 9 is a schematic structural diagram of a short message display device provided by an embodiment of the present disclosure.
  • the device may be embodied as the terminal device in the above-mentioned embodiment, or a part of functional modules of the terminal device, and the device may be equipped with an SDK.
  • the short message display device 90 includes:
  • the first obtaining module 91 is used to obtain the short message received by the terminal device
  • the processing module 92 is configured to perform type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message.
  • the second obtaining module 93 is configured to obtain rich media resources matching the short message type according to the short message type of the short message.
  • the generating module 94 is configured to generate intelligent short messages according to key information and rich media resources.
  • the processing module 92 is used to:
  • type identification processing and key information extraction processing are performed on the short message, and the short message type of the short message and the key information of the short message are obtained.
  • the short message includes a short message signature
  • the second acquisition module 93 includes:
  • the first search unit is configured to obtain configuration information corresponding to the short message signature from preset information, where the preset information includes a mapping relationship between the short message signature and the configuration information.
  • the second search unit is configured to search for the rich media resource matching the short message type from the configuration information according to the short message type of the short message, and the configuration information includes the mapping relationship between the short message type and the rich media resource.
  • the second search unit is used to:
  • the identifier of the short message is obtained by calculation; a plurality of rich media resources corresponding to the short message type are obtained from the configuration information; the rich media resources corresponding to the identifier are obtained from the rich media resources.
  • the apparatus 90 may further include:
  • the first judging module is used for judging whether the short message signature of the short message is in the preset white list.
  • the processing module is configured to perform the steps of type identification processing and key information extraction processing for the short message when the short message signature is in the white list.
  • the second obtaining module 93 includes:
  • the third search unit is configured to obtain a plurality of rich media resources corresponding to the short message type of the short message from the preset information, where the preset information includes the mapping relationship between the short message type and the rich media resources.
  • the calculation unit is used for calculating the identification of the short message based on the preset algorithm.
  • the fourth searching unit is configured to obtain the rich media resource corresponding to the identifier from the obtained multiple rich media resources.
  • the computing unit is configured to calculate the hash value of the short message, and use the hash value of the short message as the identifier of the short message.
  • the key information of the short message includes a link in the short message.
  • the generating module 94 is configured to associate the link in the short message with the preset area on the smart short message, so that the application program interface corresponding to the link is opened when the preset area is clicked.
  • the link in the short message is a short link
  • the device 90 further includes:
  • the third obtaining module is configured to obtain the original link corresponding to the short link when it is detected that the preset area is clicked.
  • the link processing module is used to generate the deep link of the application interface based on the original link.
  • the execution module is used to open the application interface according to the deep link.
  • the apparatus 90 further includes:
  • the comparison module is used to compare the links in the extracted key information with the preset link blacklist.
  • the delete module is used to delete the link from the key message when the link in the SMS is in the link blacklist.
  • the apparatus provided in this embodiment can execute the method of any of the foregoing method embodiments, and the execution manner and beneficial effects thereof are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure, and the terminal device may be understood as the terminal device in the foregoing embodiment.
  • the terminal device 100 includes: a memory 110 and a processor 120, wherein the memory 110 stores a computer program, and when the computer program is executed by the processor 120, the method of any of the above method embodiments can be implemented, The implementation manner and beneficial effects thereof are similar, and will not be repeated here.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the storage medium.
  • a computer program is stored on the storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the present disclosure relate to a short message processing method and apparatus, a device, and a storage medium. Said method comprises: acquiring a short message received by a terminal device; then performing type identification processing and key information extraction processing on the short message, so as to obtain the type and key information of the short message; according to the identified short message type, acquiring rich media resources matching the short message type; and generating a corresponding intelligent short message according to the acquired key information and rich media resources. The embodiments of the present disclosure can make the display of a short message more interesting and attractive, being suitable for short messages for marketing and promotion and new client acquisition.

Description

短信的处理方法、装置、设备及存储介质Short message processing method, device, equipment and storage medium
本申请要求2020年10月20日递交的申请号为202011123044.5、发明名称为“短信的处理方法、装置、设备及存储介质”中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 20, 2020 with the application number 202011123044.5 and the name of the invention as "Short Message Processing Method, Device, Equipment and Storage Medium", the entire contents of which are incorporated into this application by reference.
技术领域technical field
本公开涉及信息处理技术领域,尤其涉及一种短信的处理方法、装置、设备及存储介质。The present disclosure relates to the technical field of information processing, and in particular, to a method, device, device and storage medium for processing short messages.
背景技术Background technique
相关技术通常采用正则表达式的方式来对通知类的短信进行解析和结构化展示。但是正则表达式的方式需要提前为短信配置相应的正则表达式,否则无法对短信进行解析和结构化,具有较强的局限性,另外,正则表达式的方式仅仅是对文本的结构化,结构化效果缺乏趣味性,吸引力较差,不适合营销类和推广拉新类的短信。In the related art, a regular expression is usually used to parse and display a notification-type short message in a structured manner. However, the regular expression method needs to configure the corresponding regular expression for the short message in advance, otherwise the short message cannot be parsed and structured, which has strong limitations. The effect is not interesting and attractive, and it is not suitable for short messages of marketing and promotion.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开实施例提供了一种短信的处理方法、装置、设备及存储介质。In order to solve the above technical problem or at least partially solve the above technical problem, embodiments of the present disclosure provide a method, apparatus, device, and storage medium for processing a short message.
本公开实施例第一方面提供了一种短信的处理方法,该方法包括:获取终端设备接收到的短信;对短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和短信的关键信息;根据短信的短信类型,获取与该短信类型相匹配的富媒体资源;根据获取到的关键信息和富媒体资源生成智能短信。A first aspect of the embodiments of the present disclosure provides a method for processing a short message. The method includes: acquiring a short message received by a terminal device; performing type identification processing and key information extraction processing on the short message to obtain a short message type of the short message and key information of the short message ; According to the short message type of the short message, obtain a rich media resource matching the short message type; generate an intelligent short message according to the obtained key information and rich media resource.
本公开实施例第二方面提供了一种短信处理装置,该装置包括:A second aspect of the embodiments of the present disclosure provides a short message processing device, the device comprising:
第一获取模块,用于获取终端设备接收到的短信。The first acquisition module is used to acquire the short message received by the terminal device.
处理模块,用于对短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和短信的关键信息。The processing module is used to perform type identification processing and key information extraction processing on the short message, and obtain the short message type of the short message and the key information of the short message.
第二获取模块,用于根据短信的短信类型,获取与该短信类型相匹配的富媒体资源。The second obtaining module is configured to obtain rich media resources matching the short message type according to the short message type of the short message.
生成模块,用于根据关键信息和富媒体资源生成智能短信。The generation module is used to generate intelligent short messages based on key information and rich media resources.
本公开实施例第三方面提供了一种终端设备,该终端设备包括:存储器和处理器,其中,存储器中存储有计算机程序,当该计算机程序被处理器执行时,实现上述第一方 面的方法。A third aspect of an embodiment of the present disclosure provides a terminal device, the terminal device includes: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of the first aspect is implemented .
本公开实施例第四方面提供了一种计算机可读存储介质,该存储介质上存储有计算机程序,当该计算机程序被处理器执行时,实现上述第一方面的方法。A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method of the above-mentioned first aspect is implemented.
本公开实施例提供的技术方案与现有技术相比具有如下优点:Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have the following advantages:
本公开实施例,通过在获取到终端设备接收到的短信后,对该短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和关键信息,然后根据识别得到的短信类型,获取与该短信类型相匹配的富媒体资源,根据获取到的关键信息和富媒体资源生成相应的智能短信。由于本实施例可以根据短信的类型在短信的结构化信息(即智能短信)中添加相应的富媒体资源,因而能够提高短信展示的趣味性和吸引力,适用于营销类和推广拉新类的短信。In the embodiment of the present disclosure, after obtaining the short message received by the terminal device, performing type identification processing and key information extraction processing on the short message to obtain the short message type and key information of the short message, and then according to the identified short message type, obtain the short message related to the short message. The rich media resources that match the SMS type will generate corresponding intelligent SMS messages according to the acquired key information and rich media resources. Since this embodiment can add corresponding rich media resources to the structured information (ie, smart short messages) of the short message according to the type of the short message, the interest and attractiveness of the short message display can be improved, and it is suitable for marketing and new promotion. Short message.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the accompanying drawings that are required to be used in the description of the embodiments or the prior art will be briefly introduced below. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.
图1是相关技术提供的一种短信的结构化展示界面示意图;1 is a schematic diagram of a structured display interface of a short message provided by the related art;
图2是本公开实施例提供的一种短信的处理方法的流程示意图;2 is a schematic flowchart of a method for processing a short message provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种短信推送系统的结构示意图;3 is a schematic structural diagram of a short message push system provided by an embodiment of the present disclosure;
图4A是本公开实施例提供的一种营销短信的示意图;4A is a schematic diagram of a marketing short message provided by an embodiment of the present disclosure;
图4B是基于图4A得到的智能短信的示意图;Fig. 4B is the schematic diagram of the intelligent short message obtained based on Fig. 4A;
图5A是相关技术提供的一种通过短信链接打开第三方APP的方法的流程示意图;5A is a schematic flowchart of a method for opening a third-party APP through a short message link provided by the related art;
图5B是本公开实施例提供的一种通过短信链接打开第三APP的方法的流程示意图;5B is a schematic flowchart of a method for opening a third APP through a short message link provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种获取富媒体资源的方法的流程示意图;6 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure;
图7A是本公开实施例提供的一种白名单的示意图;7A is a schematic diagram of a whitelist provided by an embodiment of the present disclosure;
图7B是本公开实施例提供的一种短信类型与富媒体资源之间的映射关系示意图;7B is a schematic diagram of a mapping relationship between a short message type and rich media resources provided by an embodiment of the present disclosure;
图7C是本公开实施例提供的一种短信标识与富媒体资源之间的映射关系示意图;7C is a schematic diagram of a mapping relationship between a short message identifier and a rich media resource provided by an embodiment of the present disclosure;
图8是本公开实施例提供的一种获取富媒体资源的方法的流程示意图;8 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure;
图9是本公开实施例提供的一种短信处理装置的结构示意图;FIG. 9 is a schematic structural diagram of a short message processing apparatus provided by an embodiment of the present disclosure;
图10是本公开实施例提供的一种终端设备的结构示意图。FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments may be combined with each other under the condition of no conflict.
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, and Not all examples.
目前,相关技术一般是通过预设的正则表达式来对通知类短信进行文本的结构化展示,如果短信的内容和结构能够和预设的正则表达式匹配上,则根据正则表达式对应的结构化模板对短信的文本进行结构化,反之,如果短信的内容和结构不能和预设的正则表达式匹配上,则直接对该短信的原始信息进行展示。例如,下面是一条通知类短信的原始信息:At present, the related technology generally uses a preset regular expression to display the text of notification-type short messages in a structured manner. If the content and structure of the short message can match the preset regular expression, the structure corresponding to the regular expression The template is used to structure the text of the short message. On the contrary, if the content and structure of the short message cannot match the preset regular expression, the original information of the short message is directly displayed. For example, here is the raw message of a notification SMS:
“【套餐门限提醒】截至20年5月9日19时24分,您套餐内包含的国内长市漫合一通话时长已使用10分钟,剩余30分钟。以上内容供参考,具体以月结账单为准。如需退订该提醒服务,请发送QXTCMX至1**86。【**移动】。”"[Package threshold reminder] As of 19:24 on May 9th, 2020, the domestic long-term and city-manufacturing call duration included in your package has been used for 10 minutes, and the remaining 30 minutes. The above content is for reference, and the monthly bill is used for details. If you want to unsubscribe from this reminder service, please send QXTCMX to 1**86. [**Mobile].”
在相关技术中,终端设备(比如,手机等具有短信收发功能的设备)在接收到该条短信后,一般先查询该条短信的通道号(比如,1062、1063、1066等以106开头的短信通道等)在本地是否有预置的正则表达式,如果有,并且该条短信的内容和结构与预置的正则表达式匹配,则按照该正则表达式对应的结构化模板对该条短信的文本进行结构化展示,结构化展示界面如图1所示。参见图1,虽然相关技术能够对通知类短信进行结构化展示,但是也仅仅是对短信内容的文本进行结构化展示,展示形式较为呆板、乏味,不适合营销类和推广拉新类的短信使用。并且,这种结构化方式仅适用于提前配置有正则表达式的短信,对于没有提前配置正则表达式的短信则无法使用,具有较强的局限性。In the related art, after receiving the short message, a terminal device (for example, a mobile phone and other device with the function of sending and receiving short messages) generally first queries the channel number of the short message (for example, 1062, 1063, 1066 and other short messages starting with 106) channel, etc.) whether there is a preset regular expression locally, if so, and the content and structure of the short message match the preset regular expression, the text message will be processed according to the structured template corresponding to the regular expression. The text is displayed in a structured manner, and the structured presentation interface is shown in Figure 1. Referring to Figure 1, although the related technology can display the notification text messages in a structured way, it only displays the text of the text messages in a structured manner, and the display form is relatively dull and boring, which is not suitable for the use of short messages for marketing and promotion. . Moreover, this structured method is only applicable to short messages configured with regular expressions in advance, and cannot be used for short messages without regular expressions configured in advance, which has strong limitations.
针对相关技术存在的上述缺陷,本公开实施例提供了一种新的短信处理方案。该方案摒弃了传统的正则表达式方案,创新的采用了自然语言处理算法(该算法可以示例性的理解为搭载在终端设备上的离线算法)对短信的类型和关键信息进行识别和提取,并 根据识别得到的短信类型获得短信对应的富媒体资源,从而根据短信的富媒体资源和关键信息生成相应的智能短息。由于本公开实施例能够根据接收到的短信生成包含富媒体资源的智能短信,并通过智能短信对短信的内容进行展示,因而能够提高短信展示的趣味性和吸引力,适用于对短信展示的趣味性有需求的营销类和推广拉新类短信。并且,本公开实施例采用的自然语言处理方法适用所有的短信,而不像相关技术那样只有配置有正则表达式的短信才能使用,因此,本公开实施例打破了相关技术的局限,具有更高的普适性。In view of the above-mentioned defects in the related art, the embodiments of the present disclosure provide a new short message processing solution. This scheme abandons the traditional regular expression scheme, and innovatively adopts the natural language processing algorithm (this algorithm can be exemplarily understood as an offline algorithm carried on the terminal device) to identify and extract the type and key information of the short message, and A rich media resource corresponding to the short message is obtained according to the identified short message type, so as to generate a corresponding intelligent short message according to the rich media resource and key information of the short message. Since the embodiment of the present disclosure can generate a smart short message including rich media resources according to the received short message, and display the content of the short message through the smart short message, the interest and attractiveness of the short message display can be improved, and it is suitable for the interesting display of the short message. Sexual demand for marketing and promotion of new text messages. In addition, the natural language processing method adopted by the embodiments of the present disclosure is applicable to all short messages, unlike the related art, only short messages configured with regular expressions can be used. Therefore, the embodiments of the present disclosure break the limitations of the related technologies and have higher universality.
下面结合示例性的实施例对本公开实施例的方案进行说明。The solutions of the embodiments of the present disclosure will be described below with reference to the exemplary embodiments.
图2是本公开实施例提供的一种短信的处理方法的流程示意图,该方法可以由一种终端设备来执行,该终端设备在本实施例中可以被示例性的具体为手机等具有短信收发功能和信息处理能力的设备。如图2所示,本实施例提供的方法包括如下步骤:FIG. 2 is a schematic flowchart of a method for processing a short message provided by an embodiment of the present disclosure. The method can be executed by a terminal device. In this embodiment, the terminal device can be exemplified as a mobile phone or the like, which has the ability to send and receive short messages. functions and information processing capabilities of the device. As shown in Figure 2, the method provided by this embodiment includes the following steps:
步骤201、获取终端设备接收到的短信。Step 201: Acquire the short message received by the terminal device.
步骤202、对短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和短信的关键信息。Step 202: Perform type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message.
步骤203、根据短信的短信类型,获取与该短信类型相匹配的富媒体资源。Step 203: Acquire a rich media resource matching the short message type according to the short message type of the short message.
步骤204、根据获取到的富媒体资源和短信的关键信息生成智能短信。Step 204: Generate an intelligent short message according to the acquired rich media resources and key information of the short message.
示例的,图3是本公开实施例提供的一种短信推送系统的结构示意图,如图3所示,该短信推送系统包括云端的资源配置服务器10、用户端的终端设备11和富媒体资源配置端(可示例性的理解为商家或者运营商等有短信推送需求的主体,为了方便描述以下将富媒体资源配置端简称为配置端)的计算机设备12。其中,计算机设备12用于与资源配置服务器10进行数据交互,将配置端配置的预设信息发送到资源配置服务器10上进行存储,并向终端设备10推送短信,该短信至少可以是如下短信中的一种:营销类的短信、通知类的短信和推广拉新类的短信。预设信息中可以包括配置端为各类短信(比如,营销类、通知类以及推广拉新类的短信)配置的可以在某个时间段内使用的富媒体资源(比如,图片、动画、音频、视频中的至少一种),也就是说,在本实施例所称的预设信息中可以包括短信类型与富媒体资源之间的映射关系。资源配置服务器10用于将计算机设备12发送的预设信息存储到本地的存储设备上,并将该预设信息同步给终端设备11。终端设备11用于接收计算机设备12发送的短信,并根据短信的短信类型从预设信息中获取配置端为该短信配置的富媒体资源,根据短信的富媒体资源和关键信息生成相应的智能短信。By way of example, FIG. 3 is a schematic structural diagram of a short message push system provided by an embodiment of the present disclosure. As shown in FIG. 3 , the short message push system includes a resource configuration server 10 on the cloud, a terminal device 11 on the client side, and a rich media resource configuration terminal. (It can be exemplarily understood as a business or an operator who has a demand for SMS push, and for the convenience of description, the rich media resource configuration end is hereinafter referred to as the configuration end for short) of the computer device 12 . The computer device 12 is used for data interaction with the resource configuration server 10, sending preset information configured by the configuration terminal to the resource configuration server 10 for storage, and pushing a short message to the terminal device 10, and the short message can be at least one of the following short messages One of the types: marketing SMS, notification SMS and promotion promotion SMS. The preset information may include rich media resources (for example, pictures, animations, audios) configured by the configuration terminal for various types of short messages (for example, short messages for marketing, notification, and promotion and new promotion) that can be used within a certain period of time. , at least one of video), that is to say, the preset information referred to in this embodiment may include a mapping relationship between short message types and rich media resources. The resource configuration server 10 is configured to store the preset information sent by the computer device 12 on a local storage device, and synchronize the preset information to the terminal device 11 . The terminal device 11 is used to receive the short message sent by the computer device 12, obtain the rich media resource configured for the short message by the configuration terminal from the preset information according to the short message type of the short message, and generate the corresponding intelligent short message according to the rich media resource and key information of the short message .
具体的,终端设备11中可以装配软件开发工具包(Software Development Kit,简称SDK),终端设备11通过SDK预先从资源配置服务器10中获得配置端配置的预设信息。其中,终端设备11获得预设信息的方式至少包括如下几种:Specifically, the terminal device 11 may be equipped with a software development kit (Software Development Kit, SDK for short), and the terminal device 11 obtains preset information of the configuration terminal configuration from the resource configuration server 10 in advance through the SDK. The manner in which the terminal device 11 obtains the preset information at least includes the following:
第一种方式,终端设备11通过SDK周期性的向资源配置服务器10发送获取请求,资源配置服务器10根据获取请求将本地存储的预设信息发送给终端设备11。In the first manner, the terminal device 11 periodically sends an acquisition request to the resource configuration server 10 through the SDK, and the resource configuration server 10 sends the locally stored preset information to the terminal device 11 according to the acquisition request.
第二种方式,资源配置服务器10周期性的向终端设备11推送配置端配置的所有预设信息,终端设备11通过SDK接收并存储资源配置服务器10推送的预设信息。In the second manner, the resource configuration server 10 periodically pushes all the preset information configured by the configuration terminal to the terminal device 11, and the terminal device 11 receives and stores the preset information pushed by the resource configuration server 10 through the SDK.
第三种方式,资源配置服务器10在接收到计算机设备12发送的最新的预设信息后,以更新补丁的方式将最新的预设信息发送给终端设备11,终端设备11基于SDK从更新补丁中获得并存储最新的预设信息。In the third way, after receiving the latest preset information sent by the computer device 12, the resource configuration server 10 sends the latest preset information to the terminal device 11 in the form of an update patch, and the terminal device 11 downloads the updated patch based on the SDK. Obtain and store the latest preset information.
终端设备11在接收到计算机设备12推送的短信之后,采用预设的自然语言处理算法或模型对短信进行类型识别处理和关键信息提取处理。其中,在基于自然语言处理模型对短信的类型和关键信息进行识别和提取时,其执行方式至少可以包括如下几种:After receiving the short message pushed by the computer device 12, the terminal device 11 uses a preset natural language processing algorithm or model to perform type identification processing and key information extraction processing on the short message. Among them, when the type and key information of the short message are identified and extracted based on the natural language processing model, the execution methods can at least include the following:
在一种执行方式中,可以预先训练一个自然语言处理模型,使得该模型至少包括两个部分,其中一个部分用于识别短信的类型,另一部分用于基于识别得到的短信类型提取相应的关键信息。终端设备11在接收到计算机设备12推送的短信后,通过SDK调用自然语言处理模型,将接收到的短信作为模型的输入,由模型输出得到短信的类型和关键信息。In an implementation manner, a natural language processing model can be pre-trained, so that the model includes at least two parts, one part is used to identify the type of the short message, and the other part is used to extract the corresponding key information based on the identified short message type . After receiving the short message pushed by the computer device 12, the terminal device 11 calls the natural language processing model through the SDK, takes the received short message as the input of the model, and obtains the type and key information of the short message from the model output.
在另一种执行方式中,也可以分别训练两个自然语言处理模型,其中一个自然语言处理模型(以下简称第一模型)用于识别短信的类型,另一个自然语言处理模型(以下简称第二模型)用于提取短信的关键信息。终端设备11在接收到计算机设备12推送的短信后通过SDK调用第一模型和第二模型,将短信分别输入第一模型和第二模型,通过第一模型输出得到短信的类型,通过第二模型输出得到短信的关键信息。或者在另一种情况中,第一模型的输入仍旧可以为终端设备11接收到的短信,但是第二模型的输入变成终端设备11接收到的短信和第一模型输出的短信类型,在这种情况下,第二模型被训练为提取与短信类型相关联的关键信息。比如,针对营销类的短息可以从短信中提取诸如短信标题、正文、签名和链接等信息作为关键信息。当然这里仅为示例说明并不是对本公开的唯一限定,实际上,短信的类型与短信的关键信息之间的关联关系可以根据需要进行设定,这种关联关系可以通过模型训练方法映射到模型上,使得模型具备相应的关键信息提取能力。In another implementation manner, two natural language processing models may also be trained separately, wherein one natural language processing model (hereinafter referred to as the first model) is used to identify the type of short messages, and the other natural language processing model (hereinafter referred to as the second model) model) is used to extract the key information of SMS. After receiving the short message pushed by the computer device 12, the terminal device 11 calls the first model and the second model through the SDK, inputs the short message into the first model and the second model respectively, outputs the type of the short message through the first model, and obtains the type of the short message through the second model. Output the key information of the SMS. Or in another case, the input of the first model can still be the short message received by the terminal device 11, but the input of the second model becomes the short message received by the terminal device 11 and the type of the short message output by the first model. In this case, the second model is trained to extract key information associated with the SMS type. For example, for marketing SMS, information such as SMS title, body, signature and link can be extracted from the SMS as key information. Of course, this is only an example and is not the only limitation of the present disclosure. In fact, the relationship between the type of the short message and the key information of the short message can be set as required, and this relationship can be mapped to the model through the model training method , so that the model has the corresponding key information extraction ability.
在一个示例中,为了提高信息的安全性,在获取到短信的关键信息之后,还可以将关键信息中的链接与预设的链接黑名单进行比对,当链接在黑名单中时,将该链接从关键信息中删除,以防止用户进入不安全的网页,保证用户的数据安全。In an example, in order to improve the security of information, after the key information of the short message is obtained, the link in the key information can also be compared with the preset link blacklist, and when the link is in the blacklist, the Links are removed from critical information to prevent users from entering unsafe web pages and keep users' data safe.
进一步地,在得到短信的短信类型和关键信息之后,终端设备11通过SDK查询本地存储的预设信息,根据短信的通道号、链接、短信签名或者其他能够对应到发送该短信的配置端的信息,从预设信息中查找得到该配置端为该类短信配置的富媒体资源,然后将短信的关键信息和查找得到的富媒体资源添加到预设模板的相应位置上生成得到相应的智能短信。比如,图4A是本公开实施例提供的一种营销短信的示意图,图4B是基于图4A得到的智能短信的示意图。如图4A所示,图中“**松鼠”是短信签名,这里用于表示品牌名称,在其他实施方式中短信签名还可以用于表示商家名称、店铺名称,运营商名称等。“c.tb.cn/c.KOz8”为商家店铺的短链接。“**松鼠”和“c.tb.cn/c.KOz8”之间的部分为营销内容。将图4A的短信输入预设的自然语言处理模型后,模型输出的短信类型为营销类型,模型输出的关键信息示例性的可以包括三部分,分别为:从营销内容中提取得到的内容标题、内容正文和链接。假设品牌“**松鼠”的配置端为营销类短信配置的富媒体资源为图4B中的营销图,则将提取到的关键信息和营销图按照预设模板进行排版即可得到图4B所示的智能短信。其中,图4B中的“立即抢购”按键与短链接“c.tb.cn/c.KOz8”关联,当用户点击“立即抢购”按键时,终端设备11自动执行短链接“c.tb.cn/c.KOz8”,得到该短链接对应的原始链接,通过将短链接的原始链接和该短链接指向的应用程序(Application,简称APP)的链接的前缀进行拼接得到“**松鼠”店铺在该APP中的深度链接,从而通过深度链接即可直接在该APP中打开“**松鼠”店铺的页面。也就是说,本实施例可以将原始短信中的链接与智能短信中的预设区域(比如,预设按钮或富媒体资源所在的区域)进行关联,当用户在预设区域执行点击操作时,默认执行与该预设区域关联的短链接,获得短链接对应的原始链接,然后根据原始链接,生成第三方应用程序界面的深度链接(即Deep Link),基于深度链接直接打开第三方应用程序界面。Further, after obtaining the short message type and key information of the short message, the terminal device 11 queries the locally stored preset information through the SDK, and according to the channel number, link, short message signature or other information that can correspond to the configuration terminal that sends the short message, The rich media resources configured by the configuration terminal for this type of short message are obtained from the preset information, and then the key information of the short message and the rich media resources obtained by searching are added to the corresponding position of the preset template to generate the corresponding intelligent short message. For example, FIG. 4A is a schematic diagram of a marketing short message provided by an embodiment of the present disclosure, and FIG. 4B is a schematic diagram of a smart short message obtained based on FIG. 4A . As shown in FIG. 4A , the “** squirrel” in the figure is a short message signature, which is used here to indicate a brand name. In other embodiments, the short message signature can also be used to indicate a business name, a store name, an operator name, and the like. "c.tb.cn/c.KOz8" is the short link of the merchant's store. The part between "**squirrel" and "c.tb.cn/c.KOz8" is marketing content. After inputting the short message of FIG. 4A into the preset natural language processing model, the type of the short message output by the model is a marketing type, and the key information output by the model can exemplarily include three parts, namely: the content title extracted from the marketing content, Content body and links. Assuming that the configuration terminal of the brand "**Squirrel" configures the rich media resource configured for marketing SMS is the marketing diagram in Figure 4B, then the key information and marketing diagram extracted are typeset according to the preset template, and the figure shown in Figure 4B can be obtained. Smart SMS. Among them, the "Buy Now" button in Fig. 4B is associated with the short link "c.tb.cn/c.KOz8". When the user clicks the "Buy Now" button, the terminal device 11 automatically executes the short link "c.tb.cn" /c.KOz8" to get the original link corresponding to the short link, and by splicing the original link of the short link and the prefix of the link of the application (Application, referred to as APP) pointed to by the short link, the "**squirrel" store is in The deep link in the APP, so that the page of the "**Squirrel" store can be directly opened in the APP through the deep link. That is to say, in this embodiment, the link in the original short message can be associated with a preset area in the smart short message (for example, the area where the preset button or the rich media resource is located), and when the user performs a click operation in the preset area, By default, the short link associated with the preset area is executed, the original link corresponding to the short link is obtained, and then a deep link (ie Deep Link) of the third-party application interface is generated according to the original link, and the third-party application interface is directly opened based on the deep link. .
示例的,图5A是相关技术提供的一种通过短信链接打开第三方APP的方法的流程示意图,图5B是本公开实施例提供的一种通过短信链接打开第三APP的方法的流程示意图,如图5A和图5B所示,相关技术需要根据短信中的链接打开浏览器对应的H5页面,在H5页面中提醒用户是否允许打开第三方的应用程序,只有用户在H5页面中点击“允许”按钮后才能打开第三方的APP,整个打开过程操作繁琐复杂,而在本公开实施例提供的 方法中,通过将短信中的短链接与智能短信中富媒体资源所在的区域或者预设按钮进行关联,不但能够将短链接隐藏起来,提高智能短信显示界面的简洁性,还能够在用户点击该区域时直接解析获得短链接的原始链接,并根据原始链接生成相应的Deep Link,从而根据Deep Link就可以直接打开第三方APP,而不需要通过浏览器中转,因而相较于相关技术,本公开实施例提供的方法操作更简单,用户体验更好。当然上述仅是应用程序界面打开方式的一个示例,但并不是全部方式,实际上,在其他实施方式中,也可以预先在预设信息中对短链接对应的深度链接进行配置,当短链接被执行时,可以直接从预设信息中获取短链接对应的深度链接,从而根据深度链接直接打开相应的应用程序界面。Exemplarily, FIG. 5A is a schematic flowchart of a method for opening a third-party APP via a short message link provided by the related art, and FIG. 5B is a schematic flowchart of a method for opening a third APP via a short message link provided by an embodiment of the present disclosure. As shown in FIG. 5A and FIG. 5B , the related art needs to open the H5 page corresponding to the browser according to the link in the short message, remind the user whether to allow the opening of a third-party application program in the H5 page, and only the user clicks the "Allow" button in the H5 page Only then can the third-party APP be opened, and the entire opening process is cumbersome and complicated. In the method provided by the embodiment of the present disclosure, by associating the short link in the short message with the area or preset button where the rich media resource in the smart short message is located, not only the It can hide the short link, improve the simplicity of the smart message display interface, and can directly parse the original link of the short link when the user clicks on the area, and generate the corresponding Deep Link according to the original link, so that according to the Deep Link, you can directly Opening a third-party APP does not need to be relayed through a browser. Therefore, compared with related technologies, the method provided by the embodiment of the present disclosure has simpler operation and better user experience. Of course, the above is only an example of the way of opening the application program interface, but it is not all ways. In fact, in other implementations, the deep link corresponding to the short link can also be configured in the preset information in advance. During execution, the deep link corresponding to the short link can be directly obtained from the preset information, so that the corresponding application program interface can be directly opened according to the deep link.
本实施例,创新的采用自然语言处理方法对短信的类型和关键信息进行识别和提取,并根据识别得到的短信类型获取短信对应的富媒体资源,进而根据获取到的富媒体资源和关键信息生成相应的智能短息。由于本实施例可以根据短信的类型在短信的结构化信息中添加相应的富媒体资源,因而能够提高短信展示的趣味性和吸引力,适用于营销类和推广拉新类的短信。并且,本实施例采用的自然语言处理方法适用所有的短信,而不像相关技术那样只有配置有正则表达式的短信才能使用,因此,本公开实施例提供的方案打破了相关技术的局限,具有更高的普适性。In this embodiment, the natural language processing method is innovatively used to identify and extract the type and key information of the short message, and according to the identified short message type, the rich media resources corresponding to the short message are obtained, and then the generated rich media resources and key information are generated according to the obtained rich media resources and key information. Corresponding smart short messages. Since this embodiment can add corresponding rich media resources to the structured information of the short message according to the type of the short message, the interest and attractiveness of the short message display can be improved, and it is suitable for short messages of marketing and promotion. In addition, the natural language processing method adopted in this embodiment is applicable to all short messages, unlike the related art, only short messages configured with regular expressions can be used. higher universality.
图6是本公开实施例提供的一种获取富媒体资源的方法的流程示意图。在图6所示的实施例中,终端设备接收到的短信中包括短信签名。如图6所示,该方法包括:FIG. 6 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure. In the embodiment shown in FIG. 6 , the short message received by the terminal device includes the short message signature. As shown in Figure 6, the method includes:
步骤601、从预先得到的预设信息中,获得与短信签名对应的配置信息,预设信息中包括短信签名与配置信息之间的映射关系。Step 601: Obtain configuration information corresponding to the short message signature from pre-obtained preset information, where the preset information includes a mapping relationship between the short message signature and the configuration information.
步骤602、根据短信的短信类型,从配置信息中查找与该短信类型相匹配的富媒体资源,配置信息中包括短信类型与富媒体资源之间的映射关系。 Step 602 , according to the short message type of the short message, search for a rich media resource matching the short message type from the configuration information, where the configuration information includes the mapping relationship between the short message type and the rich media resource.
参见图3,资源配置服务器10向终端设备11推送的预设信息中可以包括短信签名列表以及该短信签名列表中各短信签名对应的配置信息。其中,短信签名列表中包括已签约的并且已经提交预设信息的配置端的短信签名。每个短信签名对应的配置信息中可以包括一个或者多个短信类型,每个短信类型可以对应一个或多个富媒体资源。配置端在为某个类型的短信配置富媒体资源时,可以配置一个通用资源,该通用资源可以被该类型中的所有短信使用,同时,配置端也可以为不同短信设置不同的富媒体资源,使得不同短信使用不同的富媒体资源,从而实现短信的差异化,提高用户体验。Referring to FIG. 3 , the preset information pushed by the resource configuration server 10 to the terminal device 11 may include a short message signature list and configuration information corresponding to each short message signature in the short message signature list. The short message signature list includes the short message signatures of the configuration terminal that has signed a contract and has submitted preset information. The configuration information corresponding to each short message signature may include one or more short message types, and each short message type may correspond to one or more rich media resources. When configuring rich media resources for a certain type of short message, the configuration terminal can configure a general resource, which can be used by all short messages in this type. At the same time, the configuration terminal can also set different rich media resources for different short messages. Different short messages use different rich media resources, thereby realizing the differentiation of short messages and improving user experience.
示例的,在本实施例中,不同短信与富媒体资源之间的对应关系,在配置信息中可 以被示例性的表示为短信标识与富媒体资源之间的映射关系,其中,短信标识在本实施例中至少可以被具体为如下中的一种:短信标签、短信标签的哈希值、短信中的链接、短信中链接的哈希值、基于短信所有内容计算得到的哈希值。Exemplarily, in this embodiment, the correspondence between different short messages and rich media resources may be exemplarily represented in the configuration information as a mapping relationship between short message identifiers and rich media resources, where the short message identifiers are listed in this document. The embodiment may be at least one of the following: a short message label, a hash value of the short message label, a link in a short message, a hash value of a link in a short message, and a hash value calculated based on all contents of the short message.
以短信标签的哈希值为例,示例的,图7A是本公开实施例提供的一种白名单的示意图,图7B是本公开实施例提供的一种短信类型与富媒体资源之间的映射关系示意图,图7C是本公开实施例提供的一种短信标识与富媒体资源之间的映射关系示意图,如图7A-图7C所示,当终端设备11接收到计算机设备12推送的短信后,首先从短信中提取短信签名L,并判断短信签名L是否在图7A所示的白名单中,假设短信签名L与白名单中的签名2一致,则根据短信签名从本地存储的预设信息中提取获得与该短信签名L对应的配置信息,并将短信输入预设的自然语言处理模型得到短信的短信类型M和关键信息,并根据短信类型M从配置信息中查找获得短信类型M与富媒体资源之间的映射关系,短信类型M与富媒体资源之间的映射关系如图7B所示,此时查找到的富媒体资源可能有多个。然后通过预设算法计算短信签名L对应的哈希值H,并将短信签名的哈希值H作为短信的标识,根据短信的标识在多个富媒体资源中查找到与该标识对应的富媒体资源,该富媒体资源即为配置端为该短信配置的富媒体资源。当然这里仅为示例说明,并不是对本公开的唯一限定。Taking the hash value of the short message tag as an example, FIG. 7A is a schematic diagram of a whitelist provided by an embodiment of the present disclosure, and FIG. 7B is a mapping between a short message type and a rich media resource provided by an embodiment of the present disclosure. Figure 7C is a schematic diagram of a mapping relationship between a short message identifier and rich media resources provided by an embodiment of the present disclosure. As shown in Figures 7A-7C, when the terminal device 11 receives the short message pushed by the computer device 12, First, extract the short message signature L from the short message, and judge whether the short message signature L is in the white list shown in FIG. 7A . Assuming that the short message signature L is consistent with the signature 2 in the white list, then according to the short message signature from the locally stored preset information Extract and obtain the configuration information corresponding to the short message signature L, input the short message into the preset natural language processing model to obtain the short message type M and key information of the short message, and find the short message type M and rich media from the configuration information according to the short message type M The mapping relationship between resources, the mapping relationship between the short message type M and the rich media resources is shown in FIG. 7B , and there may be multiple rich media resources found at this time. Then, the hash value H corresponding to the short message signature L is calculated by a preset algorithm, and the hash value H of the short message signature is used as the identifier of the short message, and the rich media corresponding to the identifier is found in multiple rich media resources according to the identifier of the short message. resource, the rich media resource is the rich media resource configured by the configuration terminal for the short message. Of course, this is just an example, not the only limitation of the present disclosure.
本实施例通过为同一类型的不同短信配置不同的富媒体资源能够实现不同短信的差异化展示,提高用户视觉体验。在此基础上,通过建立短信标识与相应富媒题资源之间的映射关系,能够提高富媒体资源的获取效率和准确性,加快智能短信的生成速度。In this embodiment, by configuring different rich media resources for different short messages of the same type, differentiated display of different short messages can be realized, and the user's visual experience can be improved. On this basis, by establishing the mapping relationship between the short message identifier and the corresponding rich media question resources, the acquisition efficiency and accuracy of the rich media resources can be improved, and the generation speed of the intelligent short message can be accelerated.
图8是本公开实施例提供的一种获取富媒体资源的方法的流程示意图。在图8实施例中,终端设备接收到的短信中可以不包括短信签名。如图8所示,该方法包括如下步骤:FIG. 8 is a schematic flowchart of a method for acquiring rich media resources provided by an embodiment of the present disclosure. In the embodiment of FIG. 8, the short message received by the terminal device may not include the short message signature. As shown in Figure 8, the method includes the following steps:
步骤801、从预先得到的预设信息中查找得到与短信的短信类型对应的多个富媒体资源,预设信息中包括短信类型与富媒体资源之间的映射关系。Step 801: Search and obtain a plurality of rich media resources corresponding to the short message type of the short message from pre-obtained preset information, where the preset information includes a mapping relationship between the short message type and the rich media resources.
步骤802、基于预设算法,计算得到短信的标识。 Step 802, based on a preset algorithm, calculate and obtain the identifier of the short message.
步骤803、从查找得到的多个富媒体资源中获得与短信的标识对应的富媒体资源。Step 803: Obtain a rich media resource corresponding to the identifier of the short message from the multiple rich media resources obtained by searching.
示例的,在本实施例中,不同配置端为同一类型的短信配置的富媒体资源可以示例性的存储在同一存储区域。在识别得到短信的短信类型后,可以先从该种短信类型对应的存储区域中查找得到该种短信类型对应的所有富媒体资源,然后再根据计算得到的短信标识,从这些富媒体资源中确定出与该短信标识对的富媒体资源。其中短信标识的计 算方法可以根据需要进行设定,例如,在一种可能的实施方式中,可以对短信中的链接进行哈希值计算,得到短信链接对应的哈希值,并将短信链接的哈希值作为短信的标识,从而根据短信的标识,即可从多个富媒体资源中确定出与该标识对应的富媒体资源,该富媒体资源即为与该短信类型相匹配的富媒体资源。当然这里仅为示例说明而不是对短信标识计算方法的唯一限定。Illustratively, in this embodiment, the rich media resources configured for the same type of short message by different configuration terminals may be exemplarily stored in the same storage area. After identifying the short message type of the short message, you can first search for all the rich media resources corresponding to the short message type from the storage area corresponding to the short message type, and then determine from these rich media resources according to the calculated short message identifier. Output the rich media resource paired with the SMS ID. The calculation method of the short message identifier can be set as required. For example, in a possible implementation manner, the hash value of the link in the short message can be calculated to obtain the hash value corresponding to the short message link, and the link of the short message can be calculated by hash value. The hash value is used as the identifier of the short message, so that according to the identifier of the short message, the rich media resource corresponding to the identifier can be determined from multiple rich media resources, and the rich media resource is the rich media resource matching the type of the short message . Of course, this is only an example description rather than a unique limitation on the calculation method of the short message identifier.
本实施例不需要在短信中携带短信签名,也能够根据短信的短信类型,从该短信类型对应的多个富媒体资源中确定出短信对应的富媒体资源,不但能够满足不同短信在显示方面的差异化需求,同时还能够提高富媒体资源的获取效率和准确性,加快智能短信的生成速度。This embodiment does not need to carry a short message signature in the short message, and can also determine the rich media resource corresponding to the short message from the multiple rich media resources corresponding to the short message type according to the short message type of the short message, which can not only satisfy the display requirements of different short messages It can also improve the acquisition efficiency and accuracy of rich media resources, and speed up the generation of intelligent short messages.
图9是本公开实施例提供的一种短信展示装置的结构示意图,该装置可以被具体为上述实施例中的终端设备,或者该终端设备的部分功能模块,该装置可以搭载SDK。如图9所示,短信展示装置90,包括:FIG. 9 is a schematic structural diagram of a short message display device provided by an embodiment of the present disclosure. The device may be embodied as the terminal device in the above-mentioned embodiment, or a part of functional modules of the terminal device, and the device may be equipped with an SDK. As shown in FIG. 9, the short message display device 90 includes:
第一获取模块91,用于获取终端设备接收到的短信;The first obtaining module 91 is used to obtain the short message received by the terminal device;
处理模块92,用于对短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和短信的关键信息。The processing module 92 is configured to perform type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message.
第二获取模块93,用于根据短信的短信类型,获取与短信类型相匹配的富媒体资源。The second obtaining module 93 is configured to obtain rich media resources matching the short message type according to the short message type of the short message.
生成模块94,用于根据关键信息和富媒体资源生成智能短信。The generating module 94 is configured to generate intelligent short messages according to key information and rich media resources.
在一种实施方式中,处理模块92,用于:In one embodiment, the processing module 92 is used to:
基于预设的自然语言处理模型对短信进行类型识别处理和关键信息提取处理,得到短信的短信类型和短信的关键信息。Based on the preset natural language processing model, type identification processing and key information extraction processing are performed on the short message, and the short message type of the short message and the key information of the short message are obtained.
在一种实施方式中,短信中包括短信签名;第二获取模块93,包括:In one embodiment, the short message includes a short message signature; the second acquisition module 93 includes:
第一查找单元,用于从预设信息中,获得与短信签名对应的配置信息,预设信息中包括短信签名与配置信息之间的映射关系。The first search unit is configured to obtain configuration information corresponding to the short message signature from preset information, where the preset information includes a mapping relationship between the short message signature and the configuration information.
第二查找单元,用于根据短信的短信类型,从配置信息中查找与该短信类型相匹配的富媒体资源,配置信息中包括短信类型与富媒体资源之间的映射关系。The second search unit is configured to search for the rich media resource matching the short message type from the configuration information according to the short message type of the short message, and the configuration information includes the mapping relationship between the short message type and the rich media resource.
在一种实施方式中,第二查找单元,用于:In one embodiment, the second search unit is used to:
基于预设算法,计算得到短信的标识;从配置信息中获得短信类型对应的多个富媒体资源;在这些富媒体资源中获得与该标识对应的富媒体资源。Based on a preset algorithm, the identifier of the short message is obtained by calculation; a plurality of rich media resources corresponding to the short message type are obtained from the configuration information; the rich media resources corresponding to the identifier are obtained from the rich media resources.
在一种实施方式中,装置90还可以包括:In one embodiment, the apparatus 90 may further include:
第一判断模块,用于判断短信的短信签名是否在预设的白名单中。The first judging module is used for judging whether the short message signature of the short message is in the preset white list.
处理模块,用于在短信签名在白名单中时,执行对短信进行类型识别处理和关键信息提取处理的步骤。The processing module is configured to perform the steps of type identification processing and key information extraction processing for the short message when the short message signature is in the white list.
在一种实施方式中,第二获取模块93,包括:In one embodiment, the second obtaining module 93 includes:
第三查找单元,用于从预设信息中得到与短信的短信类型对应的多个富媒体资源,预设信息中包括短信类型与富媒体资源之间的映射关系。The third search unit is configured to obtain a plurality of rich media resources corresponding to the short message type of the short message from the preset information, where the preset information includes the mapping relationship between the short message type and the rich media resources.
计算单元,用于基于预设算法,计算得到短信的标识。The calculation unit is used for calculating the identification of the short message based on the preset algorithm.
第四查找单元,用于从得到的多个富媒体资源中获得与该标识对应的富媒体资源。The fourth searching unit is configured to obtain the rich media resource corresponding to the identifier from the obtained multiple rich media resources.
在一种实施方式中,计算单元,用于计算短信的哈希值,将短信的哈希值作为短信的标识。In one embodiment, the computing unit is configured to calculate the hash value of the short message, and use the hash value of the short message as the identifier of the short message.
在一种实施方式中,短信的关键信息包括短信中的链接。In one embodiment, the key information of the short message includes a link in the short message.
生成模块94,用于将短信中的链接与智能短信上的预设区域进行关联,以使链接对应的应用程序界面在预设区域被执行点击操作时打开。The generating module 94 is configured to associate the link in the short message with the preset area on the smart short message, so that the application program interface corresponding to the link is opened when the preset area is clicked.
在一种实施方式中,短信中的链接为短链接,装置90还包括:In one embodiment, the link in the short message is a short link, and the device 90 further includes:
第三获取模块,用于在检测到预设区域被执行点击操作时,获取短链接对应的原始链接。The third obtaining module is configured to obtain the original link corresponding to the short link when it is detected that the preset area is clicked.
链接处理模块,用于基于原始链接,生成应用程序界面的深度链接。The link processing module is used to generate the deep link of the application interface based on the original link.
执行模块,用于根据深度链接打开应用程序界面。The execution module is used to open the application interface according to the deep link.
在一种实施方式中,装置90还包括:In one embodiment, the apparatus 90 further includes:
比对模块,用于将提取到的关键信息中的链接与预设的链接黑名单进行比对。The comparison module is used to compare the links in the extracted key information with the preset link blacklist.
删除模块,用于当短信中的链接在链接黑名单中时,将链接从关键信息中删除。The delete module is used to delete the link from the key message when the link in the SMS is in the link blacklist.
本实施例提供的装置能够执行上述任一方法实施例的方法,其执行方式和有益效果类似,在这里不再赘述。The apparatus provided in this embodiment can execute the method of any of the foregoing method embodiments, and the execution manner and beneficial effects thereof are similar, and details are not described herein again.
图10是本公开实施例提供的一种终端设备的结构示意图,该终端设备可以被理解为上述实施例中的终端设备。如图10所示,终端设备100包括:存储器110和处理器120,其中,存储器110中存储有计算机程序,当该计算机程序被处理器120执行时,可以实现上述任一方法实施例的方法,其执行方式和有益效果类似,在这里不再赘述。FIG. 10 is a schematic structural diagram of a terminal device provided by an embodiment of the present disclosure, and the terminal device may be understood as the terminal device in the foregoing embodiment. As shown in FIG. 10 , the terminal device 100 includes: a memory 110 and a processor 120, wherein the memory 110 stores a computer program, and when the computer program is executed by the processor 120, the method of any of the above method embodiments can be implemented, The implementation manner and beneficial effects thereof are similar, and will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,该存储介质上存储有计算机程序,当该计算机程序被处理器执行时,可以实现上述任一方法实施例的方法,其执行方式和有益效果类似,在这里不再赘述。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the storage medium. When the computer program is executed by a processor, the method of any of the foregoing method embodiments, its execution mode and beneficial effects can be implemented. similar, and will not be repeated here.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将 一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not to be limited to the embodiments described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

  1. 一种短信的处理方法,其特征在于,包括:A method for processing short messages, comprising:
    获取终端设备接收到的短信;Get the short message received by the terminal device;
    对所述短信进行类型识别处理和关键信息提取处理,得到所述短信的短信类型和所述短信的关键信息;Perform type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message;
    根据所述短信的短信类型,获取与所述短信类型相匹配的富媒体资源;Acquire rich media resources matching the short message type according to the short message type of the short message;
    根据所述关键信息和所述富媒体资源生成智能短信。An intelligent short message is generated according to the key information and the rich media resource.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述短信进行类型识别处理和关键信息提取处理,得到所述短信的短信类型和所述短信的关键信息,包括:The method according to claim 1, characterized in that, performing type identification processing and key information extraction processing on the short message to obtain the short message type of the short message and the key information of the short message, comprising:
    基于预设的自然语言处理模型对所述短信进行类型识别处理和关键信息提取处理,得到所述短信的短信类型和所述短信的关键信息。Based on a preset natural language processing model, type identification processing and key information extraction processing are performed on the short message, and the short message type of the short message and the key information of the short message are obtained.
  3. 根据权利要求1所述的方法,其特征在于,所述短信中包括短信签名;The method according to claim 1, wherein the short message includes a short message signature;
    所述根据所述短信的短信类型,获取与所述短信类型相匹配的富媒体资源,包括:The obtaining, according to the short message type of the short message, rich media resources matching the short message type, including:
    从预设信息中,获得与所述短信签名对应的配置信息,所述预设信息中包括短信签名与配置信息之间的映射关系;obtaining configuration information corresponding to the short message signature from preset information, where the preset information includes a mapping relationship between the short message signature and the configuration information;
    根据所述短信的短信类型,从所述配置信息中查找与所述短信类型相匹配的富媒体资源,所述配置信息中包括短信类型与富媒体资源之间的映射关系。According to the short message type of the short message, a rich media resource matching the short message type is searched from the configuration information, where the configuration information includes a mapping relationship between the short message type and the rich media resource.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述的短信类型,从所述配置信息中查找与所述短信类型相匹配的富媒体资源,包括:The method according to claim 3, wherein, according to the short message type, searching for rich media resources matching the short message type from the configuration information comprises:
    基于预设算法,计算得到所述短信的标识;Based on a preset algorithm, the identification of the short message is obtained by calculation;
    从所述配置信息中获得所述短信类型对应的多个富媒体资源;obtaining multiple rich media resources corresponding to the short message type from the configuration information;
    在所述多个富媒体资源中获得与所述标识对应的富媒体资源。Obtain a rich media resource corresponding to the identifier from among the plurality of rich media resources.
  5. 根据权利要求3或4所述的方法,其特征在于,所述获取终端设备接收到的短信之后,所述方法还包括:The method according to claim 3 or 4, wherein after acquiring the short message received by the terminal device, the method further comprises:
    判断所述短信的短信签名是否在预设的白名单中;Determine whether the short message signature of the short message is in the preset white list;
    若所述短信签名在所述白名单中,则执行所述对所述短信进行类型识别处理和关键信息提取处理的步骤。If the short message signature is in the white list, the steps of performing type identification processing and key information extraction processing on the short message are performed.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述短信的短信类型,获取与所述短信类型相匹配的富媒体资源,包括:The method according to claim 1, wherein the acquiring rich media resources matching the short message type according to the short message type of the short message comprises:
    从预设信息中得到所述短信类型对应的多个富媒体资源,所述预设信息中包括短信 类型与富媒体资源之间的映射关系;Obtain multiple rich media resources corresponding to the short message type from preset information, and the preset information includes the mapping relationship between the short message type and rich media resources;
    基于预设算法,计算得到所述短信的标识;Based on a preset algorithm, the identification of the short message is obtained by calculation;
    从所述多个富媒体资源中获得与所述标识对应的富媒体资源。A rich media resource corresponding to the identifier is obtained from the plurality of rich media resources.
  7. 根据权利要求4或6所述的方法,其特征在于,所述基于预设算法,计算得到所述短信的标识,包括:The method according to claim 4 or 6, characterized in that, calculating the identifier of the short message based on a preset algorithm, comprising:
    计算所述短信的哈希值,将所述哈希值作为所述短信的标识。Calculate the hash value of the short message, and use the hash value as the identifier of the short message.
  8. 根据权利要求1所述的方法,其特征在于,所述关键信息包括所述短信中的链接;The method according to claim 1, wherein the key information comprises a link in the short message;
    所述根据所述关键信息和所述富媒体资源生成智能短信,包括:The generating an intelligent short message according to the key information and the rich media resource includes:
    将所述链接与智能短信上的预设区域进行关联,以使所述链接对应的应用程序界面在所述预设区域被执行点击操作时打开。The link is associated with a preset area on the smart short message, so that the application program interface corresponding to the link is opened when a click operation is performed on the preset area.
  9. 根据权利要求8所述的方法,其特征在于,所述链接为短链接;The method according to claim 8, wherein the link is a short link;
    所述方法还包括:The method also includes:
    如果检测到所述预设区域被执行点击操作,获取所述短链接对应的原始链接;If it is detected that the preset area is clicked, obtain the original link corresponding to the short link;
    基于所述原始链接,生成应用程序界面的深度链接;generating a deep link to the application programming interface based on the original link;
    根据所述深度链接打开所述应用程序界面。The application program interface is opened according to the deep link.
  10. 根据权利要求1所述的方法,其特征在于,所述对所述短信进行类型识别处理和关键信息提取处理,得到所述短信的短信类型和所述短信的关键信息之后,所述方法还包括:The method according to claim 1, characterized in that, after performing type identification processing and key information extraction processing on the short message, and obtaining the short message type of the short message and the key information of the short message, the method further comprises: :
    将所述关键信息中的链接与预设的链接黑名单进行比对;comparing the links in the key information with a preset blacklist of links;
    若所述链接在所述链接黑名单中,则将所述链接从所述关键信息中删除。If the link is in the link blacklist, the link is deleted from the key information.
  11. 一种短信处理装置,其特征在于,包括:A short message processing device, comprising:
    第一获取模块,用于获取终端设备接收到的短信;The first acquisition module is used to acquire the short message received by the terminal device;
    处理模块,用于对所述短信进行类型识别处理和关键信息提取处理,得到所述短信的短信类型和所述短信的关键信息;a processing module, configured to perform type identification processing and key information extraction processing on the short message, to obtain the short message type of the short message and the key information of the short message;
    第二获取模块,用于根据所述短信的短信类型,获取与所述短信类型相匹配的富媒体资源;A second acquiring module, configured to acquire rich media resources matching the short message type according to the short message type of the short message;
    生成模块,用于根据所述关键信息和所述富媒体资源生成智能短信。A generating module, configured to generate an intelligent short message according to the key information and the rich media resource.
  12. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    存储器和处理器,其中,所述存储器中存储有计算机程序,当所述计算机程序被所 述处理器执行时,实现如权利要求1-10中任一项所述的方法。A memory and a processor, wherein the memory has stored therein a computer program which, when executed by the processor, implements the method of any one of claims 1-10.
  13. 一种计算机可读存储介质,其特征在于,所述存储介质上存储有计算机程序,当所述计算机程序被处理器执行时,实现如权利要求1-10中任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored on the storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1-10 is implemented.
PCT/CN2021/124551 2020-10-20 2021-10-19 Short message processing method and apparatus, device, and storage medium WO2022083562A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011123044.5A CN114390137A (en) 2020-10-20 2020-10-20 Short message processing method, device, equipment and storage medium
CN202011123044.5 2020-10-20

Publications (1)

Publication Number Publication Date
WO2022083562A1 true WO2022083562A1 (en) 2022-04-28

Family

ID=81194170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/124551 WO2022083562A1 (en) 2020-10-20 2021-10-19 Short message processing method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN114390137A (en)
WO (1) WO2022083562A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115563964B (en) * 2022-11-10 2023-04-07 北京泰迪熊移动科技有限公司 Regular short message text generation method and device, electronic equipment and storage medium
CN115866545B (en) * 2023-01-29 2024-06-14 上海大汉三通通信股份有限公司 Message translation method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451202A (en) * 2015-05-28 2016-03-30 小米科技有限责任公司 Message processing method and device
CN106027799A (en) * 2014-05-09 2016-10-12 北京奇虎科技有限公司 Terminal information prompting method and device, and terminal
CN106096046A (en) * 2016-06-29 2016-11-09 惠州Tcl移动通信有限公司 The information intelligent display packing of a kind of mobile terminal and system
CN107329945A (en) * 2017-07-21 2017-11-07 北京奇虎科技有限公司 Method for displaying and processing, displaying processing unit and the mobile terminal of short message
CN110059273A (en) * 2019-03-14 2019-07-26 深圳市物联天下技术有限公司 A kind of method showing Rich Media on mobile terminals and mobile terminal
CN110113247A (en) * 2019-04-18 2019-08-09 深圳市梦网科技发展有限公司 Rich media information receive-transmit system, transmission, methods of exhibiting and terminal device

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487441B2 (en) * 2004-03-11 2009-02-03 Yahoo!Inc. Method and system of enhanced messaging
CN101651636A (en) * 2008-08-12 2010-02-17 宏碁股份有限公司 Electronic mail system and method for preventing junk mail with the same
WO2014078598A1 (en) * 2012-11-14 2014-05-22 invi Labs, Inc. System for and method of embedding rich media into text messages
CN103702297B (en) * 2013-12-10 2018-02-02 小米科技有限责任公司 Short message enhancement, apparatus and system
CN105681604A (en) * 2015-12-31 2016-06-15 努比亚技术有限公司 Short message display method and method
CN106657639A (en) * 2016-12-22 2017-05-10 北京珠穆朗玛移动通信有限公司 Short message display method and mobile terminal
CN107277788A (en) * 2017-07-04 2017-10-20 北京泰迪熊移动科技有限公司 Short message display processing method and device
CN110913354A (en) * 2018-09-17 2020-03-24 阿里巴巴集团控股有限公司 Short message classification method and device and electronic equipment
CN110972086A (en) * 2018-09-29 2020-04-07 北京奇虎科技有限公司 Short message processing method and device, electronic equipment and computer readable storage medium
CN109634683B (en) * 2018-12-05 2021-12-28 珠海市小源科技有限公司 Short message operation framework configuration and pushing method and device based on enterprise expectation
CN109547565B (en) * 2018-12-20 2021-04-30 深圳市梦网科技发展有限公司 Rich media information sending and receiving method, terminal equipment and storage medium
CN110245017B (en) * 2019-05-29 2024-03-26 华为技术有限公司 Resource identifier allocation method and equipment
CN110213381B (en) * 2019-06-12 2022-01-11 中卓信(北京)科技有限公司 Dynamic content distribution network construction system and method
CN110798567A (en) * 2019-08-14 2020-02-14 腾讯科技(深圳)有限公司 Short message classification display method and device, storage medium and electronic equipment
CN110765374B (en) * 2019-09-16 2023-05-05 创新先进技术有限公司 Risk link identification method and device and computer equipment
CN110990598B (en) * 2019-11-18 2020-11-27 北京声智科技有限公司 Resource retrieval method and device, electronic equipment and computer-readable storage medium
CN111291374B (en) * 2020-02-20 2022-06-14 支付宝(杭州)信息技术有限公司 Application program detection method, device and equipment
CN111428463A (en) * 2020-03-26 2020-07-17 深圳壹账通智能科技有限公司 Short message processing method and device, electronic equipment and storage medium
CN111159417A (en) * 2020-04-07 2020-05-15 北京泰迪熊移动科技有限公司 Method, device and equipment for extracting key information of text content and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027799A (en) * 2014-05-09 2016-10-12 北京奇虎科技有限公司 Terminal information prompting method and device, and terminal
CN105451202A (en) * 2015-05-28 2016-03-30 小米科技有限责任公司 Message processing method and device
CN106096046A (en) * 2016-06-29 2016-11-09 惠州Tcl移动通信有限公司 The information intelligent display packing of a kind of mobile terminal and system
CN107329945A (en) * 2017-07-21 2017-11-07 北京奇虎科技有限公司 Method for displaying and processing, displaying processing unit and the mobile terminal of short message
CN110059273A (en) * 2019-03-14 2019-07-26 深圳市物联天下技术有限公司 A kind of method showing Rich Media on mobile terminals and mobile terminal
CN110113247A (en) * 2019-04-18 2019-08-09 深圳市梦网科技发展有限公司 Rich media information receive-transmit system, transmission, methods of exhibiting and terminal device

Also Published As

Publication number Publication date
CN114390137A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN108984650B (en) Computer-readable recording medium and computer device
WO2022083562A1 (en) Short message processing method and apparatus, device, and storage medium
US10491550B2 (en) Instant communication
US8224308B1 (en) Mobile device catalog registration based on user agents and customer snapshots of capabilities
TWI519979B (en) Information recommendation method and device thereof and information resource recommendation system
US11488599B2 (en) Session message processing with generating responses based on node relationships within knowledge graphs
CN108768835B (en) Mail analysis method, device, server and storage medium
WO2014056337A1 (en) Search word acquisition method, server and search word recommendation system
CN104850550A (en) Method and apparatus for ordering prompt messages
US20110170682A1 (en) Universal contact manager
CN103176825B (en) The processing method and processing device of application program business more new data
WO2020011043A1 (en) Method, device and system for acquiring logistics object distribution information
CN112929253B (en) Virtual image interaction method and device
WO2016082575A1 (en) Information mining method and apparatus, and storage medium
WO2018000744A1 (en) Contact person detail prompting method
WO2019019652A1 (en) Push-information processing method, apparatus, computer device, and storage medium
CA3061623C (en) File sending in instant messaging applications
CN103533152A (en) Short message processing method and system of mobile terminal
US20220005483A1 (en) Group Chat Voice Information Processing Method and Apparatus, Storage Medium, and Server
CN107370661A (en) Message sending method and device based on contact list and electronic equipment
WO2023024970A1 (en) Information processing method, related device, and readable storage medium
CN108429848B (en) Information processing method, device and equipment
CN113556695B (en) Information interaction method and information interaction system based on 5G message
WO2018176705A1 (en) Method and apparatus for voice service response
WO2016090928A1 (en) Information processing method and device

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: 21881978

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21881978

Country of ref document: EP

Kind code of ref document: A1