CN105979089A - Method and device for clearing short messages - Google Patents
Method and device for clearing short messages Download PDFInfo
- Publication number
- CN105979089A CN105979089A CN201610299314.5A CN201610299314A CN105979089A CN 105979089 A CN105979089 A CN 105979089A CN 201610299314 A CN201610299314 A CN 201610299314A CN 105979089 A CN105979089 A CN 105979089A
- Authority
- CN
- China
- Prior art keywords
- short message
- category
- text
- short
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User 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/72436—User 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
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种清理短信的方法和装置,其中,该方法包括:对移动终端中的短信进行扫描;对于扫描到的每条短信,基于分类引擎判断该短信的类别;将移动终端中的短信按照类别进行分类展示;响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。本方案将多个属于同一类别的短信以一个类别信息进行展示,极大地简化了短信的展示方式、为用户梳理了移动终端中所包含的短信的类别状态,使得用户直接根据短信所属的类别批量删除短信,而无需逐条删除短信,提高了短信清理效率。
The invention discloses a method and device for clearing short messages, wherein the method includes: scanning the short messages in a mobile terminal; for each scanned short message, judging the category of the short message based on a classification engine; The short messages are classified and displayed according to categories; in response to the user's operation of selecting one or more categories, the selected one or more categories of short messages are deleted. This solution displays multiple short messages belonging to the same category with one category information, which greatly simplifies the display method of short messages, sorts out the category status of short messages contained in mobile terminals for users, and enables users to batch batches directly according to the categories to which short messages belong Delete text messages without deleting text messages one by one, which improves the efficiency of text message cleaning.
Description
技术领域technical field
本发明涉及互联网技术领域,具体涉及一种清理短信的方法和装置。The invention relates to the technical field of the Internet, in particular to a method and device for clearing short messages.
背景技术Background technique
随着移动互联网技术的不断发展,终端资费的进一步降低,用户使用短信服务的能力和频率都在大幅提高,不断涌现的终端应用和终端处理技术也催生出新的短信服务类型。随着用户需求的增长,各类型的短信服务已深入到日常生活中,移动终端的信箱中花样繁多的短信数量猛增,极大地消耗了移动终端的内存,导致移动终端运行速度变慢,而且垃圾短信更是给用户带来诸多困扰和不便,在现有技术中,用户只能选择将不需要的短信逐条进行删除,或者借用逐条标记再进行删除,这都导致了用户清理短信过程的极大不便,清理效率极低,难以满足用户的需求。With the continuous development of mobile Internet technology and the further reduction of terminal tariffs, the ability and frequency of users to use SMS services have been greatly improved, and the emerging terminal applications and terminal processing technologies have also spawned new types of SMS services. With the growth of user demand, various types of short message services have penetrated into daily life, and the number of various short messages in the mailbox of the mobile terminal has increased sharply, which greatly consumes the memory of the mobile terminal, causing the mobile terminal to run slower, and Junk text messages bring many troubles and inconveniences to users. In the prior art, users can only choose to delete unnecessary short messages one by one, or borrow one by one mark to delete them. It is very inconvenient, the cleaning efficiency is extremely low, and it is difficult to meet the needs of users.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的。In view of the above problems, the present invention is proposed to provide a solution to overcome the above problems or at least partly solve the above problems.
依据本发明的一个方面,提供了一种清理短信的方法,其中,该方法包括:According to one aspect of the present invention, a method for clearing short messages is provided, wherein the method includes:
对移动终端中的短信进行扫描;Scan the text messages in the mobile terminal;
对于扫描到的每条短信,基于分类引擎判断该短信的类别;For each text message scanned, judge the category of the text message based on the classification engine;
将移动终端中的短信按照类别进行分类展示;Classify and display the short messages in the mobile terminal according to categories;
响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。In response to the user's operation of selecting one or more categories, the short messages of the selected one or more categories are deleted.
可选地,该方法进一步包括:Optionally, the method further includes:
响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。In response to the user's operation of selecting one or more short messages in a category, the selected one or more short messages in the category are deleted.
可选地,该方法进一步包括:对于扫描到的每条短信,获取该短信中指示该短信是否已读的信息;Optionally, the method further includes: for each scanned short message, obtaining information in the short message indicating whether the short message has been read;
则所述将移动终端中的短信按照类别进行分类展示还包括:对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。Then, the classifying and displaying the short messages in the mobile terminal according to categories further includes: for each short message that is classified and displayed, displaying an identifier corresponding to information indicating whether the short message has been read.
可选地,在所述基于分类引擎判断该短信的类别之前,该方法进一步包括:Optionally, before the category of the short message is judged based on the classification engine, the method further includes:
获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。Obtain the text corresponding to the sender field in the short message, and judge whether the text corresponding to the sender field hits the address book in the mobile terminal, if so, no longer execute the step of judging the category of the short message based on the classification engine.
可选地,在所述基于分类引擎判断该短信的类别之前,该方法进一步包括:Optionally, before the category of the short message is judged based on the classification engine, the method further includes:
获取该短信中发件人字段对应的文本;Obtain the text corresponding to the sender field in the text message;
如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。If the text corresponding to the sender field matches the phone number indicating the specified category, it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed.
可选地,该方法进一步包括:Optionally, the method further includes:
在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;When the short message in the mobile terminal is deleted, the short message is scanned, the original storage path of the short message is recorded, and the information corresponding to the short message is stored in the deleted short message database; wherein, the information corresponding to the short message includes the following one or Various: information indicating whether the short message has been read, sending/receiving time information of the short message, text corresponding to the sender field, text corresponding to the recipient field, and text corresponding to the text field in the short message;
响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。In response to the user's operation of selecting a short message in the deleted short message database for recovery, the information corresponding to the short message is written into the original storage path.
可选地,所述对移动终端中的短信进行扫描包括:通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;Optionally, the scanning the short message in the mobile terminal includes: obtaining the short message reading authority in the mobile terminal by calling the first designated interface, and scanning the short message in the mobile terminal;
所述将所述短信对应的信息写入原始存储路径包括:通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;The writing the information corresponding to the short message into the original storage path includes: obtaining the short message write permission in the mobile terminal by calling the second specified interface, and writing the information corresponding to the short message into the original storage path;
其中,如果第一指定接口/第二指定接口调用失败,向用户推送提示开启第一指定接口/第二指定接口的信息。Wherein, if the calling of the first designated interface/the second designated interface fails, push information prompting the user to enable the first designated interface/the second designated interface.
可选地,所述将被选择的一个或多个类别的短信删除包括:Optionally, the deletion of one or more categories of short messages to be selected includes:
通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;其中,如果第三指定接口调用失败,向用户推送提示开启第三指定接口的信息;By calling the third specified interface to obtain the permission to delete the short message in the mobile terminal, the selected one or more types of short messages will be deleted; wherein, if the third specified interface fails to be called, the user will be pushed to prompt to open the information of the third specified interface;
和/或,and / or,
向用户推送提示更改默认短信应用设置的信息,获取默认短信应用的相关权限,将被删除的一个或多个类别的短信删除;再向用户推送提示恢复默认短信应用设置的信息。Push information to the user prompting to change the default SMS application settings, obtain the relevant permissions of the default SMS application, and delete one or more categories of SMS messages that have been deleted; then push information to the user prompting to restore the default SMS application settings.
可选地,所述基于分类引擎判断该短信类别包括:Optionally, said judging the short message category based on the classification engine includes:
获取该短信中正文字段对应的文本;Obtain the text corresponding to the text field in the text message;
根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量;Acquiring N-dimensional feature vectors corresponding to N specified keywords according to the text corresponding to the text field;
将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。The N-dimensional feature vector is input into the classification engine to calculate the category of the short message.
可选地,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;Optionally, the classification engine includes a plurality of classification functions, each classification function corresponding to a category;
则所述将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别包括:将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。Then said inputting the N-dimensional feature vector into the classification engine, and calculating the category of the short message includes: respectively substituting the N-dimensional feature vector into each classification function in the classification engine for calculation, and obtaining multiple Calculation results; comparing the multiple calculation results, selecting the classification function corresponding to the largest calculation result, and using the category corresponding to the classification function as the category of the short message.
可选地,所述根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量包括:Optionally, the obtaining N-dimensional feature vectors corresponding to N specified keywords according to the text corresponding to the text field includes:
计算每个指定关键词在该文本中对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。Calculate the weight corresponding to each specified keyword in the text, and use the set of weights corresponding to the N specified keywords as the N-dimensional feature vector of the short message.
可选地,所述计算所每个指定关键词在该文本中对应的权重包括:Optionally, the calculation of the weight corresponding to each specified keyword in the text includes:
对该文本进行单字切分,得到具有相应顺序的字串;Segment the text into single characters to obtain character strings with corresponding order;
从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;Starting from one end of the word string, selecting a field of a first preset length, and judging whether the selected field matches the N specified keywords;
若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;If not, shorten the first preset length to the second preset length, select a field of the second preset length from the beginning of the selected first preset length, and determine whether the selected field hits the N Specify keywords; and so on, until the N specified keywords are hit;
若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;If so, record the hit keyword; start from one end of the remaining word string, repeat the above-mentioned step of selecting the first preset length field, and judge whether the selected field hits the steps of the N specified keywords;
以此类推,直至剩余的字串长度为零;And so on, until the length of the remaining string is zero;
根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。According to the number of hits of each keyword in the N specified keywords, the corresponding weights of the N specified keywords in the text are respectively obtained.
可选地,该方法进一步包括:Optionally, the method further includes:
从服务器侧获取所述分类引擎、所述指示指定类别的电话号码、和/或所述N个指定关键词。The classification engine, the phone number indicating the designated category, and/or the N designated keywords are acquired from a server side.
可选地,该方法进一步包括:Optionally, the method further includes:
每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词更新后的数据;Every preset statistical period, obtain an update plug-in from the server side, and the update plug-in is configured with: the classification engine, the phone number indicating the specified category, and/or the updated data of the specified keyword;
利用所述更新插件对所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词进行更新。Utilizing the update plug-in to update the classification engine, the phone number indicating the specified category, and/or the specified keyword.
依据本发明的另一个方面,提供了一种清理短信的装置,其中,该装置包括:According to another aspect of the present invention, a device for clearing short messages is provided, wherein the device includes:
扫描单元,适于对移动终端中的短信进行扫描;The scanning unit is suitable for scanning short messages in the mobile terminal;
分类单元,适于对于扫描到的每条短信,基于分类引擎判断该短信的类别;The classification unit is adapted to judge the category of the short message based on the classification engine for each scanned short message;
展示单元,适于将移动终端中的短信按照类别进行分类展示;The display unit is suitable for classifying and displaying the short messages in the mobile terminal according to categories;
清理单元,适于响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。The cleaning unit is adapted to delete short messages of one or more categories selected in response to the user's operation of selecting one or more categories.
可选地,所述清理单元,进一步适于响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。Optionally, the cleaning unit is further adapted to delete the selected one or more short messages in a category in response to the user's operation of selecting one or more short messages in a category.
可选地,所述展示单元,进一步适于对于扫描到的每条短信,获取该短信中指示该短信是否已读的信息;在所述将移动终端中的短信按照类别进行分类展示时,还对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。Optionally, the display unit is further adapted to obtain, for each scanned short message, information indicating whether the short message has been read; when classifying and displaying the short messages in the mobile terminal according to categories, also For each text message that is classified and displayed, display the identifier corresponding to the information indicating whether the text message has been read.
可选地,所述分类单元,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。Optionally, the classification unit is further adapted to obtain the text corresponding to the sender field in the short message before the category of the short message is determined based on the classification engine, and determine whether the text corresponding to the sender field hits the mobile address book in the terminal, if so, the step of judging the category of the short message based on the classification engine is no longer performed.
可选地,所述分类单元,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本;如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。Optionally, the classification unit is further adapted to obtain the text corresponding to the sender field in the short message before the category of the short message is judged based on the classification engine; if the text corresponding to the sender field is specified by the instruction If the phone number of the category matches, then it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed.
可选地,所述扫描单元,进一步适于在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;以及适于响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。Optionally, the scanning unit is further adapted to scan the short message in the mobile terminal when the short message is deleted, record the original storage path of the short message, and store the information corresponding to the short message into the deleted short message database; Wherein, the information corresponding to the short message includes one or more of the following: information indicating whether the short message has been read, information on the sending/receiving time of the short message, text corresponding to the sender field in the short message, and text corresponding to the recipient field. The text corresponding to the text field of the text, the text corresponding to the text field; and it is suitable for writing the information corresponding to the short message into the original storage path in response to the operation of restoring the short message in the deleted short message database by the user.
可选地,所述扫描单元,适于通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;以及适于通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;其中,如果第一指定接口/第二指定接口调用失败,向用户推送提示开启第一指定接口/第二指定接口的信息。Optionally, the scanning unit is adapted to obtain the text message reading authority in the mobile terminal by calling the first designated interface, and scan the text messages in the mobile terminal; and is adapted to obtain the text message in the mobile terminal by calling the second designated interface. Short message write permission, write the information corresponding to the short message into the original storage path; wherein, if the call of the first specified interface/second specified interface fails, push the information prompting the user to open the first specified interface/second specified interface.
可选地,所述清理单元,适于通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;其中,如果第三指定接口调用失败,向用户推送提示开启第三指定接口的信息;和/或,适于向用户推送提示更改默认短信应用设置的信息,获取默认短信应用的相关权限,将被删除的一个或多个类别的短信删除,再向用户推送提示恢复默认短信应用设置的信息。Optionally, the cleaning unit is adapted to obtain the short message deletion authority in the mobile terminal by calling the third specified interface, and delete the selected one or more categories of short messages; wherein, if the third specified interface fails to call, send The user pushes information prompting to open the third specified interface; and/or, it is suitable for pushing information prompting the user to change the default SMS application settings, obtaining relevant permissions of the default SMS application, and deleting one or more types of SMS messages that will be deleted, Then push the information prompting the user to restore the default SMS application settings.
可选地,所述分类单元,适于获取该短信中正文字段对应的文本;根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量;将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。Optionally, the classification unit is adapted to obtain the text corresponding to the text field in the short message; according to the text corresponding to the text field, obtain an N-dimensional feature vector corresponding to N specified keywords; the N-dimensional feature vector input into the classification engine to calculate the category of the short message.
可选地,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;Optionally, the classification engine includes a plurality of classification functions, each classification function corresponding to a category;
所述分类单元,适于将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。The classification unit is suitable for substituting the N-dimensional feature vector into each classification function in the classification engine for calculation to obtain multiple calculation results; comparing the multiple calculation results, selecting the corresponding maximum calculation result A classification function, the category corresponding to the classification function is used as the category of the short message.
可选地,所述分类单元,适于计算在该短信中正文字段对应的文本中每个指定关键词对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。Optionally, the classification unit is adapted to calculate the weight corresponding to each specified keyword in the text corresponding to the text field in the text message, and use the set of weights corresponding to the N specified keywords as the N-dimensional content of the text message Feature vector.
可选地,所述分类单元,适于对该短信中正文字段对应的文本进行单字切分,得到具有相应顺序的字串;从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;以此类推,直至剩余的字串长度为零;根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。Optionally, the classification unit is adapted to perform single-word segmentation on the text corresponding to the text field in the short message to obtain a word string with a corresponding sequence; starting from one end of the word string, select a field with a first preset length , judging whether the selected field hits the N specified keywords; if not, shortening the first preset length to a second preset length, and selecting the second preset length from the beginning of the selected first preset length Set the length of the field to judge whether the selected field hits the N specified keywords; and so on until the N specified keywords are hit; if so, record the keywords that hit; from one end of the remaining word string Start by repeating the above-mentioned steps of selecting the first preset length of the field, and judging whether the selected field hits the N specified keywords; and so on until the remaining string length is zero; according to the N specified keywords The number of hits of each keyword in the text is used to obtain the corresponding weights of the N specified keywords in the text.
可选地,该装置进一步包括:Optionally, the device further includes:
交互单元,适于从服务器侧获取所述分类引擎、所述指示指定类别的电话号码、和/或所述N个指定关键词。The interaction unit is adapted to acquire the classification engine, the phone number indicating the specified category, and/or the N specified keywords from the server side.
可选地,所述交互单元,进一步适于每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词更新后的数据;利用所述更新插件对所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词进行更新。Optionally, the interaction unit is further adapted to obtain an update plug-in from the server every preset statistical period, and the update plug-in is configured with: the classification engine, the phone number indicating the specified category, and/or The updated data of the specified keywords; using the update plug-in to update the classification engine, the phone number indicating the specified category, and/or the specified keywords.
根据本发明的技术方案,对移动终端中的短信进行扫描,基于分类引擎判断短信类别,对移动终端中的短信的分类并展示,将多个属于同一类别的短信以一个类别信息进行展示,极大地简化了短信的展示方式、为用户梳理了移动终端中所包含的短信的类别状态,使得用户直接根据短信所属的类别批量删除短信,而无需逐条删除短信,提高了短信清理效率。According to the technical solution of the present invention, scan the short messages in the mobile terminal, judge the short message category based on the classification engine, classify and display the short messages in the mobile terminal, and display multiple short messages belonging to the same category with one category information, which is very convenient Dadi simplifies the way of displaying short messages and sorts out the category status of short messages contained in mobile terminals for users, so that users can directly delete short messages in batches according to the categories to which short messages belong without deleting short messages one by one, which improves the efficiency of short message cleaning.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的一种清理短信的方法的流程图;Fig. 1 shows a flow chart of a method for clearing short messages according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的对移动终端中的短信进行分类的方法的流程图;Fig. 2 shows a flow chart of a method for classifying short messages in a mobile terminal according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的服务器利用支持向量机方法生成二分类引擎的示意图;FIG. 3 shows a schematic diagram of a server using a support vector machine method to generate a binary classification engine according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种清理短信的装置的示意图;Fig. 4 shows a schematic diagram of a device for clearing short messages according to an embodiment of the present invention;
图5示出了根据本发明另一个实施例的一种清理短信的装置的示意图。Fig. 5 shows a schematic diagram of an apparatus for clearing short messages according to another embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1示出了根据本发明一个实施例的一种清理短信的方法的流程图。如图1所示,该方法包括:Fig. 1 shows a flowchart of a method for clearing short messages according to an embodiment of the present invention. As shown in Figure 1, the method includes:
步骤S110,对移动终端中的短信进行扫描。Step S110, scanning the short message in the mobile terminal.
步骤S120,对于扫描到的每条短信,基于分类引擎判断该短信的类别。Step S120, for each scanned short message, judge the category of the short message based on the classification engine.
步骤S130,将移动终端中的短信按照类别进行分类展示。Step S130, classifying and displaying the short messages in the mobile terminal according to categories.
步骤S140,响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。Step S140, in response to the user's operation of selecting one or more categories, delete the selected one or more categories of short messages.
可见,图1所示的方法对移动终端中的短信进行扫描,基于分类引擎判断短信类别,对移动终端中的短信的分类并展示,将多个属于同一类别的短信以一个类别信息进行展示,极大地简化了短信的展示方式、为用户梳理了移动终端中所包含的短信的类别状态,使得用户直接根据短信所属的类别批量删除短信,而无需逐条删除短信,提高了短信清理效率。It can be seen that the method shown in Figure 1 scans the short messages in the mobile terminal, judges the short message category based on the classification engine, classifies and displays the short messages in the mobile terminal, and displays multiple short messages belonging to the same category with one category information, It greatly simplifies the display mode of short messages, and sorts out the category status of short messages contained in mobile terminals for users, so that users can directly delete short messages in batches according to the categories to which short messages belong without deleting short messages one by one, which improves the efficiency of short message cleaning.
在本发明的一个实施例中,图1所示的方法进一步包括:响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。依据本实施例,用户不仅可以对一个或多个类别的短信直接进行全部删除,也可以在每个类别中选择一个或多个短信进行删除,具有很大的灵活性,符合用户需求。In one embodiment of the present invention, the method shown in FIG. 1 further includes: in response to the user's operation of selecting one or more short messages in a category, deleting the selected one or more short messages in the category. According to this embodiment, the user can not only directly delete all short messages of one or more categories, but also select one or more short messages in each category to delete, which has great flexibility and meets user needs.
在本发明的一个实施例中,在对移动终端中的短信进行扫描之后,对于扫描到的每条短信,可以进一步获取该短信中指示该短信是否已读的信息;则在将移动终端中的短信按照类别进行分类展示时,对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。例如,在展示属于验证码类别的短信时,标示出每条短信的“已读”或“未读”标识,以使得用户获知各短信是否已读的状态,避免将未读且具有实效意义的短信删除。In one embodiment of the present invention, after the short message in the mobile terminal is scanned, for each short message scanned, the information indicating whether the short message has been read in the short message can be further obtained; When the short messages are classified and displayed according to categories, for each short message that is classified and displayed, an identifier corresponding to the information indicating whether the short message has been read is displayed. For example, when displaying text messages belonging to the verification code category, mark the "read" or "unread" mark of each text message, so that users can know whether each text message has been read or not, and avoid unread text messages that have practical significance. SMS deleted.
图1所示的方法中,对移动终端中的短信进行扫描的步骤是从移动终端的系统短信数据库中读取短信的步骤,该步骤的执行需要与移动终端的系统相适配,获取系统中的短信读取权限,包括:一般情况下,移动终端的系统对短信的读取权限进行管理并对外提供第一指定接口,本方案的装置在安装时将默认申请短信读取权限,通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;但有些情况下,用户通过设置将第一指定接口关闭,使得第一指定接口无法调用成功,此时,为了获取短信读取权限,向用户推送提示信息,在提示信息中提示用户开启第一指定接口。In the method shown in Fig. 1, the step of scanning the short message in the mobile terminal is the step of reading the short message from the system short message database of the mobile terminal, the execution of this step needs to be adapted to the system of the mobile terminal, and the text message reading permission, including: under normal circumstances, the mobile terminal system manages the text message reading permission and provides the first designated interface to the outside. A designated interface obtains the text message reading authority in the mobile terminal, and scans the text messages in the mobile terminal; but in some cases, the user closes the first designated interface through settings, so that the first designated interface cannot be called successfully. At this time, in order to Obtain the permission to read the short message, push a prompt message to the user, and prompt the user to open the first specified interface in the prompt message.
图1所示的方法中,将被选择的一个或多个类别的短信删除是从移动终端的系统短信数据库中删除短信的步骤,该步骤的执行需要与移动终端的系统适配获取系统中的短信删除权限,包括以下两种方式:In the method shown in Figure 1, deleting the short message of one or more categories selected is the step of deleting the short message from the system short message database of the mobile terminal, and the execution of this step needs to be adapted to the system of the mobile terminal to obtain the SMS deletion permission, including the following two methods:
方式一,移动终端的系统对短信的删除权限进行管理并对外提供第三指定接口,本方案的装置在安装时将默认申请短信删除权限,通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;但有些情况下,用户通过设置将第三指定接口关闭,使得第三指定接口无法调用成功,此时,为了获取短信删除权限,向用户推送提示信息,在提示信息中提示用户开启第三指定接口。Method 1: The system of the mobile terminal manages the deletion authority of the short message and provides a third designated interface to the outside. The device of this solution will apply for the deletion right of the short message by default during installation, and obtain the deletion right of the short message in the mobile terminal by calling the third designated interface , to delete one or more categories of text messages selected; but in some cases, the user closes the third designated interface through settings, so that the third designated interface cannot be called successfully. At this time, in order to obtain the SMS deletion permission, push Prompt information, in which the user is prompted to enable the third specified interface.
方式二,对于一些系统来说,只有当前系统中的默认短信应用具有短信删除权限,此时,为了获取短信删除权限,向用户推送提示信息,在提示信息中提示用户更改默认短信应用的设置,将本方案对应的应用设置为默认短信应用,因而获取到短信删除权限,在将被删除的一个或多个类别的短信删除之后,再向用户推送提示信息以提示用户恢复原先默认短信应用的设置,以避免对后续的短信处理造成影响。Method 2. For some systems, only the default SMS application in the current system has the SMS deletion permission. At this time, in order to obtain the SMS deletion permission, a prompt message is pushed to the user, and the user is prompted to change the settings of the default SMS application in the prompt message. Set the application corresponding to this solution as the default SMS application, so as to obtain the permission to delete SMS messages. After deleting one or more types of SMS messages that have been deleted, push a reminder message to the user to remind the user to restore the original settings of the default SMS application. , so as to avoid affecting subsequent SMS processing.
例如,安卓4.4以下版本的系统适用于上述方式一进行适配,获取系统的短信删除权限;而安卓4.4以上版本的系统适用于上述方式二进行适配,获取系统的短信删除权限。For example, systems with versions below Android 4.4 are applicable to the above method 1 for adaptation to obtain the system’s SMS deletion authority; and systems with Android 4.4 and above are applicable to the above method 2 for adaptation to obtain the system’s SMS deletion authority.
在本发明的一个实施例中,图1所示的方法在基于分类引擎判断该短信的类别之前,进一步包括:获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。依据本实施例,不仅要扫描移动终端中的短信,还要读取移动终端中的通讯录,对于扫描到的每条短信,如果该条短信中发件人字段对应的电话号码是通讯录中已记录的联系人的电话号码,表明该条短信是当前用户的日常短信,不必再利用分类引擎对其进行分类。图2示出了根据本发明一个实施例的对移动终端中的短信进行分类的方法的流程图,如图2所示,该方法包括:In one embodiment of the present invention, before the method shown in FIG. 1 judges the category of the short message based on the classification engine, it further includes: obtaining the text corresponding to the sender field in the short message, and judging the text corresponding to the sender field. Whether the text hits the address book in the mobile terminal, if so, the step of judging the category of the short message based on the classification engine is no longer performed. According to this embodiment, not only to scan the text messages in the mobile terminal, but also to read the address book in the mobile terminal, for each text message scanned, if the phone number corresponding to the sender field in the text message is in the address book The phone number of the recorded contact indicates that the text message is a daily text message of the current user, and it is not necessary to use the classification engine to classify it. Fig. 2 shows a flow chart of a method for classifying short messages in a mobile terminal according to an embodiment of the present invention. As shown in Fig. 2, the method includes:
步骤S210,读取移动终端中的短信和通讯录。Step S210, read the short message and address book in the mobile terminal.
本步骤中,可以通过扫描移动终端中的短信数据库来读取短信。In this step, the short message can be read by scanning the short message database in the mobile terminal.
步骤S220,对于每条短信,判断该条短信中发件人字段对应的文本是否命中通讯录,是则,执行步骤S230,否则执行步骤S240。Step S220, for each short message, judge whether the text corresponding to the sender field in the short message hits the address book, if yes, execute step S230, otherwise execute step S240.
步骤S230,确定该短信为日常短信。Step S230, determining that the short message is a daily short message.
步骤S240,基于分类引擎判断该短信的类别。Step S240, judging the category of the short message based on the classification engine.
本步骤中,分类引擎能够判断出的类别包括:验证码、资讯、商家、运营商、银行金融、订单快递、其他通知等。其中,分类引擎可以进行短信内容判断、提取实体判断、特服号判断等。In this step, the categories that the classification engine can determine include: verification codes, information, merchants, operators, banking and finance, order express delivery, and other notifications. Among them, the classification engine can judge the content of the short message, the judgment of the extracted entity, the judgment of the special service number, etc.
在本发明的一个实施例中,图1所示的方法在基于分类引擎判断该短信的类别之前,进一步包括:获取该短信中发件人字段对应的文本;如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。其中,所述指示指定类别的电话号码是从服务器侧获取到的,关于分类引擎和指定关键词的更新,该方法进一步包括:每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有所述指示指定类别的电话号码更新后的数据;利用所述更新插件对所述指示指定类别的电话号码进行更新,使得在升级时单独升级插件即可。In one embodiment of the present invention, before the method shown in FIG. 1 judges the category of the short message based on the classification engine, it further includes: obtaining the text corresponding to the sender field in the short message; If the text matches the phone number indicating the specified category, then it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed. Wherein, the phone number indicating the specified category is obtained from the server side. Regarding the update of the classification engine and the specified keyword, the method further includes: acquiring an update plug-in from the server side every preset statistical period, and the update The plug-in is configured with the updated data of the phone number indicating the specified category; the update plug-in is used to update the phone number indicating the specified category, so that the plug-in can be upgraded separately during the upgrade.
例如,预存电话号码“10086”与运营商类别的对应关系,对于扫描到的短信,如果短信中发件人字段对应的文本为“10086”,则确定该短信为运营商类别,无需再基于分类引擎进行分类。For example, the corresponding relationship between the pre-stored phone number "10086" and the operator category, for the scanned SMS, if the text corresponding to the sender field in the SMS is "10086", then it is determined that the SMS belongs to the operator category, and there is no need to classify Engines are classified.
在本发明的一个实施例中,图1所示的方法进一步包括对已删除短信进行恢复的功能,以对用户误删短信的情况进行维护。该方法进一步包括:在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。In one embodiment of the present invention, the method shown in FIG. 1 further includes the function of recovering the deleted short message, so as to maintain the situation that the user accidentally deletes the short message. The method further includes: when the short message in the mobile terminal is deleted, scan the short message, record the original storage path of the short message, and store the information corresponding to the short message in the deleted short message database; wherein, the information corresponding to the short message Including one or more of the following: information indicating whether the text message has been read, sending/receiving time information of the text message, text corresponding to the sender field in the text message, text corresponding to the recipient field, and text corresponding to the text field Text; in response to the operation of restoring the short message in the deleted short message database by the user, write the information corresponding to the short message into the original storage path.
在该过程中,上述对被删除的短信进行扫描的步骤是从移动终端的系统中读取短信的步骤,该步骤的执行需要与移动终端的系统相适配,获取系统中的短信读取权限,包括:一般情况下,移动终端的系统对短信的读取权限进行管理并对外提供第一指定接口,本方案的装置在安装时将默认申请短信读取权限,通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;但有些情况下,用户通过设置将第一指定接口关闭,使得第一指定接口无法调用成功,此时,为了获取短信读取权限,向用户推送提示信息,在提示信息中提示用户开启第一指定接口。In this process, the above-mentioned step of scanning the deleted short message is a step of reading the short message from the system of the mobile terminal, and the execution of this step needs to be adapted to the system of the mobile terminal to obtain the permission to read the short message in the system , including: under normal circumstances, the system of the mobile terminal manages the reading authority of the short message and provides the first specified interface to the outside. The text message reading permission in the terminal scans the text messages in the mobile terminal; but in some cases, the user closes the first designated interface through settings, so that the first designated interface cannot be called successfully. At this time, in order to obtain the text message reading permission , pushing a prompt message to the user, in which the user is prompted to open the first designated interface.
相应地,上述将被删除短信对应的信息写入原始存储路径的步骤是将短信写入移动终端的系统短信数据库的步骤,需要适配于系统获取短信写入权限,包括:一般情况下,移动终端的系统对短信的写入权限进行管理并对外提供第二指定接口,本方案对应的装置在安装时将默认申请短信写入权限,通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;但有些情况下,用户通过设置将第二指定接口关闭,使得第二指定接口无法调用成功,此时,为了获取短信写入权限,向用户推送提示信息,在提示信息中提示用户开启第二指定接口。Correspondingly, the above-mentioned step of writing the information corresponding to the deleted text message into the original storage path is a step of writing the text message into the system text message database of the mobile terminal, which needs to be adapted to the system to obtain the text message writing permission, including: in general, mobile The terminal system manages the permission to write text messages and provides a second specified interface to the outside world. The device corresponding to this solution will apply for permission to write text messages by default when installed, and obtain the permission to write text messages in the mobile terminal by calling the second specified interface. , write the information corresponding to the short message into the original storage path; but in some cases, the user closes the second designated interface through settings, so that the second designated interface cannot be called successfully. At this time, in order to obtain the short message writing permission, the user A prompt message is pushed, in which the user is prompted to enable the second designated interface.
在本发明的一个实施例中,图1所示方法的步骤S120基于分类引擎判断该短信类别包括:In one embodiment of the present invention, step S120 of the method shown in Fig. 1 judges that this short message category comprises based on classification engine:
步骤S121,获取该短信中正文字段对应的文本。Step S121, acquiring the text corresponding to the text field in the short message.
步骤S122,根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量。Step S122, according to the text corresponding to the text field, obtain N-dimensional feature vectors corresponding to the N specified keywords.
步骤S123,将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。Step S123, inputting the N-dimensional feature vector into the classification engine to calculate the category of the short message.
其中,所述分类引擎和所述N个指定关键词是从服务器侧获取的。关于分类引擎和指定关键词的更新,该方法进一步包括:每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎和/或所述指定关键词更新后的数据;利用所述更新插件对所述分类引擎和/或所述指定关键词进行更新,使得通过插件的单独升级完成本方案的更新,得到更准确的分类结果。Wherein, the classification engine and the N specified keywords are obtained from the server side. Regarding the update of the classification engine and the specified keywords, the method further includes: obtaining an update plug-in from the server every preset statistical cycle, and the update plug-in is configured with: the classification engine and/or the specified keywords are updated The update plug-in is used to update the classification engine and/or the specified keyword, so that the update of this solution can be completed through a separate upgrade of the plug-in, and more accurate classification results can be obtained.
在具体的实施例中,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;则步骤S123包括:将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。In a specific embodiment, the classification engine includes a plurality of classification functions, and each classification function corresponds to a category; then step S123 includes: respectively substituting the N-dimensional feature vector into each classification function in the classification engine Performing calculations to obtain multiple calculation results; comparing the multiple calculation results, selecting the classification function corresponding to the largest calculation result, and using the category corresponding to the classification function as the category of the short message.
在具体的实施例中,步骤S122根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量可以是:计算每个指定关键词在该文本中对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。In a specific embodiment, step S122, according to the text corresponding to the text field, obtains N-dimensional feature vectors corresponding to N specified keywords may be: calculating the weight corresponding to each specified keyword in the text, and dividing the The set of weights corresponding to the N specified keywords is used as the N-dimensional feature vector of the short message.
具体地,计算每个指定关键词在该文本中对应的权重包括:Specifically, calculating the weight corresponding to each specified keyword in the text includes:
对该文本进行单字切分,得到具有相应顺序的字串;从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;以此类推,直至剩余的字串长度为零;根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。Segmenting the text into single characters to obtain a string with a corresponding order; starting from one end of the string, selecting a field of the first preset length, and judging whether the selected field hits the N specified keywords; if not , shortening the first preset length to a second preset length, starting from the selected starting end of the first preset length, selecting a field of the second preset length, and judging whether the selected field hits the N specified keys words; and so on, until the N specified keywords are hit; if so, the hit keywords are recorded; from one end of the remaining word string, repeat the above-mentioned field of selecting the first preset length, and judge the selected field The step of whether to hit the N specified keywords; and so on, until the length of the remaining word string is zero; according to the number of hits of each keyword in the N specified keywords, obtain the N specified keywords respectively The corresponding weight of the word in the text.
例如,一个短信中正文字段对应的文本是:“网上银行开通了手机银行服务”,5个指定关键词构成字典为{网上银行、手机、验证码、退订、开通},先对该文本进行单字切分,得到{网,上,银,行,开,通,了,手,机,银,行,服,务}这13个字组成的字串,从该字串的首端开始,选取4个字的长度的字段“网上银行”,到字典中进行匹配,存在匹配的关键词,对“网上银行”这个关键词进行标记;再从匹配剩下的字串{开,通,了,手,机,银,行,服,务}的首端开始,选取4个字的长度的字段“开通了手”,到字典中进行匹配,不存在匹配的关键词,则再从字串{开,通,了,手,机,银,行,服,务}的首端开始,选取3个字的长度的字段“开通了”,到字典中进行匹配,不存在匹配的关键词,再从字串{开,通,了,手,机,银,行,服,务}的首端开始,选取2个字的长度的字段“开通”,到字典中进行匹配,存在匹配的关键词,对“开通”这个关键词进行标记;再从匹配剩下的字串{了,手,机,银,行,服,务}的首端开始,选取4个字的长度的字段”了手机银”,到字典中进行匹配,不存在匹配的关键词,则再从字串{了,手,机,银,行,服,务}的首端开始,选取3个字的长度的字段“了手机”,到字典中进行匹配,不存在匹配的关键词,再从字串{了,手,机,银,行,服,务}的首端开始,选取2个字的长度的字段“了手”,到字典中进行匹配,不存在匹配的关键词,则再从字串{了,手,机,银,行,服,务}的首端开始,选取1个字的长度的字段“了”,到字典中进行匹配,不存在匹配的关键词,说明这个字自身以及这个字跟之前和之后的字的组合均不命中字典,则跳过该字,再从匹配剩下的字串{手,机,银,行,服,务}的首端开始,选取4个字的长度的字段“手机银行”,到字典中进行匹配,……,以此类推,直至剩余的字串的长度为0。通过标记可以知道字典中的各指定关键词的匹配次数,在本例中,“网上银行”的匹配次数为1,“开通”的匹配次数为1,“手机”的匹配次数为1,“验证码”和“退订”的匹配次数为0,则计算出各关键词在该短信的文本中对应的权重。进而能够得到该文本对应的5维特征向量是:{1,1,0,0,1}。For example, the text corresponding to the text field in a text message is: "Online banking has opened mobile banking service", and the dictionary is composed of 5 specified keywords as {online banking, mobile phone, verification code, unsubscribe, activation}, and the text is first processed. Segment the word to get a string composed of 13 characters {net, online, bank, line, open, pass, mobile, machine, bank, line, service, service}, starting from the beginning of the string, Select the field "online bank" with a length of 4 characters, and match it in the dictionary. If there is a matching keyword, mark the keyword "online bank"; then match the rest of the string {open, pass, , mobile, mobile phone, bank, bank, service, service}, select the 4-character long field "opened hand", and match it in the dictionary. If there is no matching keyword, then start from the string From the beginning of {Open, Tong, Le, Mobile, Mobile, Bank, Bank, Service, Service}, select the field "Opened" with a length of 3 characters, and match it in the dictionary. There is no matching keyword. Then start from the beginning of the string {Open, Tong, 了, Mobile, Mobile, Bank, Bank, Service, Service}, select the field "Open" with a length of 2 characters, and match it in the dictionary. There is a matching key Word, mark the keyword "open"; then start from the beginning of the matching remaining string {, mobile, mobile, bank, bank, service, service}, select a field with a length of 4 characters" "Mobile phone bank" to match in the dictionary, if there is no matching keyword, then start from the beginning of the string {a, mobile phone, bank, bank, service, service}, select a field with a length of 3 characters "Mobile phone", go to the dictionary to match, if there is no matching keyword, then start from the beginning of the string {了, mobile phone, mobile phone, bank, bank, service, service}, select a field with a length of 2 characters "Get a hand", go to the dictionary for matching, if there is no matching keyword, then start from the beginning of the string {', mobile, mobile, bank, bank, service, service}, select a character with a length of 1 word The field "了" is matched in the dictionary. If there is no matching keyword, it means that the word itself and the combination of this word and the previous and subsequent words do not match the dictionary, skip the word, and then start from the rest of the match Starting from the beginning of the string {mobile, mobile, bank, bank, service, service}, select the field "mobile bank" with a length of 4 characters, match it in the dictionary, ..., and so on until the remaining characters The length of the string is 0. The number of matches for each specified keyword in the dictionary can be known by marking. In this example, the number of matches for "online banking" is 1, the number of matches for "opening" is 1, the number of matches for "mobile phone" is 1, and the number of matches for "verification" is 1. code" and "unsubscribe" is 0, then calculate the corresponding weight of each keyword in the text of the message. Furthermore, the 5-dimensional feature vector corresponding to the text can be obtained as: {1, 1, 0, 0, 1}.
通过一个例子来说明本方案的具体实施过程,在本实施例中,服务器侧收集大量短信样本,根据所述多个短信样本的类别信息和特征向量的对应关系,基于支持向量机算法(Support Vector Machine,SVM)生成分类引擎。由于二分类引擎是分类引擎的最简化的特例,此处首先介绍利用SVM方法生成二分类模型的原理,为后续推广到生成多分类引擎打下基础。例如,假设目前短信的类别仅包括:理财类别和退订类别,收集多个短信样本作为训练样本,每个训练样本带有特征(文本对应的特征向量)和标签(所属的类别),在本例中,设定训练样本的特征为二维特征向量,训练样本的标签包括:理财类别和退订类别。为了形象地表示二分类引擎的建立过程,图3示出了根据本发明一个实施例的服务器利用支持向量机方法生成二分类引擎的示意图,在二维平面中训练样本的分布如图3中所示,二维特征向量在二维平面中是点,其中以圆圈标示属于理财类别的短信样本的二维特征向量,以方框标示属于退订类别的短信样本的二维特征向量,在该二维平面中找到一条直线用来区分“理财类别”、“退订类别”两种类别,该直线则表示本例中的二分类模型,该二分类模型即为一个分类函数,可以将属于两种类别的短信样本完全分开。设该分类函数为g(x)=wx+b,其中,x表示训练样本(短信样本)的二维特征向量,w和b的选取原则是:寻找两条边界端或极端划分直线中间的最大间隔;如取g(x)=0作为分类阈值,则对于属于理财类别的短信样本的特征向量,wx+b>0,对于属于退订类别的短信样本的特征向量,wx+b<0。An example is used to illustrate the specific implementation process of this program. In this embodiment, the server side collects a large number of short message samples. Machine, SVM) to generate a classification engine. Since the binary classification engine is the most simplified special case of the classification engine, here we first introduce the principle of using the SVM method to generate a binary classification model, laying the foundation for the subsequent promotion to generate a multi-classification engine. For example, assuming that the current SMS categories only include: financial management category and unsubscribe category, multiple SMS samples are collected as training samples, and each training sample has features (feature vectors corresponding to the text) and labels (categories to which it belongs). In the example, the feature of the training sample is set as a two-dimensional feature vector, and the labels of the training sample include: financial management category and unsubscribe category. In order to vividly represent the establishment process of the binary classification engine, Fig. 3 shows a schematic diagram of a server utilizing a support vector machine method to generate a binary classification engine according to an embodiment of the present invention, and the distribution of training samples in a two-dimensional plane is shown in Fig. 3 As shown, the two-dimensional feature vector is a point in the two-dimensional plane, wherein the two-dimensional feature vector of the short message sample belonging to the financial management category is marked with a circle, and the two-dimensional feature vector of the short message sample belonging to the unsubscribe category is marked with a box, in the two Find a straight line in the dimensional plane to distinguish the two categories of "financial management category" and "subscription category". The straight line represents the binary classification model in this example, which is a classification function that can classify The categories of SMS samples are completely separated. Suppose the classification function is g(x)=wx+b, wherein, x represents the two-dimensional feature vector of the training sample (short message sample), and the selection principle of w and b is: to find the maximum value between the two boundary ends or extreme dividing lines. Interval; If g(x)=0 is taken as the classification threshold, then for the feature vector of the SMS sample belonging to the financial management category, wx+b>0, for the feature vector of the SMS sample belonging to the unsubscribe category, wx+b<0.
本方案从服务器侧获取将该二分类引擎,基于该二分类引擎对移动终端中的短信进行分类,对于每条短信,将该短信中正文字段对应的文本对应的二维特征向量输入到该分类函数中进行计算,如果g(x)>0,确定该短信属于理财类别,如果g(x)<0,确定该短信属于退订类别。该需要说明的是,从所有短信样本的文本中提取出的指定关键词的个数决定了短信样本的特征的描述维度,进而决定了待分类短信的特征的描述维度,本例提供的方案不局限于短信的特征从两个维度来描述的情况,当短信的文本信息需要从N个维度来描述时,此方案在N维空间中仍然适用,每条短信对应于一个N维特征向量,只不过分类函数不再表示一条直线,而是一个平面、甚至一个超平面来划分出空间的两个区域以对应两个不同的类别。This scheme acquires the binary classification engine from the server side, and classifies the short messages in the mobile terminal based on the binary classification engine. For each short message, the two-dimensional feature vector corresponding to the text corresponding to the text field in the short message is input into the classification Calculate in the function, if g(x)>0, it is determined that the SMS belongs to the financial management category, and if g(x)<0, it is determined that the SMS belongs to the unsubscribe category. It should be noted that the number of specified keywords extracted from the text of all SMS samples determines the description dimension of the features of the SMS samples, and further determines the description dimension of the features of the SMS to be classified. The solution provided in this example does not It is limited to the situation where the features of SMS are described from two dimensions. When the text information of SMS needs to be described from N dimensions, this scheme is still applicable in N-dimensional space. Each SMS corresponds to an N-dimensional feature vector, only However, the classification function no longer represents a straight line, but a plane, or even a hyperplane, to divide two regions of space to correspond to two different categories.
可见,服务器侧利用SVM方法生成二分类引擎的的过程本质上是找到一个用于区分两个不同类别的分类函数的过程,在此基础上,进一步地,当存在更多的类别时,利用SVM方法生成分类引擎的本质是找到多个用于区分每种类别和其他类别的分类函数。It can be seen that the process of using the SVM method on the server side to generate a binary classification engine is essentially a process of finding a classification function for distinguishing two different categories. On this basis, further, when there are more categories, use the SVM The essence of the approach to generating a classification engine is to find multiple classification functions that distinguish each class from the others.
图4示出了根据本发明一个实施例的一种清理短信的装置的示意图。如图4所示,该清理短信的装置400包括:Fig. 4 shows a schematic diagram of an apparatus for clearing short messages according to an embodiment of the present invention. As shown in Figure 4, the device 400 for cleaning short messages includes:
扫描单元410,适于对移动终端中的短信进行扫描。The scanning unit 410 is adapted to scan short messages in the mobile terminal.
分类单元420,适于对于扫描到的每条短信,基于分类引擎判断该短信的类别。The classification unit 420 is adapted to, for each scanned short message, determine the type of the short message based on the classification engine.
展示单元430,适于将移动终端中的短信按照类别进行分类展示。The display unit 430 is adapted to classify and display the short messages in the mobile terminal according to categories.
清理单元440,适于响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。The cleaning unit 440 is adapted to delete short messages of one or more categories selected in response to the user's operation of selecting one or more categories.
可见,图4所示的装置通过各单元的相互配合,对移动终端中的短信进行扫描,基于分类引擎判断短信类别,对移动终端中的短信的分类并展示,将多个属于同一类别的短信以一个类别信息进行展示,极大地简化了短信的展示方式、为用户梳理了移动终端中所包含的短信的类别状态,使得用户直接根据短信所属的类别批量删除短信,而无需逐条删除短信,提高了短信清理效率。It can be seen that the device shown in Figure 4 scans the short messages in the mobile terminal through the mutual cooperation of each unit, judges the type of short messages based on the classification engine, classifies and displays the short messages in the mobile terminal, and classifies multiple short messages belonging to the same category Displaying a category of information greatly simplifies the display of short messages, sorts out the category status of short messages contained in mobile terminals for users, and enables users to delete short messages in batches directly according to the category to which short messages belong without deleting short messages one by one, improving Improved SMS cleaning efficiency.
在本发明的一个实施例中,所述清理单元440,进一步响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。In an embodiment of the present invention, the cleaning unit 440 further deletes the selected one or more short messages in a category in response to the user's operation of selecting one or more short messages in a category.
在本发明的一个实施例中,所述展示单元430,进一步适于对于扫描到的每条短信,获取该短信中指示该短信是否已读的信息;将移动终端中的短信按照类别进行分类展示,且对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。In one embodiment of the present invention, the display unit 430 is further adapted to obtain, for each scanned short message, information indicating whether the short message has been read; classify and display the short messages in the mobile terminal according to categories , and for each text message that is classified and displayed, display the identifier corresponding to the information indicating whether the text message has been read.
在本发明的一个实施例中,所述分类单元420,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。In one embodiment of the present invention, the classification unit 420 is further adapted to obtain the text corresponding to the sender field in the short message and determine the sender field before the category of the short message is judged based on the classification engine. Whether the corresponding text hits the address book in the mobile terminal, if so, the step of judging the category of the short message based on the classification engine is no longer performed.
在本发明的一个实施例中,所述分类单元420,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本;如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。In one embodiment of the present invention, the classification unit 420 is further adapted to obtain the text corresponding to the sender field in the short message before the category of the short message is judged based on the classification engine; if the sender field If the corresponding text matches the phone number indicating the specified category, then it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed.
在本发明的一个实施例中,所述扫描单元410,进一步适于在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;以及适于响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。In one embodiment of the present invention, the scanning unit 410 is further adapted to scan the short message when the short message in the mobile terminal is deleted, record the original storage path of the short message, and store the information corresponding to the short message in In the database of deleted short messages; wherein, the information corresponding to the short message includes one or more of the following: information indicating whether the short message has been read, the sending/receiving time information of the short message, the text corresponding to the sender field in the short message , the text corresponding to the recipient field, the text corresponding to the text field; and being suitable for writing the information corresponding to the short message into the original storage path in response to the operation of restoring the short message in the deleted short message database by the user.
在本发明的一个实施例中,所述扫描单元410,适于通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;以及适于通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;其中,如果第一指定接口/第二指定接口调用失败,向用户推送提示开启第一指定接口/第二指定接口的信息。In one embodiment of the present invention, the scanning unit 410 is adapted to obtain the text message reading authority in the mobile terminal by calling the first specified interface, and scan the text messages in the mobile terminal; The interface obtains the short message writing permission in the mobile terminal, and writes the information corresponding to the short message into the original storage path; wherein, if the first specified interface/second specified interface call fails, push a prompt to the user to open the first specified interface/second specified interface Two specifies the interface information.
在本发明的一个实施例中,所述清理单元440,适于通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;其中,如果第三指定接口调用失败,向用户推送提示开启第三指定接口的信息;和/或,适于向用户推送提示更改默认短信应用设置的信息,获取默认短信应用的相关权限,将被删除的一个或多个类别的短信删除,再向用户推送提示恢复默认短信应用设置的信息。In one embodiment of the present invention, the cleaning unit 440 is adapted to obtain the short message deletion authority in the mobile terminal by calling the third designated interface, and delete one or more categories of short messages selected; wherein, if the third If the specified interface fails to be called, push the information to the user prompting to open the third specified interface; and/or, push the information that prompts the user to change the default SMS application settings, obtain the relevant permissions of the default SMS application, and one or more to be deleted Delete SMS messages of a category, and then push information to the user prompting to restore the default SMS application settings.
在本发明的一个实施例中,所述分类单元420,适于获取该短信中正文字段对应的文本;根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量;将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。In one embodiment of the present invention, the classification unit 420 is adapted to obtain the text corresponding to the text field in the short message; according to the text corresponding to the text field, obtain N-dimensional feature vectors corresponding to N specified keywords; The N-dimensional feature vector is input into the classification engine to calculate the category of the short message.
其中,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;所述分类单元420,适于将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。Wherein, the classification engine includes a plurality of classification functions, and each classification function corresponds to a category; the classification unit 420 is adapted to substitute the N-dimensional feature vector into each classification function in the classification engine for calculation , to obtain multiple calculation results; comparing the multiple calculation results, selecting the classification function corresponding to the largest calculation result, and using the category corresponding to the classification function as the category of the short message.
所述分类单元420,适于计算在该短信中正文字段对应的文本中每个指定关键词对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。The classification unit 420 is adapted to calculate the weight corresponding to each specified keyword in the text corresponding to the text field in the short message, and use the set of weights corresponding to the N specified keywords as the N-dimensional feature vector of the short message.
具体地,所述分类单元420,适于对该短信中正文字段对应的文本进行单字切分,得到具有相应顺序的字串;从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;以此类推,直至剩余的字串长度为零;根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。Specifically, the classifying unit 420 is adapted to segment the text corresponding to the text field in the short message to obtain a string with a corresponding sequence; start from one end of the string and select a field of the first preset length , judging whether the selected field hits the N specified keywords; if not, shortening the first preset length to a second preset length, and selecting the second preset length from the beginning of the selected first preset length Set the length of the field to judge whether the selected field hits the N specified keywords; and so on until the N specified keywords are hit; if so, record the keywords that hit; from one end of the remaining word string Start by repeating the above-mentioned steps of selecting the first preset length of the field, and judging whether the selected field hits the N specified keywords; and so on until the remaining string length is zero; according to the N specified keywords The number of hits of each keyword in the text is used to obtain the corresponding weights of the N specified keywords in the text.
图5示出了根据本发明另一个实施例的一种清理短信的装置的示意图。如图5所示,该清理短信的装置500包括:扫描单元510、分类单元520、展示单元530、清理单元540和交互单元550。Fig. 5 shows a schematic diagram of an apparatus for clearing short messages according to another embodiment of the present invention. As shown in FIG. 5 , the device 500 for cleaning short messages includes: a scanning unit 510 , a classification unit 520 , a display unit 530 , a cleaning unit 540 and an interaction unit 550 .
其中,扫描单元510、分类单元520、展示单元530、清理单元540分别与图4所示的扫描单元410、分类单元420、展示单元430、清理单元440对应相同。Wherein, the scanning unit 510 , the classifying unit 520 , the display unit 530 , and the cleaning unit 540 are respectively the same as the scanning unit 410 , the classifying unit 420 , the display unit 430 , and the cleaning unit 440 shown in FIG. 4 .
交互单元550,适于从服务器侧获取所述分类引擎、所述指示指定类别的电话号码、和/或所述N个指定关键词。The interaction unit 550 is adapted to acquire the classification engine, the phone number indicating the specified category, and/or the N specified keywords from the server side.
在本发明的一个实施例中,所述交互单元550,进一步适于每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词更新后的数据;利用所述更新插件对所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词进行更新。In an embodiment of the present invention, the interaction unit 550 is further adapted to obtain an update plug-in from the server every preset statistical period, and the update plug-in is configured with: the classification engine, the The updated data of the phone number and/or the specified keyword; using the update plug-in to update the classification engine, the phone number indicating the specified category, and/or the specified keyword.
需要说明的是,图4-图5所示装置的实施例与图1-图3所示的各实施例对应相同,上文中已详细说明,在此不再赘述。It should be noted that the embodiments of the devices shown in FIGS. 4-5 are correspondingly the same as the embodiments shown in FIGS. 1-3 , which have been described in detail above and will not be repeated here.
综上所述,在本发明提供的技术方案中,服务器侧将多个短信样本作为训练样本,根据训练样本的特征(短信样本的文本信息对应的特征向量)和标签(短信样本所属的类别)生成分类引擎,即找到特征(从N个维度描述的特征)与标签(短信的类别)之间的映射关系;本方案从服务器侧获取生成的分类引擎以及多应于N个维,这样当客户端存在有特征而无标签的短信时,就可以通过特征与标签之间的映射关系找到该短信的标签,即获知该短信所属的类别,通过对移动终端中的短信的分类并展示,极大地简化了短信的展示方式、为用户梳理了移动终端中所包含的短信的类别状态,使得用户直接根据短信所属的类别批量删除短信,而无需逐条删除短信,提高了短信清理效率。In summary, in the technical solution provided by the present invention, the server side uses a plurality of short message samples as training samples, and according to the characteristics of the training samples (the feature vector corresponding to the text information of the short message sample) and the label (the category to which the short message sample belongs) Generate a classification engine, that is, find the mapping relationship between features (features described from N dimensions) and labels (category of short messages); this solution obtains the generated classification engine from the server side and corresponds to N dimensions, so that when the customer When there are short messages with features but no labels on the terminal, the label of the short message can be found through the mapping relationship between the feature and the label, that is, the category to which the short message belongs. By classifying and displaying the short messages in the mobile terminal, the The display method of short messages is simplified, and the category status of short messages contained in mobile terminals is sorted out for users, so that users can directly delete short messages in batches according to the categories of short messages without deleting short messages one by one, which improves the efficiency of short message cleaning.
需要说明的是:It should be noted:
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的清理短信的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the device for clearing short messages according to the embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种清理短信的方法,其中,该方法包括:The invention discloses A1. A method for clearing short messages, wherein the method includes:
对移动终端中的短信进行扫描;Scan the text messages in the mobile terminal;
对于扫描到的每条短信,基于分类引擎判断该短信的类别;For each text message scanned, judge the category of the text message based on the classification engine;
将移动终端中的短信按照类别进行分类展示;Classify and display the short messages in the mobile terminal according to categories;
响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。In response to the user's operation of selecting one or more categories, the short messages of the selected one or more categories are deleted.
A2、如A1所述的方法,其中,该方法进一步包括:A2. The method as described in A1, wherein the method further comprises:
响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。In response to the user's operation of selecting one or more short messages in a category, the selected one or more short messages in the category are deleted.
A3、如A1所述的方法,其中,该方法进一步包括:对于扫描到的每条短信,获取该短信中指示该短信是否已读的信息;A3. The method as described in A1, wherein the method further includes: for each scanned text message, obtaining information in the text message indicating whether the text message has been read;
则所述将移动终端中的短信按照类别进行分类展示还包括:对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。Then, the classifying and displaying the short messages in the mobile terminal according to categories further includes: for each short message that is classified and displayed, displaying an identifier corresponding to information indicating whether the short message has been read.
A4、如A1所述的方法,其中,在所述基于分类引擎判断该短信的类别之前,该方法进一步包括:A4. The method as described in A1, wherein, before the category of the short message is judged based on the classification engine, the method further includes:
获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。Obtain the text corresponding to the sender field in the short message, and judge whether the text corresponding to the sender field hits the address book in the mobile terminal, if so, no longer execute the step of judging the category of the short message based on the classification engine.
A5、如A1所述的方法,其中,在所述基于分类引擎判断该短信的类别之前,该方法进一步包括:A5. The method as described in A1, wherein, before the category of the short message is judged based on the classification engine, the method further includes:
获取该短信中发件人字段对应的文本;Obtain the text corresponding to the sender field in the text message;
如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。If the text corresponding to the sender field matches the phone number indicating the specified category, it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed.
A6、如A1所述的方法,其中,该方法进一步包括:A6. The method as described in A1, wherein the method further comprises:
在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;When the short message in the mobile terminal is deleted, the short message is scanned, the original storage path of the short message is recorded, and the information corresponding to the short message is stored in the deleted short message database; wherein, the information corresponding to the short message includes the following one or Various: information indicating whether the short message has been read, sending/receiving time information of the short message, text corresponding to the sender field, text corresponding to the recipient field, and text corresponding to the text field in the short message;
响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。In response to the user's operation of selecting a short message in the deleted short message database for recovery, the information corresponding to the short message is written into the original storage path.
A7、如A1或A6所述的方法,其中,A7. The method as described in A1 or A6, wherein,
所述对移动终端中的短信进行扫描包括:通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;The scanning the short message in the mobile terminal includes: obtaining the short message reading authority in the mobile terminal by calling the first designated interface, and scanning the short message in the mobile terminal;
所述将所述短信对应的信息写入原始存储路径包括:通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;The writing the information corresponding to the short message into the original storage path includes: obtaining the short message write permission in the mobile terminal by calling the second specified interface, and writing the information corresponding to the short message into the original storage path;
其中,如果第一指定接口/第二指定接口调用失败,向用户推送提示开启第一指定接口/第二指定接口的信息。Wherein, if the calling of the first designated interface/the second designated interface fails, push information prompting the user to enable the first designated interface/the second designated interface.
A8、如A1所述的方法,其中,所述将被选择的一个或多个类别的短信删除包括:A8. The method as described in A1, wherein the deletion of one or more categories of short messages to be selected includes:
通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;其中,如果第三指定接口调用失败,向用户推送提示开启第三指定接口的信息;By calling the third specified interface to obtain the permission to delete the short message in the mobile terminal, the selected one or more types of short messages will be deleted; wherein, if the third specified interface fails to be called, the user will be pushed to prompt to open the information of the third specified interface;
和/或,and / or,
向用户推送提示更改默认短信应用设置的信息,获取默认短信应用的相关权限,将被删除的一个或多个类别的短信删除;再向用户推送提示恢复默认短信应用设置的信息。Push information to the user prompting to change the default SMS application settings, obtain the relevant permissions of the default SMS application, and delete one or more categories of SMS messages that have been deleted; then push information to the user prompting to restore the default SMS application settings.
A9、如A1-A5中任一项所述的方法,其中,所述基于分类引擎判断该短信类别包括:A9, the method as described in any one in A1-A5, wherein, described based on classification engine judges this short message category to comprise:
获取该短信中正文字段对应的文本;Obtain the text corresponding to the text field in the text message;
根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量;Acquiring N-dimensional feature vectors corresponding to N specified keywords according to the text corresponding to the text field;
将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。The N-dimensional feature vector is input into the classification engine to calculate the category of the short message.
A10、如A9所述的方法,其中,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;A10. The method as described in A9, wherein the classification engine includes a plurality of classification functions, each classification function corresponding to a category;
则所述将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别包括:将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。Then said inputting the N-dimensional feature vector into the classification engine, and calculating the category of the short message includes: respectively substituting the N-dimensional feature vector into each classification function in the classification engine for calculation, and obtaining multiple Calculation results; comparing the multiple calculation results, selecting the classification function corresponding to the largest calculation result, and using the category corresponding to the classification function as the category of the short message.
A11、如A9所述的方法,其中,所述根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量包括:A11, the method as described in A9, wherein, according to the text corresponding to the text field, obtaining N-dimensional feature vectors corresponding to N specified keywords includes:
计算每个指定关键词在该文本中对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。Calculate the weight corresponding to each specified keyword in the text, and use the set of weights corresponding to the N specified keywords as the N-dimensional feature vector of the short message.
A12、如A11所述的方法,其中,所述计算所每个指定关键词在该文本中对应的权重包括:A12, the method as described in A11, wherein, the weight corresponding to each specified keyword in the text of the calculation includes:
对该文本进行单字切分,得到具有相应顺序的字串;Segment the text into single characters to obtain character strings with corresponding order;
从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;Starting from one end of the word string, selecting a field of a first preset length, and judging whether the selected field matches the N specified keywords;
若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;If not, shorten the first preset length to the second preset length, select a field of the second preset length from the beginning of the selected first preset length, and determine whether the selected field hits the N Specify keywords; and so on, until the N specified keywords are hit;
若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;If so, record the hit keyword; start from one end of the remaining word string, repeat the above-mentioned step of selecting the first preset length field, and judge whether the selected field hits the steps of the N specified keywords;
以此类推,直至剩余的字串长度为零;And so on, until the length of the remaining string is zero;
根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。According to the number of hits of each keyword in the N specified keywords, the corresponding weights of the N specified keywords in the text are respectively obtained.
A13、如A9所述的方法,其中,该方法进一步包括:A13. The method as described in A9, wherein the method further comprises:
从服务器侧获取所述分类引擎、所述指示指定类别的电话号码、和/或所述N个指定关键词。The classification engine, the phone number indicating the designated category, and/or the N designated keywords are acquired from a server side.
A14、如A13所述的方法,其中,该方法进一步包括:A14. The method as described in A13, wherein the method further comprises:
每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词更新后的数据;Every preset statistical period, obtain an update plug-in from the server side, and the update plug-in is configured with: the classification engine, the phone number indicating the specified category, and/or the updated data of the specified keyword;
利用所述更新插件对所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词进行更新。Utilizing the update plug-in to update the classification engine, the phone number indicating the specified category, and/or the specified keyword.
本发明还公开了B15、一种清理短信的装置,其中,该装置包括:The present invention also discloses B15, a device for clearing short messages, wherein the device includes:
扫描单元,适于对移动终端中的短信进行扫描;The scanning unit is suitable for scanning short messages in the mobile terminal;
分类单元,适于对于扫描到的每条短信,基于分类引擎判断该短信的类别;The classification unit is adapted to judge the category of the short message based on the classification engine for each scanned short message;
展示单元,适于将移动终端中的短信按照类别进行分类展示;The display unit is suitable for classifying and displaying the short messages in the mobile terminal according to categories;
清理单元,适于响应于用户选择一个或多个类别的操作,将被选择的一个或多个类别的短信删除。The cleaning unit is adapted to delete short messages of one or more categories selected in response to the user's operation of selecting one or more categories.
B16、如B15所述的装置,其中,B16. The device of B15, wherein,
所述清理单元,进一步适于响应于用户选择一个类别中的一个或多个短信的操作,将该类别中被选择的一个或多个短信删除。The cleaning unit is further adapted to delete one or more selected short messages in a category in response to the user's operation of selecting one or more short messages in the category.
B17、如B15所述的装置,其中,B17. The device of B15, wherein,
所述展示单元,进一步适于对于扫描到的每条短信,获取该短信中指示该短信是否已读的信息;在所述将移动终端中的短信按照类别进行分类展示时,还对于进行分类展示的每条短信,展示指示该短信是否已读的信息对应的标识。The display unit is further adapted to obtain information indicating whether the short message has been read in the short message for each short message scanned; when the short messages in the mobile terminal are classified and displayed according to categories, they are also classified and displayed For each text message, display the identifier corresponding to the information indicating whether the text message has been read.
B18、如B15所述的方法,其中,B18. The method as described in B15, wherein,
所述分类单元,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本,判断所述发件人字段对应的文本是否命中移动终端中的通讯录,是则,不再执行所述基于分类引擎判断该短信的类别的步骤。The classification unit is further adapted to obtain the text corresponding to the sender field in the short message before the category of the short message is judged based on the classification engine, and judge whether the text corresponding to the sender field hits the communication in the mobile terminal record, if so, no longer execute the step of judging the category of the short message based on the classification engine.
B19、如B15所述的装置,其中,B19. The device of B15, wherein,
所述分类单元,进一步适于在所述基于分类引擎判断该短信的类别之前,获取该短信中发件人字段对应的文本;如果所述发件人字段对应的文本与指示指定类别的电话号码相匹配,则确定该短信的类别为所述指定类别,不再执行所述基于分类引擎判断该短信的类别的步骤。The classification unit is further adapted to obtain the text corresponding to the sender field in the short message before the category of the short message is judged based on the classification engine; if the text corresponding to the sender field is the same as the phone number indicating the specified category match, then it is determined that the category of the short message is the specified category, and the step of judging the category of the short message based on the classification engine is no longer performed.
B20、如B15所述的装置,其中,B20. The device of B15, wherein,
所述扫描单元,进一步适于在移动终端中的短信被删除时,对该短信进行扫描,记录该短信的原始存储路径,将该短信对应的信息存储到已删短信数据库中;其中,该短信对应的信息包括如下一种或多种:指示该短信是否已读的信息、该短信的发送/接收时间信息、该短信中的发件人字段对应的文本、收件人字段对应的文本、正文字段对应的文本;以及适于响应于用户选择已删除短信数据库中的短信进行恢复的操作,将所述短信对应的信息写入原始存储路径。The scanning unit is further adapted to scan the short message when the short message in the mobile terminal is deleted, record the original storage path of the short message, and store the information corresponding to the short message in the deleted short message database; wherein, the short message The corresponding information includes one or more of the following: information indicating whether the short message has been read, sending/receiving time information of the short message, text corresponding to the sender field in the short message, text corresponding to the recipient field, and text The text corresponding to the field; and being suitable for writing the information corresponding to the short message into the original storage path in response to the operation of restoring the short message in the deleted short message database by the user.
B21、如B15或B20所述的装置,其中,B21. The device as described in B15 or B20, wherein,
所述扫描单元,适于通过调用第一指定接口获取移动终端中的短信读取权限,对移动终端中的短信进行扫描;以及适于通过调用第二指定接口获取移动终端中的短信写入权限,将所述短信对应的信息写入原始存储路径;其中,如果第一指定接口/第二指定接口调用失败,向用户推送提示开启第一指定接口/第二指定接口的信息。The scanning unit is adapted to obtain the short message reading authority in the mobile terminal by calling the first designated interface, and scan the short message in the mobile terminal; and is suitable for obtaining the short message writing right in the mobile terminal by calling the second designated interface , writing the information corresponding to the short message into the original storage path; wherein, if the call of the first designated interface/the second designated interface fails, push the information prompting the user to open the first designated interface/the second designated interface.
B22、如B15所述的装置,其中,B22. The device of B15, wherein,
所述清理单元,适于通过调用第三指定接口获取移动终端中的短信删除权限,将被选择的一个或多个类别的短信删除;其中,如果第三指定接口调用失败,向用户推送提示开启第三指定接口的信息;和/或,适于向用户推送提示更改默认短信应用设置的信息,获取默认短信应用的相关权限,将被删除的一个或多个类别的短信删除,再向用户推送提示恢复默认短信应用设置的信息。The cleaning unit is adapted to obtain the short message deletion authority in the mobile terminal by calling the third specified interface, and delete the selected one or more categories of short messages; wherein, if the third specified interface fails to call, push the prompt to the user to open The information of the third specified interface; and/or, it is suitable for pushing information prompting the user to change the settings of the default SMS application, obtaining relevant permissions of the default SMS application, deleting one or more types of SMS that have been deleted, and then pushing the information to the user A message prompting to restore the default SMS application settings.
B23、如B15或B19所述的装置,其中,B23. The device as described in B15 or B19, wherein,
所述分类单元,适于获取该短信中正文字段对应的文本;根据所述正文字段对应的文本,获取对应于N个指定关键词的N维特征向量;将该N维特征向量输入到所述分类引擎中,计算得到该短信的类别。The classification unit is adapted to obtain the text corresponding to the text field in the short message; according to the text corresponding to the text field, obtain an N-dimensional feature vector corresponding to N specified keywords; input the N-dimensional feature vector into the In the classification engine, the classification of the short message is obtained through calculation.
B24、如B23所述的方法,其中,所述分类引擎包括多个分类函数,每个分类函数对应于一个类别;B24. The method as described in B23, wherein the classification engine includes a plurality of classification functions, each classification function corresponding to a category;
所述分类单元,适于将该N维特征向量分别代入到所述分类引擎中的各分类函数中进行计算,得到多个计算结果;比较所述多个计算结果,选择最大的计算结果对应的分类函数,将该分类函数对应的类别作为该短信的类别。The classification unit is suitable for substituting the N-dimensional feature vector into each classification function in the classification engine for calculation to obtain multiple calculation results; comparing the multiple calculation results, selecting the corresponding maximum calculation result A classification function, the category corresponding to the classification function is used as the category of the short message.
B25、如B23所述的装置,其中,B25. The device of B23, wherein,
所述分类单元,适于计算在该短信中正文字段对应的文本中每个指定关键词对应的权重,将所述N个指定关键词对应的权重的集合作为该短信的N维特征向量。The classification unit is adapted to calculate the weight corresponding to each specified keyword in the text corresponding to the text field in the short message, and use the set of weights corresponding to the N specified keywords as the N-dimensional feature vector of the short message.
B26、如B25所述的装置,其中,B26. The device of B25, wherein,
所述分类单元,适于对该短信中正文字段对应的文本进行单字切分,得到具有相应顺序的字串;从所述字串的一端开始,选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词;若否,将第一预设长度缩短为第二预设长度,从所选取的第一预设长度的起始端开始,选取第二预设长度的字段,判断选取的字段是否命中所述N个指定关键词;以此类推,直至命中所述N个指定关键词;若是,对命中的关键词进行记录;从剩余的字串的一端开始,重复上述选取第一预设长度的字段,判断选取的字段是否命中所述N个指定关键词的步骤;以此类推,直至剩余的字串长度为零;根据所述N个指定关键词中每个关键词的命中次数,分别得到所述N个指定关键词在该文本中对应的权重。The classification unit is adapted to perform single-word segmentation on the text corresponding to the text field in the short message to obtain a word string with a corresponding order; starting from one end of the word string, select a field of the first preset length, and judge the selected Whether the field matches the N specified keywords; if not, the first preset length is shortened to the second preset length, and a field of the second preset length is selected from the beginning of the selected first preset length , to determine whether the selected field hits the N specified keywords; and so on until the N specified keywords are hit; if so, record the hit keywords; start from one end of the remaining string, repeat the above Selecting a field of the first preset length, judging whether the selected field hits the N specified keywords; and so on until the remaining string length is zero; according to each key in the N specified keywords The number of hits of the word is used to obtain the corresponding weights of the N specified keywords in the text.
B27、如B23所述的装置,其中,该装置进一步包括:B27. The device as described in B23, wherein the device further comprises:
交互单元,适于从服务器侧获取所述分类引擎、所述指示指定类别的电话号码、和/或所述N个指定关键词。The interaction unit is adapted to acquire the classification engine, the phone number indicating the specified category, and/or the N specified keywords from the server side.
B28、如B27所述的装置,其中,B28. The device of B27, wherein,
所述交互单元,进一步适于每隔预设统计周期,从服务器侧获取更新插件,所述更新插件配置有:所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词更新后的数据;利用所述更新插件对所述分类引擎、所述指示指定类别的电话号码、和/或所述指定关键词进行更新。The interaction unit is further adapted to obtain an update plug-in from the server side every preset statistical period, and the update plug-in is configured with: the classification engine, the phone number indicating the specified category, and/or the specified key Word updated data; using the update plug-in to update the classification engine, the phone number indicating the specified category, and/or the specified keyword.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610299314.5A CN105979089A (en) | 2016-05-06 | 2016-05-06 | Method and device for clearing short messages |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610299314.5A CN105979089A (en) | 2016-05-06 | 2016-05-06 | Method and device for clearing short messages |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105979089A true CN105979089A (en) | 2016-09-28 |
Family
ID=56992770
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610299314.5A Pending CN105979089A (en) | 2016-05-06 | 2016-05-06 | Method and device for clearing short messages |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105979089A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106446657A (en) * | 2016-09-30 | 2017-02-22 | 北京小米移动软件有限公司 | Information marking method and device |
| CN107171939A (en) * | 2017-05-26 | 2017-09-15 | 北京小米移动软件有限公司 | SMS classified method and device |
| CN107643879A (en) * | 2017-09-27 | 2018-01-30 | 北京小米移动软件有限公司 | Information clearing method, device and terminal |
| CN114461125A (en) * | 2022-01-21 | 2022-05-10 | 珠海格力电器股份有限公司 | Short message deleting method and device, storage medium and electronic equipment |
| CN115097968A (en) * | 2022-06-24 | 2022-09-23 | 上海闻泰信息技术有限公司 | SMS classification method, device, electronic device and storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101072067A (en) * | 2006-05-11 | 2007-11-14 | 北京握奇数据系统有限公司 | Device and method for realizing short-message classified sending, receiving and displaying |
| CN101867644A (en) * | 2010-01-28 | 2010-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for deleting short message and mobile terminal |
| US20120054132A1 (en) * | 2010-08-27 | 2012-03-01 | Douglas Aberdeen | Sorted Inbox with Important Message Identification Based on Global and User Models |
| CN105138611A (en) * | 2015-08-07 | 2015-12-09 | 北京奇虎科技有限公司 | Short message type identification method and device |
| CN105791543A (en) * | 2016-02-23 | 2016-07-20 | 北京奇虎科技有限公司 | A method, device, client and system for clearing short messages |
-
2016
- 2016-05-06 CN CN201610299314.5A patent/CN105979089A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101072067A (en) * | 2006-05-11 | 2007-11-14 | 北京握奇数据系统有限公司 | Device and method for realizing short-message classified sending, receiving and displaying |
| CN101867644A (en) * | 2010-01-28 | 2010-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for deleting short message and mobile terminal |
| US20120054132A1 (en) * | 2010-08-27 | 2012-03-01 | Douglas Aberdeen | Sorted Inbox with Important Message Identification Based on Global and User Models |
| CN105138611A (en) * | 2015-08-07 | 2015-12-09 | 北京奇虎科技有限公司 | Short message type identification method and device |
| CN105791543A (en) * | 2016-02-23 | 2016-07-20 | 北京奇虎科技有限公司 | A method, device, client and system for clearing short messages |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106446657A (en) * | 2016-09-30 | 2017-02-22 | 北京小米移动软件有限公司 | Information marking method and device |
| CN107171939A (en) * | 2017-05-26 | 2017-09-15 | 北京小米移动软件有限公司 | SMS classified method and device |
| CN107643879A (en) * | 2017-09-27 | 2018-01-30 | 北京小米移动软件有限公司 | Information clearing method, device and terminal |
| CN114461125A (en) * | 2022-01-21 | 2022-05-10 | 珠海格力电器股份有限公司 | Short message deleting method and device, storage medium and electronic equipment |
| CN115097968A (en) * | 2022-06-24 | 2022-09-23 | 上海闻泰信息技术有限公司 | SMS classification method, device, electronic device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112613917B (en) | Information pushing method, device, equipment and storage medium based on user portrait | |
| CN105979089A (en) | Method and device for clearing short messages | |
| CN110428322A (en) | A kind of adaptation method and device of business datum | |
| CN105631049A (en) | Method and system for recognizing defrauding short messages | |
| CN109684639A (en) | Short message recognition methods, device and electronic equipment | |
| CN111797315A (en) | A message push method, device, server and medium | |
| CN108605050B (en) | A method, device and electronic device for quickly entering financial transactions | |
| CN105791543A (en) | A method, device, client and system for clearing short messages | |
| CN105426759A (en) | URL legality determining method and apparatus | |
| CN108366052A (en) | Verify the processing method and system of short message | |
| CN111611418A (en) | Data storage method and data query method | |
| CN107423308A (en) | Topic recommendation method and device | |
| CN105589845A (en) | Junk text recognizing method, device and system | |
| CN113887214B (en) | Willingness presumption method based on artificial intelligence and related equipment thereof | |
| CN110874570A (en) | Face recognition method, device, equipment and computer readable storage medium | |
| CN114840743B (en) | Model recommendation method and device, electronic equipment and readable storage medium | |
| CN105868279B (en) | Application recommendation method and server | |
| CN108647728B (en) | Imbalanced data classification oversampling method, apparatus, equipment and medium | |
| CN119415694A (en) | Sensitive information detection method, device, computer equipment and readable storage medium | |
| CN114490400A (en) | Method and device for processing test cases | |
| CN114186024A (en) | Recommended method and device | |
| CN109614463B (en) | Text matching processing method and device | |
| CN106686240A (en) | Method for acquiring event information on mobile terminal and mobile terminal | |
| CN106060238A (en) | Mobile terminal information cleaning method | |
| CN106790907A (en) | Method and mobile terminal that a kind of associated person information based on mobile terminal is imported |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160928 |
|
| RJ01 | Rejection of invention patent application after publication |