技术领域technical field
本公开涉及信息技术领域,特别涉及一种号码标识方法及装置。The present disclosure relates to the field of information technology, in particular to a number identification method and device.
背景技术Background technique
电话和短信是人们日常生活中常用的两种沟通方式,任一用户既可能会收到通讯录中已记录的号码打来的电话或者发来的短信,也可能会收到通讯录中未记录的陌生号码打来的电话或者发来的短信。Phone calls and text messages are two commonly used communication methods in people's daily life. Any user may receive calls or text messages from numbers recorded in the address book, and may also receive calls from numbers not recorded in the address book. Calls or text messages from unknown numbers.
以手机为例,手机在接收到陌生号码打来的电话时,并不能确定该陌生号码的所有者是谁,因此只能在来电提示界面上显示该陌生号码本身,而不能显示该陌生号码的所有者,用户接听电话后可以在对话过程中获知该陌生号码的所有者是谁。同理地,手机在接收到陌生号码发来的短信时,也只能在短信提示界面中显示该陌生号码本身,而不能显示该陌生号码的所有者,用户只有打开短信后才可以获知该陌生号码的所有者是谁。Taking a mobile phone as an example, when a mobile phone receives a call from an unfamiliar number, it cannot determine who the owner of the strange number is, so it can only display the strange number itself on the call prompt interface, but not the name of the strange number. Owner, after the user answers the call, he can learn who the owner of the strange number is during the conversation. Similarly, when the mobile phone receives a text message from an unfamiliar number, it can only display the strange number itself in the text message prompt interface, but cannot display the owner of the strange number. The user can only know the strange number after opening the text message. Who is the owner of the number.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开提供一种号码标识方法及装置。所述技术方案如下:In order to overcome the problems existing in related technologies, the present disclosure provides a number identification method and device. Described technical scheme is as follows:
根据本公开实施例的第一方面,提供一种号码标识方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a number identification method is provided, the method comprising:
当检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定所述陌生号码的标识信息,所述标识信息用于指示所述陌生号码的所有者,所述对应关系根据多个样本短信以及所述多个样本短信的发送号码统计得到;When a communication event initiated by an unfamiliar number is detected, the identification information of the unfamiliar number is determined according to the established correspondence between the number and the identification information, and the identification information is used to indicate the owner of the unfamiliar number. The corresponding relationship is obtained according to the statistics of sending numbers of a plurality of sample short messages and the plurality of sample short messages;
在所述通信事件的提示界面上,显示所述标识信息。The identification information is displayed on the prompt interface of the communication event.
在另一实施例中,所述方法还包括:In another embodiment, the method also includes:
获取多个样本短信的发送号码;Obtain the sending numbers of multiple sample text messages;
对于获取到的每个发送号码,按照预设标记符,从所述发送号码对应的样本短信中提取所述预设标记符对应的标识信息;For each acquired sending number, according to the preset tag, extract the identification information corresponding to the preset tag from the sample short message corresponding to the sending number;
建立所述发送号码与所述标识信息之间的对应关系。A corresponding relationship between the sending number and the identification information is established.
在另一实施例中,所述获取多个样本短信的发送号码,包括:In another embodiment, the acquisition of sending numbers of a plurality of sample short messages includes:
获取多个第一样本短信;Obtaining a plurality of first sample short messages;
将所述多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信;Deleting sample short messages that do not include any preset keywords in the plurality of first sample short messages to obtain the remaining multiple second sample short messages;
获取所述多个第二样本短信的发送号码。The sending numbers of the plurality of second sample short messages are acquired.
在另一实施例中,所述方法还包括:In another embodiment, the method also includes:
如果从所述发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在所述发送号码对应的样本短信中的出现次数;If a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number;
建立所述发送号码与所述多个标识信息中出现次数大于预设次数的标识信息之间的对应关系。Establishing a correspondence between the sending number and identification information that appears more than a preset number of times in the plurality of identification information.
在另一实施例中,所述建立所述发送号码与所述多个标识信息中出现次数大于预设次数的标识信息之间的对应关系,包括:In another embodiment, the establishment of the correspondence between the sending number and the identification information that appears more than a preset number of times in the plurality of identification information includes:
确定所述多个标识信息中出现次数大于预设次数的标识信息;Determining identification information whose occurrence times are greater than a preset number of times among the plurality of identification information;
对应存储所述发送号码与所述确定的标识信息。Correspondingly storing the sending number and the determined identification information.
在另一实施例中,所述标识信息在所述发送号码对应的样本短信中的出现次数为在所述发送号码对应的样本短信中,提取出所述标识信息的样本短信的数目;或者,In another embodiment, the number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of sample short messages from which the identification information is extracted in the sample short message corresponding to the sending number; or,
所述标识信息在所述发送号码对应的样本短信中的出现次数为在所述发送号码对应的样本短信中,提取出所述标识信息的样本短信的接收号码的数目。The number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of receiving numbers of the sample short message from which the identification information is extracted in the sample short message corresponding to the sending number.
在另一实施例中,所述方法还包括:In another embodiment, the method also includes:
如果从所述发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在所述发送号码对应的样本短信中的出现次数;If a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number;
根据每个标识信息的出现次数和所述多个标识信息的出现次数总和,计算每个标识信息在所述多个标识信息中的出现概率;calculating the occurrence probability of each identification information in the plurality of identification information according to the number of occurrences of each identification information and the sum of the appearance times of the plurality of identification information;
建立所述发送号码与所述多个标识信息中出现概率大于预设概率的标识信息之间的对应关系。Establishing a correspondence between the sending number and identification information whose occurrence probability is greater than a preset probability among the plurality of identification information.
在另一实施例中,所述建立所述发送号码与所述多个标识信息中出现概率大于预设概率的标识信息之间的对应关系,包括:In another embodiment, the establishment of the correspondence between the sending number and the identification information whose occurrence probability is greater than a preset probability among the plurality of identification information includes:
确定所述多个标识信息中出现概率大于预设概率的标识信息;determining identification information whose occurrence probability is greater than a preset probability among the plurality of identification information;
对应存储所述发送号码与所述确定的标识信息。Correspondingly storing the sending number and the determined identification information.
根据本公开实施例的第二方面,提供一种号码标识装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided a number identification device, the device comprising:
第一确定模块,用于当检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定所述陌生号码的标识信息,所述标识信息用于指示所述陌生号码的所有者,所述对应关系根据多个样本短信以及所述多个样本短信的发送号码统计得到;The first determining module is configured to, when a communication event initiated by an unfamiliar number is detected, determine the identification information of the unfamiliar number according to the established correspondence between the number and the identification information, and the identification information is used to indicate the The owner of the unfamiliar number, the corresponding relationship is obtained according to the statistics of multiple sample short messages and the sending numbers of the multiple sample short messages;
显示模块,用于在所述通信事件的提示界面上,显示所述标识信息。A display module, configured to display the identification information on the prompt interface of the communication event.
在另一实施例中,所述装置还包括:In another embodiment, the device also includes:
获取模块,用于获取多个样本短信的发送号码;An acquisition module, configured to acquire the sending numbers of a plurality of sample short messages;
提取模块,用于对于获取到的每个发送号码,按照预设标记符,从所述发送号码对应的样本短信中提取所述预设标记符对应的标识信息;An extraction module, configured to, for each acquired sending number, extract the identification information corresponding to the preset tag from the sample short message corresponding to the sending number according to the preset tag;
对应关系建立模块,用于建立所述发送号码与所述标识信息之间的对应关系。A corresponding relationship establishing module, configured to establish a corresponding relationship between the sending number and the identification information.
在另一实施例中,所述获取模块还用于获取多个第一样本短信,将所述多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信,获取所述多个第二样本短信的发送号码。In another embodiment, the acquiring module is also used to acquire a plurality of first sample short messages, delete sample short messages that do not include any preset keywords in the plurality of first sample short messages, and obtain the remaining a plurality of second sample short messages, and obtain the sending numbers of the plurality of second sample short messages.
在另一实施例中,所述装置还包括:In another embodiment, the device also includes:
第二确定模块,用于如果从所述发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在所述发送号码对应的样本短信中的出现次数;The second determining module is used to determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number if a plurality of identification information is extracted from the sample short message corresponding to the sending number;
所述对应关系建立模块还用于建立所述发送号码与所述多个标识信息中出现次数大于预设次数的标识信息之间的对应关系。The corresponding relationship establishing module is further configured to establish a corresponding relationship between the sending number and identification information whose occurrence times are greater than a preset number of times among the plurality of identification information.
在另一实施例中,所述对应关系建立模块还用于确定所述多个标识信息中出现次数大于预设次数的标识信息,对应存储所述发送号码与所述确定的标识信息。In another embodiment, the corresponding relationship establishing module is further configured to determine the identification information that appears more than a preset number of times among the plurality of identification information, and correspondingly store the sending number and the identified identification information.
在另一实施例中,所述标识信息在所述发送号码对应的样本短信中的出现次数为在所述发送号码对应的样本短信中,提取出所述标识信息的样本短信的数目;或者,In another embodiment, the number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of sample short messages from which the identification information is extracted in the sample short message corresponding to the sending number; or,
所述标识信息在所述发送号码对应的样本短信中的出现次数为在所述发送号码对应的样本短信中,提取出所述标识信息的样本短信的接收号码的数目。The number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of receiving numbers of the sample short message from which the identification information is extracted in the sample short message corresponding to the sending number.
在另一实施例中,所述装置还包括:In another embodiment, the device also includes:
第二确定模块,用于如果从所述发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在所述发送号码对应的样本短信中的出现次数;The second determining module is used to determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number if a plurality of identification information is extracted from the sample short message corresponding to the sending number;
计算模块,用于根据每个标识信息的出现次数和所述多个标识信息的出现次数总和,计算每个标识信息在所述多个标识信息中的出现概率;A calculation module, configured to calculate the occurrence probability of each identification information in the plurality of identification information according to the number of occurrences of each identification information and the sum of the occurrence times of the plurality of identification information;
所述对应关系建立模块还用于建立所述发送号码与所述多个标识信息中出现概率大于预设概率的标识信息之间的对应关系。The corresponding relationship establishing module is further configured to establish a corresponding relationship between the sending number and identification information whose occurrence probability is greater than a preset probability among the plurality of identification information.
在另一实施例中,所述对应关系建立模块还用于确定所述多个标识信息中出现概率大于预设概率的标识信息,对应存储所述发送号码与所述确定的标识信息。In another embodiment, the correspondence establishment module is further configured to determine identification information whose occurrence probability is greater than a preset probability among the plurality of identification information, and store the sending number and the determined identification information correspondingly.
根据本公开的第三方面,提供一种号码标识装置,所述装置包括:According to a third aspect of the present disclosure, there is provided a number identification device, the device comprising:
处理器;processor;
用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions;
其中,所述处理器被配置为:Wherein, the processor is configured as:
当检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定所述陌生号码的标识信息,所述标识信息用于指示所述陌生号码的所有者,所述对应关系根据多个样本短信以及所述多个样本短信的发送号码统计得到;When a communication event initiated by an unfamiliar number is detected, the identification information of the unfamiliar number is determined according to the established correspondence between the number and the identification information, and the identification information is used to indicate the owner of the unfamiliar number. The corresponding relationship is obtained according to the statistics of sending numbers of a plurality of sample short messages and the plurality of sample short messages;
在所述通信事件的提示界面上,显示所述标识信息。The identification information is displayed on the prompt interface of the communication event.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过根据多个样本短信以及多个样本短信的发送号码进行统计,建立号码与标识信息之间的对应关系,当检测到陌生号码发起的通信事件时,根据已建立的对应关系,确定用于指示该陌生号码所有者的标识信息,在该通信事件的提示界面上,显示该标识信息,从而能够直观地对陌生号码进行标识,提醒用户该陌生号码的所有者,提高了灵活性。By making statistics based on multiple sample short messages and the sending numbers of multiple sample short messages, the corresponding relationship between the number and the identification information is established. When a communication event initiated by an unfamiliar number is detected, it is determined according to the established corresponding relationship. The identification information of the owner of the strange number is displayed on the prompt interface of the communication event, so that the identification information of the strange number can be intuitively identified, and the user is reminded of the owner of the strange number, which improves flexibility.
在另一实施例中,获取多个样本短信的发送号码,对于获取到的每个发送号码,按照预设标记符,从该发送号码对应的样本短信中提取该预设标记符对应的标识信息,建立该发送号码与该标识信息之间的对应关系。通过获取多个样本短信的发送号码以及从每个样本短信中提取的标识信息,建立发送号码与标识信息之间的对应关系,提高了准确度。In another embodiment, the sending numbers of a plurality of sample short messages are obtained, and for each obtained sending number, according to a preset tag, the identification information corresponding to the preset tag is extracted from the sample short message corresponding to the sending number , establishing a correspondence between the sending number and the identification information. By acquiring the sending numbers of multiple sample short messages and the identification information extracted from each sample short message, the corresponding relationship between the sending numbers and the identification information is established, and the accuracy is improved.
在另一实施例中,可以先获取多个已接收或者已发送的样本短信,作为第一样本短信,将该多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信,获取该多个第二样本短信的发送号码。通过对第一样本短信进行筛选得到第二样本短信,再获取第二样本短信的发送号码,减小了发送号码的范围,减小了工作量,提高了效率。In another embodiment, a plurality of received or sent sample short messages may be obtained as first sample short messages, and sample short messages that do not include any preset keyword among the multiple first sample short messages are deleted , obtain the remaining multiple second sample short messages, and acquire the sending numbers of the multiple second sample short messages. By screening the first sample short message to obtain the second sample short message, and then obtaining the sending number of the second sample short message, the scope of sending number is reduced, the workload is reduced, and the efficiency is improved.
在另一实施例中,如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数,对于每个标识信息,判断该标识信息的出现次数是否大于预设次数,如果该标识信息的出现次数大于预设次数,则可以确定该标识信息,对应存储该发送号码与该确定的标识信息,建立该发送号码与该标识信息之间的对应关系,如果该标识信息的出现次数不大于预设次数,则不建立该发送号码与该标识信息之间的对应关系。通过确定标识信息的出现次数,得到出现次数大于预设次数的标识信息,建立发送号码与出现次数大于预设次数的标识信息之间的对应关系,提高了准确度,减小了工作量,提高了效率。In another embodiment, if a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number, and for each identification information , judging whether the number of occurrences of the identification information is greater than the preset number of times, if the number of occurrences of the identification information is greater than the preset number of times, the identification information can be determined, the sending number and the determined identification information are stored correspondingly, and the sending number and the determined identification information are established. For the correspondence between the identification information, if the occurrence times of the identification information is not greater than the preset number of times, the correspondence between the sending number and the identification information is not established. By determining the number of occurrences of the identification information, the identification information whose occurrence frequency is greater than the preset number of times is obtained, and the corresponding relationship between the sending number and the identification information whose occurrence frequency is greater than the preset number of times is established, the accuracy is improved, the workload is reduced, and the efficiency.
在另一实施例中,可以通过在发送号码对应的样本短信中,提取出包含标识信息的样本短信,并将提取出的样本短信的数目作为该标识信息在该发送号码对应的样本短信中的出现次数;或者,通过在发送号码对应的样本短信中,提取出包含标识信息的样本短信的接收号码,并将该接收号码的数目作为该标识信息在该发送号码对应的样本短信中的出现次数,通过多种方式确定出现次数,提高了灵活性。In another embodiment, it is possible to extract a sample short message containing identification information from the sample short message corresponding to the sending number, and use the number of the extracted sample short message as the number of the identification information in the sample short message corresponding to the sending number. The number of occurrences; or, by extracting the receiving number of the sample short message containing the identification information in the sample short message corresponding to the sending number, and using the number of the receiving number as the number of occurrences of the identification information in the sample short message corresponding to the sending number , increasing the flexibility by determining the number of occurrences in a variety of ways.
在另一实施例中,如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数,通过计算得到多个标识信息的出现次数的和值,作为多个标识信息的出现次数总和,对于每个标识信息,可以将该标识信息的出现次数与该出现次数总和之间的商作为该标识信息的出现概率,从而计算到每个标识信息在该多个标识信息中的出现概率。通过确定标识信息的出现次数,并且确定每个标识信息的出现概率,得到出现概率大于预设概率的标识信息,确定多个标识信息中出现概率大于预设概率的标识信息,对应存储发送号码与确定的标识信息,建立发送号码与出现概率大于预设概率的标识信息之间的对应关系,提高了准确度,减小了工作量,提高了效率。In another embodiment, if a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number, and obtain a plurality of The sum of the number of occurrences of the identification information is taken as the sum of the number of occurrences of multiple identification information, and for each identification information, the quotient between the number of occurrences of the identification information and the sum of the number of occurrences can be used as the probability of occurrence of the identification information, Therefore, the occurrence probability of each identification information in the plurality of identification information is calculated. By determining the number of occurrences of the identification information and determining the occurrence probability of each identification information, the identification information with the occurrence probability greater than the preset probability is obtained, and the identification information with the occurrence probability greater than the preset probability among the plurality of identification information is determined, and the corresponding storage of the sending number and The determined identification information establishes the corresponding relationship between the sending number and the identification information whose occurrence probability is greater than the preset probability, which improves the accuracy, reduces the workload, and improves the efficiency.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并于说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种号码标识方法的流程图;Fig. 1 is a flow chart of a number identification method shown according to an exemplary embodiment;
图2是根据另一示例性实施例示出的一种号码标识方法的流程图;Fig. 2 is a flow chart of a number identification method according to another exemplary embodiment;
图3是根据一示例性实施例示出的一种号码标识装置的框图;Fig. 3 is a block diagram of a number identification device according to an exemplary embodiment;
图4是根据另一示例性实施例示出的一种号码标识装置的框图;Fig. 4 is a block diagram of a number identification device according to another exemplary embodiment;
图5是根据又一示例性实施例示出的一种号码标识装置的框图;Fig. 5 is a block diagram of a number identification device according to yet another exemplary embodiment;
图6是根据又一示例性实施例示出的一种号码标识装置的框图;Fig. 6 is a block diagram of a number identification device according to yet another exemplary embodiment;
图7是根据又一示例性实施例示出的一种号码标识装置的框图;Fig. 7 is a block diagram of a number identification device according to yet another exemplary embodiment;
图8是根据又一示例性实施例示出的一种号码标识装置的框图。Fig. 8 is a block diagram of a number identification device according to yet another exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.
图1是根据一示例性实施例示出的一种号码标识方法的流程图,如图1所示,该号码标识方法包括以下步骤:Fig. 1 is a flow chart of a method for identifying a number according to an exemplary embodiment. As shown in Fig. 1, the method for identifying a number includes the following steps:
在步骤101中,当检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定该陌生号码的标识信息。In step 101, when a communication event initiated by an unfamiliar number is detected, the identification information of the unfamiliar number is determined according to the established correspondence between the number and the identification information.
其中,该标识信息用于指示该陌生号码的所有者,该对应关系根据多个样本短信以及该多个样本短信的发送号码统计得到。Wherein, the identification information is used to indicate the owner of the unfamiliar number, and the corresponding relationship is obtained according to statistics of multiple sample short messages and sending numbers of the multiple sample short messages.
在步骤102中,在该通信事件的提示界面上,显示该标识信息。In step 102, the identification information is displayed on the prompt interface of the communication event.
综上所述,本公开实施例中提供的号码标识方法,通过根据多个样本短信以及多个样本短信的发送号码进行统计,建立号码与标识信息之间的对应关系,当检测到陌生号码发起的通信事件时,根据已建立的对应关系,确定用于指示该陌生号码所有者的标识信息,在该通信事件的提示界面上,显示该标识信息,从而能够直观地对陌生号码进行标识,提醒用户该陌生号码的所有者,提高了灵活性。To sum up, the number identification method provided in the embodiment of the present disclosure establishes the corresponding relationship between the number and the identification information by making statistics based on multiple sample short messages and the sending numbers of multiple sample short messages. In the case of a communication event, according to the established corresponding relationship, determine the identification information used to indicate the owner of the strange number, and display the identification information on the prompt interface of the communication event, so that the strange number can be intuitively identified and reminded The user is the owner of the unknown number, which improves the flexibility.
在另一实施例中,该方法还包括:In another embodiment, the method also includes:
获取多个样本短信的发送号码;Obtain the sending numbers of multiple sample text messages;
对于获取到的每个发送号码,按照预设标记符,从该发送号码对应的样本短信中提取该预设标记符对应的标识信息;For each acquired sending number, according to the preset tag, extract the identification information corresponding to the preset tag from the sample short message corresponding to the sending number;
建立该发送号码与该标识信息之间的对应关系。A corresponding relationship between the sending number and the identification information is established.
在另一实施例中,该获取多个样本短信的发送号码,包括:In another embodiment, the acquisition of sending numbers of multiple sample short messages includes:
获取多个第一样本短信;Obtaining a plurality of first sample short messages;
将该多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信;Deleting the sample short messages that do not include any preset keywords in the multiple first sample short messages to obtain the remaining multiple second sample short messages;
获取该多个第二样本短信的发送号码。The sending numbers of the plurality of second sample short messages are acquired.
在另一实施例中,该方法还包括:In another embodiment, the method also includes:
如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数;If a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number;
建立该发送号码与该多个标识信息中出现次数大于预设次数的标识信息之间的对应关系。A correspondence relationship between the sending number and identification information whose occurrence times are greater than a preset number of times among the plurality of identification information is established.
在另一实施例中,建立该发送号码与该多个标识信息中出现次数大于预设次数的标识信息之间的对应关系,包括:In another embodiment, establishing a corresponding relationship between the sending number and the identification information that appears more than a preset number of times among the plurality of identification information includes:
确定该多个标识信息中出现次数大于预设次数的标识信息;Determine the identification information that appears more than a preset number of times among the plurality of identification information;
对应存储该发送号码与该确定的标识信息。The sending number and the determined identification information are stored correspondingly.
在另一实施例中,该标识信息在该发送号码对应的样本短信中的出现次数为在该发送号码对应的样本短信中,提取出该标识信息的样本短信的数目;或者,In another embodiment, the number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of sample short messages from which the identification information is extracted in the sample short message corresponding to the sending number; or,
该标识信息在该发送号码对应的样本短信中的出现次数为在该发送号码对应的样本短信中,提取出该标识信息的样本短信的接收号码的数目。The number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of receiving numbers of the sample short message from which the identification information is extracted in the sample short message corresponding to the sending number.
在另一实施例中,该方法还包括:In another embodiment, the method also includes:
如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数;If a plurality of identification information is extracted from the sample short message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number;
根据每个标识信息的出现次数和该多个标识信息的出现次数总和,计算每个标识信息在该多个标识信息中的出现概率;Calculate the probability of occurrence of each identification information in the plurality of identification information according to the number of occurrences of each identification information and the sum of the appearance times of the plurality of identification information;
建立该发送号码与该多个标识信息中出现概率大于预设概率的标识信息之间的对应关系。A correspondence relationship between the sending number and identification information whose occurrence probability is greater than a preset probability among the plurality of identification information is established.
在另一实施例中,建立该发送号码与该多个标识信息中出现概率大于预设概率的标识信息之间的对应关系,包括:In another embodiment, establishing a correspondence between the sending number and identification information whose occurrence probability is greater than a preset probability among the plurality of identification information includes:
确定该多个标识信息中出现概率大于预设概率的标识信息;Determining identification information whose occurrence probability is greater than a preset probability among the plurality of identification information;
对应存储该发送号码与该确定的标识信息。The sending number and the determined identification information are stored correspondingly.
图2是根据另一示例性实施例示出的一种号码标识方法的流程图,该号码标识方法应用于服务器或终端中,本实施例仅以服务器建立对应关系并将该对应关系发送至终端,由终端根据对应关系显示陌生号码的标识信息为例进行说明,如图2所示,该号码标识方法包括以下步骤:Fig. 2 is a flow chart of a number identification method according to another exemplary embodiment. The number identification method is applied to a server or a terminal. In this embodiment, the server only establishes a corresponding relationship and sends the corresponding relationship to the terminal. Let the terminal display the identification information of an unfamiliar number according to the corresponding relationship as an example for illustration. As shown in Figure 2, the number identification method includes the following steps:
在步骤201中,服务器获取多个样本短信的发送号码。In step 201, the server acquires sending numbers of multiple sample short messages.
其中,该终端可以为手机、平板电脑、计算机等,该服务器用于为该终端提供通信服务,能够将其他终端对该终端发起的通信事件转发给该终端,该服务器可以为基站服务器或者即时通讯服务器等,本实施例对此不做限定。Wherein, the terminal can be a mobile phone, a tablet computer, a computer, etc., the server is used to provide communication services for the terminal, and can forward communication events initiated by other terminals to the terminal to the terminal, and the server can be a base station server or instant messaging The server and the like are not limited in this embodiment.
实际应用中,用户的终端会接收到陌生号码打来的电话或者发送的短信,而终端不能直观地显示陌生号码的所有者,用户必须接听电话或者打开短信后才能获知陌生号码的所有者。而本实施例中,为了能够直观地显示陌生号码的所有者,服务器可以预先存储多个终端的样本短信,获取多个样本短信的发送号码,对多个样本短信的发送号码进行统计,得到每个号码的标识信息,并将每个号码的标识信息发送至终端,从而使得终端根据获取到的标识信息对陌生号码进行标识。In practical applications, the user's terminal will receive a call or a text message from an unfamiliar number, but the terminal cannot visually display the owner of the strange number. The user must answer the phone or open the text message to know the owner of the strange number. However, in this embodiment, in order to visually display the owner of the unfamiliar number, the server can pre-store the sample short messages of multiple terminals, obtain the sending numbers of the multiple sample short messages, and perform statistics on the sending numbers of the multiple sample short messages to obtain each The identification information of each number, and send the identification information of each number to the terminal, so that the terminal can identify the unfamiliar number according to the acquired identification information.
其中,每个短信可以采用三元组的形式表示,三元组可以为<发送号码,接收号码,短信的具体内容>。例如,短信的具体内容为“用户甲向你134****8888付款150.00元,请查收【XX公司】”,短信的发送号码“1069XXXX8888”,接收号码为134XXXX8888,则短信可以表示为<1069XXXX8888,134XXXX8888,用户甲向你134****8888付款150.00元,请查收【XX公司】>。Wherein, each short message may be expressed in the form of a triplet, and the triplet may be <sending number, receiving number, specific content of the short message>. For example, the specific content of the SMS is "User A pays you 150.00 yuan to 134****8888, please check [XX Company]", the sending number of the SMS is "1069XXXX8888", and the receiving number is 134XXXX8888, then the SMS can be expressed as <1069XXXX8888 , 134XXXX8888, user A pays you 134****8888 150.00 yuan, please check 【XX company】>.
另外,该服务器获取的多个样本短信可以包括存储的所有短信,也可以仅包括之前的预设时长之内获取到的样本短信,如前一个月内得到的短信等,本实施例对此不做限定。In addition, the multiple sample short messages obtained by the server may include all stored short messages, or only include sample short messages obtained within the previous preset time period, such as short messages obtained within the previous month. Do limited.
为了提高统计过程的准确度,服务器还可以预先确定多个预设关键词,根据确定的多个预设关键词对获取的多个样本短信进行筛选处理后,再对剩余的样本短信的发送号码进行统计。其中,该预设关键词可以根据频繁发送短信的号码或者频繁拨打电话的号码的标识信息确定,例如,该预设关键词可以为某一推销公司的名称、某一商家的名称等,本实施对此不做限定。In order to improve the accuracy of the statistical process, the server can also pre-determine a plurality of preset keywords, and after screening and processing the obtained multiple sample short messages according to the determined multiple preset keywords, the sending numbers of the remaining sample short messages Make statistics. Wherein, the preset keyword can be determined according to the identification information of the number that frequently sends text messages or the number that frequently calls. There is no limit to this.
在一种可能的实现方式中,服务器可以先获取多个已接收或者已发送的样本短信,作为第一样本短信,将该多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信,获取该多个第二样本短信的发送号码。In a possible implementation, the server may first acquire a plurality of sample short messages that have been received or sent as first sample short messages, and use any of the multiple first sample short messages that do not include any preset keyword The sample short message is deleted, the remaining multiple second sample short messages are obtained, and the sending numbers of the multiple second sample short messages are obtained.
其中,对于每个第一样本短信,服务器可以对第一样本短信进行分词处理,获取该第一样本短信的至少一个关键词,判断该至少一个关键词是否与任一预设关键词匹配,如果该至少一个关键词中的每个关键词与任一预设关键词均不匹配,则删除该第一样本短信,如果该至少一个关键词中的某一关键词与任一预设关键词匹配,则保留该第一样本短信。通过对多个第一样本短信进行筛选处理,可以得到多个剩余的样本短信,作为第二样本短信,获取多个第二样本短信的发送号码。Wherein, for each first sample short message, the server may perform word segmentation processing on the first sample short message, obtain at least one keyword of the first sample short message, and determine whether the at least one keyword is consistent with any preset keyword Matching, if each keyword in the at least one keyword does not match any preset keyword, then delete the first sample text message, if a certain keyword in the at least one keyword matches any preset keyword Assuming that the keywords match, the first sample short message is retained. By screening the plurality of first sample short messages, a plurality of remaining sample short messages can be obtained as second sample short messages, and the sending numbers of the plurality of second sample short messages can be obtained.
在步骤202中,对于获取到的每个发送号码,服务器按照预设标记符,从该发送号码对应的样本短信中提取该预设标记符对应的标识信息,建立该发送号码与该标识信息之间的对应关系。In step 202, for each sent number obtained, the server extracts the identification information corresponding to the preset tag from the sample short message corresponding to the sent number according to the preset tag, and establishes a relationship between the sent number and the identification information. Correspondence between.
本实施例中,该服务器可以根据获取到的多个样本短信以及多个样本短信的发送号码进行统计,得到号码与标识信息之间的对应关系,其中,该标识信息用于指示该陌生号码的所有者,可以为陌生号码的所有者的名称、昵称或者关键词等,本实施例对此不做限定。In this embodiment, the server can perform statistics based on the obtained multiple sample short messages and the sending numbers of the multiple sample short messages, and obtain the corresponding relationship between the numbers and the identification information, wherein the identification information is used to indicate the number of the unfamiliar number. The owner may be the name, nickname or keywords of the owner of the unfamiliar number, which is not limited in this embodiment.
服务器根据多个样本短信获取到多个发送号码后,对于每个发送号码,可以从多个样本短信中,选取与该发送号码对应的样本短信,也即是由该发送号码发出的样本短信,按照预设标记符,对选取的样本短信中预设标记符对应的信息进行提取,得到该样本短信的标识信息,建立该发送号码与该标识信息之间的对应关系。After the server obtains a plurality of sending numbers according to a plurality of sample short messages, for each sending number, a sample short message corresponding to the sending number can be selected from the plurality of sample short messages, that is, a sample short message sent by the sending number, According to the preset marker, the information corresponding to the preset marker in the selected sample short message is extracted, the identification information of the sample short message is obtained, and the corresponding relationship between the sending number and the identification information is established.
其中,该服务器选取与该发送号码对应的样本短信时,可以从多个第一样本短信中选取,也可以从筛选后剩余的多个第二样本短信中选取,本实施例对此不做限定。该预设标记符可以通过一般短信中标识信息的标记符确定,可以为方头括号“【】”、花括号“{}”,本实施例对此不做限定。而且,服务器可以通过正则表达式对样本短信的标识信息进行提取,也可以采用其他方式对样本短信的标识信息进行提取,本实施例对此不做限定。Wherein, when the server selects the sample text message corresponding to the sending number, it can be selected from a plurality of first sample text messages, and can also be selected from a plurality of second sample text messages remaining after screening, which is not done in this embodiment. limited. The preset marker can be determined by the marker of the identification information in the general short message, which can be a square head bracket “[]” or a curly bracket “{}”, which is not limited in this embodiment. Moreover, the server may extract the identification information of the sample short message through a regular expression, or may extract the identification information of the sample short message in other ways, which is not limited in this embodiment.
例如,发送号码“106988888888”对应的样本短信为“用户甲向你134****8888付款150.00元,请查收【XX公司】”,预设标记符为方头括号“【】”,则通过正则表达式提取详情内容中方头括号“【】”之间的信息“XX公司”,并将该信息“XX公司”作为该样本短信的标识信息,建立“106988888888”与“XX公司”之间的对应关系。For example, the sample text message corresponding to the sending number "106988888888" is "User A pays you 134****8888 150.00 yuan, please check [XX company]", the default marker is square head brackets "【】", then pass The regular expression extracts the information "XX company" between the square head brackets "【】" in the detailed content, and uses the information "XX company" as the identification information of the sample SMS to establish the relationship between "106988888888" and "XX company" corresponding relationship.
如果选取到该发送号码对应的多个样本短信,则该服务器可以对该发送号码对应的每个样本短信中预设标记符对应的信息分别进行提取,得到对应的标识信息。进一步地,不同样本短信中的标识信息可能不同,则该服务器对多个样本短信进行提取后,可能会提取到多个标识信息。If multiple sample short messages corresponding to the sending number are selected, the server may extract the information corresponding to the preset marker in each sample short message corresponding to the sending number to obtain corresponding identification information. Furthermore, the identification information in different sample short messages may be different, so after the server extracts a plurality of sample short messages, it may extract multiple identification information.
在提取到多个标识信息时,步骤202可以包括以下步骤2021、步骤2022或者步骤2023:When multiple pieces of identification information are extracted, step 202 may include the following steps 2021, 2022 or 2023:
2021、如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数,建立该发送号码与该多个标识信息中出现次数大于预设次数的标识信息之间的对应关系。2021. If a plurality of identification information is extracted from the sample text message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample text message corresponding to the sending number, and establish the sending number and the plurality of identification information Correspondence between identification information whose occurrence times are greater than a preset number of times.
每个标识信息在该发送号码对应的样本短信中的出现次数不一定相同,某个标识信息的出现次数越多,则表示该标识信息越有可能是该发送号码的所有者。The number of occurrences of each identification information in the sample short messages corresponding to the sending number is not necessarily the same, and the more occurrences of a certain identification information, the more likely the identification information is the owner of the sending number.
其中,标识信息在该发送号码对应的样本短信中的出现次数可以为该发送号码对应的样本短信中,提取出该标识信息的样本短信的数目。Wherein, the number of occurrences of the identification information in the sample short messages corresponding to the sending number may be the number of sample short messages from which the identification information is extracted among the sample short messages corresponding to the sending number.
例如,服务器从发送号码对应的100个样本短信中提取到标识信息“XX公司”,且提取出该标识信息“XX公司”的样本短信数目为10,则可以确定标识信息“XX公司”的出现次数为10。For example, if the server extracts the identification information "XX company" from the 100 sample text messages corresponding to the sending number, and the number of sample text messages from which the identification information "XX company" is extracted is 10, then the occurrence of the identification information "XX company" can be determined The number of times is 10.
另外,标识信息在该发送号码对应的样本短信中的出现次数还可以为该发送号码对应的样本短信中,提取出该标识信息的样本短信的接收号码的数目。In addition, the number of occurrences of the identification information in the sample short message corresponding to the sending number may also be the number of receiving numbers of the sample short message from which the identification information is extracted in the sample short message corresponding to the sending number.
例如,服务器从发送号码对应的100个样本短信中提取到标识信息“XX公司”,且提取出该标识信息“XX公司”的样本短信数目为10,这10个样本短信的接收号码均相同,则可以确定标识信息“XX公司”的出现次数为1。For example, the server extracts the identification information "XX company" from 100 sample short messages corresponding to the sending number, and the number of sample short messages that extracts the identification information "XX company" is 10, and the receiving numbers of these 10 sample short messages are all the same. Then it can be determined that the number of occurrences of the identification information "XX company" is 1.
为了提高准确度,对于每个标识信息,服务器判断该标识信息的出现次数是否大于预设次数,如果该标识信息的出现次数大于预设次数,则建立该发送号码与该标识信息之间的对应关系,如果该标识信息的出现次数不大于预设次数,则不建立该发送号码与该标识信息之间的对应关系。In order to improve the accuracy, for each identification information, the server judges whether the number of occurrences of the identification information is greater than the preset number of times, and if the number of occurrences of the identification information is greater than the preset number of times, the correspondence between the sending number and the identification information is established relationship, if the number of occurrences of the identification information is not greater than the preset number of times, the corresponding relationship between the sending number and the identification information will not be established.
其中,该预设次数可以根据每个标识信息的出现次数设置,也可以通过其他方式设置,本实施例对此不做限定。Wherein, the preset number of times may be set according to the number of occurrences of each identification information, or may be set in other ways, which is not limited in this embodiment.
2022、如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数,根据每个标识信息的出现次数和该多个标识信息的出现次数总和,计算每个标识信息在该多个标识信息中的出现概率,建立该发送号码与该多个标识信息中出现概率大于预设概率的标识信息之间的对应关系。2022. If a plurality of identification information is extracted from the sample text message corresponding to the sending number, determine the number of occurrences of each extracted identification information in the sample text message corresponding to the sending number, and according to the number of occurrences of each identification information and the The sum of the occurrence times of multiple identification information, calculating the occurrence probability of each identification information in the multiple identification information, and establishing the corresponding relationship between the transmission number and the identification information whose occurrence probability is greater than the preset probability in the multiple identification information .
本步骤2022中确定每个标识信息的出现次数的过程与步骤2021类似,在此不再赘述。而在服务器确定每个标识信息的出现次数后,通过计算得到多个标识信息的出现次数的和值,作为多个标识信息的出现次数总和,则对于每个标识信息,该服务器可以将该标识信息的出现次数与该出现次数总和之间的商作为该标识信息的出现概率,从而计算到每个标识信息在该多个标识信息中的出现概率。The process of determining the number of occurrences of each identification information in step 2022 is similar to step 2021 and will not be repeated here. After the server determines the number of occurrences of each identification information, the sum of the number of occurrences of multiple identification information is obtained by calculation, as the sum of the number of occurrences of multiple identification information, then for each identification information, the server can use the identification The quotient between the number of appearances of information and the sum of the number of appearances is used as the occurrence probability of the identification information, so as to calculate the occurrence probability of each identification information in the plurality of identification information.
对于每个标识信息,如果该标识信息的出现概率大于预设概率,则建立该发送号码与该标识信息之间的对应关系,如果该标识信息的出现概率不大于预设概率,则不建立该发送号码与该标识信息之间的对应关系,以便降低错误率。For each identification information, if the occurrence probability of the identification information is greater than the preset probability, the corresponding relationship between the transmission number and the identification information is established; if the occurrence probability of the identification information is not greater than the preset probability, the corresponding relationship between the The corresponding relationship between the sending number and the identification information is sent to reduce the error rate.
其中,该预设概率可以根据每个标识信息的出现概率设置,也可以通过其他方式设置,本实施例对此不做限定。Wherein, the preset probability may be set according to the occurrence probability of each piece of identification information, or may be set in other ways, which is not limited in this embodiment.
2023、如果从该发送号码对应的样本短信中提取到多个标识信息,根据每个标识信息的出现次数和每个标识信息在多个标识信息中的出现概率,建立该发送号码与标识信息之间的对应关系。2023. If a plurality of identification information is extracted from the sample short message corresponding to the sending number, establish a relationship between the sending number and the identification information according to the number of occurrences of each identification information and the occurrence probability of each identification information in multiple identification information. Correspondence between.
本步骤2023中获取每个标识信息的出现次数的过程和获取每个标识信息的出现概率的过程,与步骤2021、步骤2022类似,在此不再赘述。The process of obtaining the number of occurrences of each identification information and the process of obtaining the occurrence probability of each identification information in step 2023 is similar to steps 2021 and 2022, and will not be repeated here.
服务器在获取到每个标识信息的出现次数后,删除出现次数小于预设次数的标识信息,计算剩余的标识信息中每个标识信息的出现概率,判断最大的出现概率是否大于预设概率,如果该最大的出现概率大于预设概率,则建立该发送号码与该最大的出现概率对应的标识信息之间的对应关系,如果该最大的出现概率不大于预设概率,则不再建立该发送号码的对应关系。After obtaining the occurrence times of each identification information, the server deletes the identification information whose occurrence times are less than the preset number, calculates the occurrence probability of each identification information in the remaining identification information, and judges whether the maximum occurrence probability is greater than the preset probability, if If the maximum probability of occurrence is greater than the preset probability, then establish the corresponding relationship between the sending number and the identification information corresponding to the maximum probability of appearance, if the maximum probability of appearance is not greater than the preset probability, then no longer establish the sending number corresponding relationship.
另外,为了保证陌生号码对应的标识信息的准确度,服务器可以周期性地获取多个样本短信,重复执行步骤201-202,对建立的对应关系进行更新。In addition, in order to ensure the accuracy of the identification information corresponding to the unfamiliar number, the server may periodically acquire a plurality of sample short messages, repeat steps 201-202, and update the established corresponding relationship.
在步骤203中,服务器向终端发送对应关系。In step 203, the server sends the corresponding relationship to the terminal.
服务器在建立发送号码与标识信息之间的对应关系后,可以将该对应关系发送至终端,以便终端能够根据该对应关系确定陌生号码的标识信息。After establishing the corresponding relationship between the sending number and the identification information, the server may send the corresponding relationship to the terminal, so that the terminal can determine the identification information of the unfamiliar number according to the corresponding relationship.
进一步地,服务器建立的对应关系中包括每个标识信息对应的多个号码,该服务器可以直接向终端发送建立的对应关系,也可以先从建立的对应关系中确定对应号码过多的标识信息,对于该标识信息,可以先确定该标识信息对应的每个号码的使用频率,再按照使用频率从大到小的顺序选取预设数目的号码,将该标识信息和选取的号码之间的对应关系发送至终端,而不再将该标识信息对应的使用频率较小的号码之间的对应关系发送至终端。Further, the corresponding relationship established by the server includes multiple numbers corresponding to each identification information, and the server may directly send the established corresponding relationship to the terminal, or first determine identification information with too many corresponding numbers from the established corresponding relationship, For the identification information, the frequency of use of each number corresponding to the identification information can be determined first, and then a preset number of numbers can be selected in order of frequency of use from large to small, and the corresponding relationship between the identification information and the selected numbers can be determined. sent to the terminal, instead of sending the corresponding relationship between numbers with less frequently used numbers corresponding to the identification information to the terminal.
其中,号码的使用频率可以为预设时长内该号码发送短信的数目或者还可以为其他数值,本实施例对此不做限定。Wherein, the frequency of use of the number may be the number of short messages sent by the number within a preset period of time or may be other values, which is not limited in this embodiment.
在步骤204中,终端接收到对应关系时,存储该对应关系,当终端检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定该陌生号码的标识信息。In step 204, when the terminal receives the corresponding relationship, it stores the corresponding relationship, and when the terminal detects a communication event initiated by an unfamiliar number, it determines the identification information of the unknown number according to the established corresponding relationship between the number and the identification information .
该终端接收到服务器发送的对应关系时,可以先存储该对应关系,在后续过程中,其他终端可以根据该终端的号码,向该服务器发起对该终端的通信事件,该服务器会根据该终端的号码,向该终端发送该通信事件,此时,该终端即可检测到该通信事件,在通信事件的提示界面上进行提示。When the terminal receives the corresponding relationship sent by the server, it can first store the corresponding relationship. In the subsequent process, other terminals can initiate a communication event of the terminal to the server according to the number of the terminal, and the server will number, and send the communication event to the terminal. At this time, the terminal can detect the communication event and prompt on the communication event prompt interface.
其中,该通信事件可以为通话事件或者接收到短信的事件等,本实施例对此不做限定。Wherein, the communication event may be a call event or an event of receiving a short message, etc., which is not limited in this embodiment.
本实施例中,如果该终端的通讯录中并未记录发起该通信事件的号码,则该号码对该终端来说为陌生号码,终端并没有记录该陌生号码的标识信息,此时为了确定该陌生号码的所有者,该终端可以根据预先存储的对应关系,确定该陌生号码的标识信息。In this embodiment, if the number that initiates the communication event is not recorded in the address book of the terminal, the number is an unfamiliar number to the terminal, and the terminal does not record the identification information of the unfamiliar number. For the owner of the strange number, the terminal can determine the identification information of the strange number according to the pre-stored correspondence.
在步骤205中,终端在该通信事件的提示界面上,显示该标识信息。In step 205, the terminal displays the identification information on the prompt interface of the communication event.
终端确定陌生号码的标识信息后,可以在该通信事件的提示界面上显示该陌生号码的标识信息,用户查看该提示界面时即可根据该标识信息获知陌生号码的所有者。After the terminal determines the identification information of the strange number, it can display the identification information of the strange number on the prompt interface of the communication event, and the user can know the owner of the strange number according to the identification information when viewing the prompt interface.
例如终端接收到陌生号码“1069XXXX8888”发起的通信事件时,可以根据对应关系确定该陌生号码的标识信息为“XX公司”,则在该通信事件的提示界面上,显示该标识信息“XX公司”。For example, when the terminal receives a communication event initiated by an unfamiliar number "1069XXXX8888", it can determine the identification information of the unfamiliar number as "XX Company" according to the corresponding relationship, and then display the identification information "XX Company" on the prompt interface of the communication event .
另外,该终端在显示该标识信息时,也可以显示该陌生号码,或者也可以不显示该陌生号码,本实施例对此不做限定。In addition, when the terminal displays the identification information, it may also display the unfamiliar number, or may not display the unfamiliar number, which is not limited in this embodiment.
需要说明的是,除了服务器建立对应关系并发送至终端这种方式之外,本实施例提供的号码标识方法还可以采用如下方式:It should be noted that, in addition to the way in which the server establishes a corresponding relationship and sends it to the terminal, the number identification method provided in this embodiment can also adopt the following ways:
1、服务器预先建立对应关系后,存储该对应关系,但并未将该对应关系发送至终端,当终端每次检测到陌生号码发起的通信事件时,可以向服务器发送查询请求,该查询请求携带该陌生号码,服务器接收到该查询请求后,根据预先建立好的号码与标识信息之间的对应关系,确定该陌生号码对应的标识信息,将该标识信息发送至终端,终端接收该陌生号码的标识信息,并在提示界面上显示该标识信息。1. After the server establishes the corresponding relationship in advance, it stores the corresponding relationship, but does not send the corresponding relationship to the terminal. When the terminal detects a communication event initiated by an unfamiliar number, it can send a query request to the server. The query request carries For the unfamiliar number, after receiving the query request, the server determines the identification information corresponding to the unfamiliar number according to the pre-established correspondence between the number and the identification information, and sends the identification information to the terminal, and the terminal receives the identification information of the unfamiliar number. Identification information, and display the identification information on the prompt interface.
2、服务器预先建立对应关系后,存储该对应关系,但并未将该对应关系发送至终端,当终端每次检测到陌生号码发起的通信事件时,可以向服务器发送查询请求,该查询请求携带该陌生号码,服务器接收到该查询请求后,根据预先建立好的号码与标识信息之间的对应关系,确定该陌生号码对应的标识信息,并且确定该标识信息对应的其他陌生号码,将该标识信息与确定的其他陌生号码之间的对应关系发送至终端,终端接收该对应关系,并根据该对应关系确定该陌生号码的标识信息,在提示界面上显示该标识信息。而且终端在接收到该标识信息对应的其他陌生号码发起的通信事件时,也能够快速确定其他陌生号码的标识信息。2. After the server establishes the corresponding relationship in advance, it stores the corresponding relationship, but does not send the corresponding relationship to the terminal. When the terminal detects a communication event initiated by an unfamiliar number, it can send a query request to the server. The query request carries For the unfamiliar number, after receiving the query request, the server determines the identification information corresponding to the unfamiliar number according to the pre-established correspondence between the number and the identification information, and determines other unfamiliar numbers corresponding to the identification information, and uses the identification information The corresponding relationship between the information and other determined unknown numbers is sent to the terminal, and the terminal receives the corresponding relationship, determines the identification information of the unknown number according to the corresponding relationship, and displays the identification information on the prompt interface. Moreover, when the terminal receives a communication event initiated by other unfamiliar numbers corresponding to the identification information, it can also quickly determine the identification information of other unfamiliar numbers.
3、服务器预先建立对应关系后,存储该对应关系,但并未将该对应关系发送至终端,当其他终端向该终端发起通信事件时,该服务器检测到该通信事件,根据已经建立的对应关系,确定该陌生号码的标识信息,并将该标识信息以及该通信事件的相关信息发送至终端,该终端在提示界面上显示该标识信息。3. After the server establishes the corresponding relationship in advance, it stores the corresponding relationship, but does not send the corresponding relationship to the terminal. When other terminals initiate a communication event to the terminal, the server detects the communication event, and according to the established corresponding relationship , determining the identification information of the unfamiliar number, and sending the identification information and information related to the communication event to the terminal, and the terminal displays the identification information on a prompt interface.
举例来说,服务器建立号码与标识信息之间的对应关系的过程可以包括以下步骤:For example, the process for the server to establish the corresponding relationship between the number and the identification information may include the following steps:
1、给定预设关键词集合K,如{A公司、X公司},给定一个月的短信集合S,每条短信由以下三元组构成:<发送号码,接收号码,短信内容>。根据预设关键词集合K从短信集合S中包括预设关键词的短信,得到短信集合Ssub,Ssub中短信的发送号码可以组成发送号码集合N。1. Given a preset keyword set K, such as {A company, X company}, given a monthly SMS set S, each SMS consists of the following triples: <sending number, receiving number, SMS content>. According to the preset keyword set K, the short message set Ssub is obtained from the short messages including the preset keywords in the short message set S, and the sending numbers of the short messages in Ssub can form the sending number set N.
如短信集合S中的样本短信分别为:For example, the sample text messages in the text message set S are:
A:<1069XXXX8888,134XXXX8888,【A公司】【邮件提醒】您收到一封邮件,请查收>;A: <1069XXXX8888, 134XXXX8888, [Company A] [Email Reminder] You have received an email, please check it>;
B:<1069XXXX8888,134XXXX8888,用户甲向你134****8888付款150.00元,请查收【X公司】>;B: <1069XXXX8888, 134XXXX8888, user A pays 150.00 yuan to your 134****8888, please check [X Company]>;
C:<1069XXXX8888,134XXXX9999,您本次操作的验证码是5889(20分钟内有效),请完成验证【本条免费】【A公司】>;C: <1069XXXX8888, 134XXXX9999, your verification code for this operation is 5889 (valid within 20 minutes), please complete the verification [this article is free] [Company A]>;
D:<1069XXXX8888,134XXXX5555,尊敬的客户您好,用户乙在5月10日10点30分给您来电,请及时回复>;D: <1069XXXX8888, 134XXXX5555, dear customer, user B called you at 10:30 on May 10, please reply in time>;
E:<1069XXXX7777,134XXXX5555,用户丙向你134****5555付款100.00元,请查收【X公司】>;E: <1069XXXX7777, 134XXXX5555, user C pays 100.00 yuan to your 134****5555, please check 【X Company】>;
则Ssub中包括短信B、C、E,短信的发送号码组成的发送号码集合N即为{1069XXXX8888,1069XXXX7777}。Then Ssub includes short messages B, C, and E, and the sending number set N composed of sending numbers of short messages is {1069XXXX8888, 1069XXXX7777}.
2、从短信集合S中筛选发送号码为Ni的短信集合S_numberi,从短信集合S_numberi中抽取标题,并采用另一种三元组格式表示抽取到的标题,将S_numberi中的每个三元组转换为新的三元组,得到集合R_numberi。2. Screen the short message collection S_numberi whose sending number is Ni from the short message collection S, extract the title from the short message collection S_numberi , and use another triplet format to represent the extracted title, and put each triplet in S_numberi The tuples are converted into new triples, resulting in the set R_numberi .
新三元组定位为<S_numberi,接收号码,标识信息>。The new triplet is positioned as <S_numberi , receiving number, identification information>.
如,对于发送号码为1069XXXX8888的样本短信A、B、C、D,得到的另一种三元组可以为:For example, for sample short messages A, B, C, and D sent with numbers 1069XXXX8888, another triplet can be obtained as:
由三元组<1069XXXX8888,134XXXX8888,【A公司】【邮件提醒】您收到一封邮件,请查收>得到另一种三元组为:<1069XXXX8888,134XXXX8888,{A公司、邮件提醒}>;From the triplet <1069XXXX8888, 134XXXX8888, [A company] [Email reminder] You have received an email, please check it> to get another triplet: <1069XXXX8888, 134XXXX8888, {A company, email reminder}>;
由三元组<1069XXXX8888,134XXXX8888,用户甲向你134****8888付款150.00元,请查收【X公司】>得到另一种三元组为:<1069XXXX8888,134XXXX8888,{X公司}>;From the triplet <1069XXXX8888, 134XXXX8888, user A pays you 134****8888 150.00 yuan, please check [X company]> to get another triplet: <1069XXXX8888, 134XXXX8888, {X company}>;
由三元组<1069XXXX8888,134XXXX9999,您本次操作的验证码是5889(20分钟内有效),请完成验证【本条免费】【A公司】>得到另一种三元组为<1069XXXX8888,134XXXX9999,{本条免费、A公司}>;From the triplet <1069XXXX8888, 134XXXX9999, your verification code for this operation is 5889 (valid within 20 minutes), please complete the verification [this article is free] [A company]> to get another triplet is <1069XXXX8888, 134XXXX9999, {This article is free, Company A}>;
由三元组<1069XXXX8888,134XXXX5555,尊敬的客户您好,用户乙在5月10日10点30分给您来电,请及时回复>得到另一种三元组为<1069XXXX8888,134XXXX5555,{}>;From the triplet <1069XXXX8888, 134XXXX5555, dear customer, user B called you at 10:30 on May 10th, please reply in time> Get another triplet as <1069XXXX8888, 134XXXX5555, {}> ;
3、将集合R_numberi中的三元组合并为新的三元组,新的三元组的格式为:<发送号码,标识信息,标识信息的出现次数>,从而可以得到集合T_numberi。3. Merge the triplets in the set R_numberi into a new triplet. The format of the new triplet is: <sending number, identification information, number of occurrences of the identification information>, so that the set T_numberi can be obtained.
如集合T可以为:For example, the set T can be:
<1069XXXX8888,“A公司”,2>;<1069XXXX8888,"Company A", 2>;
<1069XXXX8888,“邮件提醒”,1>;<1069XXXX8888,"Mail Alert", 1>;
<1069XXXX8888,“X公司”,1>;<1069XXXX8888,"Company X", 1>;
<1069XXXX8888,“本条免费”,1>;<1069XXXX8888,"This article is free", 1>;
<1069XXXX8888,“”,1>。<1069XXXX8888,"",1>.
4、将集合T_numberi中出现次数小于预设次数的三元组删除,得到新的集合Q_numberi,计算集合Q_numberi中每个标题在集合Q_numberi中的出现概率,选择出现概率最大的标题,则返回二元对集合<numberi,,titlei>,即将titlei作为发送号码numberi的标识信息,每个二元对即为一条号码与标识信息的对应关系。4. Delete the triplets whose occurrence times are less than the preset number of times in the set T_numberi to obtain a new set Q_numberi , calculate the occurrence probability of each title in the set Q_numberi in the set Q_numberi , and select the title with the highest occurrence probability, Returns a binary pair set <numberi , titlei >, that is, titlei is used as the identification information of the sent number numberi , and each binary pair is a corresponding relationship between a number and identification information.
如,发送号码1069XXXX8888和1069XXXX7777的对应关系分别可以表示为:For example, the corresponding relationship between sending numbers 1069XXXX8888 and 1069XXXX7777 can be expressed as:
<1069XXXX8888,A公司>;<1069XXXX8888, Company A>;
<1069XXXX7777,X公司>。<1069XXXX7777, Company X>.
本实施例利用海量的大数据短信作为归属分析的支撑,自动地从海量的大数据短信中挖掘各个所有者的发送号码,有利于聚合同一所有者的不同号码发出的短信,同时对发送号码进行标记,则用户在接收到该发送号码发出的短信或者打来的电话时,也能够获知该发送号码属于哪个所有者,提升了用户体验。This embodiment uses massive big data short messages as the support of attribution analysis, and automatically mines the sending numbers of each owner from the massive big data short messages, which is conducive to aggregating short messages sent by different numbers of the same owner, and at the same time, the sending numbers are analyzed. mark, the user can also know which owner the sending number belongs to when receiving a text message or a call from the sending number, which improves the user experience.
综上所述,本公开实施例中提供的号码标识方法,通过根据多个样本短信以及多个样本短信的发送号码进行统计,建立号码与标识信息之间的对应关系,当检测到陌生号码发起的通信事件时,根据已建立的对应关系,确定用于指示该陌生号码所有者的标识信息,在该通信事件的提示界面上,显示该标识信息,从而能够直观地对陌生号码进行标识,提醒用户该陌生号码的所有者,提高了灵活性。To sum up, the number identification method provided in the embodiment of the present disclosure establishes the corresponding relationship between the number and the identification information by making statistics based on multiple sample short messages and the sending numbers of multiple sample short messages. In the case of a communication event, according to the established corresponding relationship, determine the identification information used to indicate the owner of the strange number, and display the identification information on the prompt interface of the communication event, so that the strange number can be intuitively identified and reminded The user is the owner of the unknown number, which improves the flexibility.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.
图3是根据一示例性实施例示出的一种号码标识装置的框图,如图3所示,该号码标识装置包括:第一确定模块301和显示模块302。FIG. 3 is a block diagram of a number identification device according to an exemplary embodiment. As shown in FIG. 3 , the number identification device includes: a first determination module 301 and a display module 302 .
该第一确定模块301,被配置为用于当检测到陌生号码发起的通信事件时,根据已建立的号码与标识信息之间的对应关系,确定该陌生号码的标识信息,该标识信息用于指示该陌生号码的所有者,该对应关系根据多个样本短信以及该多个样本短信的发送号码统计得到;The first determining module 301 is configured to, when a communication event initiated by an unfamiliar number is detected, determine the identification information of the unfamiliar number according to the established correspondence between the number and the identification information, and the identification information is used for Indicating the owner of the unfamiliar number, the corresponding relationship is obtained according to the statistics of multiple sample short messages and the sending numbers of the multiple sample short messages;
该显示模块302,被配置为用于在该通信事件的提示界面上,显示该标识信息。The display module 302 is configured to display the identification information on the prompt interface of the communication event.
综上所述,本公开实施例中提供的号码标识装置,通过根据多个样本短信以及多个样本短信的发送号码进行统计,建立号码与标识信息之间的对应关系,当检测到陌生号码发起的通信事件时,根据已建立的对应关系,确定用于指示该陌生号码所有者的标识信息,在该通信事件的提示界面上,显示该标识信息,从而能够直观地对陌生号码进行标识,提醒用户该陌生号码的所有者,提高了灵活性。To sum up, the number identification device provided in the embodiments of the present disclosure establishes the corresponding relationship between numbers and identification information by making statistics based on multiple sample short messages and the sending numbers of multiple sample short messages. In the case of a communication event, according to the established corresponding relationship, determine the identification information used to indicate the owner of the strange number, and display the identification information on the prompt interface of the communication event, so that the strange number can be intuitively identified and reminded The user is the owner of the unknown number, which improves the flexibility.
参见图4,在另一实施例中,该装置还包括:获取模块303、提取模块304和对应关系建立模块305。Referring to FIG. 4 , in another embodiment, the device further includes: an acquisition module 303 , an extraction module 304 and a correspondence relationship establishment module 305 .
该获取模块303,被配置为用于获取多个样本短信的发送号码;The obtaining module 303 is configured to obtain sending numbers of a plurality of sample short messages;
该提取模块304,被配置为用于对于获取到的每个发送号码,按照预设标记符,从该发送号码对应的样本短信中提取该预设标记符对应的标识信息;The extracting module 304 is configured to, for each acquired sending number, extract the identification information corresponding to the preset tag from the sample short message corresponding to the sending number according to the preset tag;
该对应关系建立模块305,被配置为用于建立该发送号码与该标识信息之间的对应关系。The corresponding relationship establishing module 305 is configured to establish a corresponding relationship between the sending number and the identification information.
在另一实施例中,该获取模块303还用于获取多个第一样本短信,将该多个第一样本短信中不包括任一预设关键词的样本短信删除,得到剩余的多个第二样本短信,获取该多个第二样本短信的发送号码。In another embodiment, the obtaining module 303 is also used to obtain a plurality of first sample short messages, delete sample short messages that do not include any preset keyword among the plurality of first sample short messages, and obtain the remaining multiple short messages. second sample short messages, and obtain the sending numbers of the multiple second sample short messages.
参见图5,在另一实施例中,该装置还包括:第二确定模块306。Referring to FIG. 5 , in another embodiment, the device further includes: a second determination module 306 .
该第二确定模块306,被配置为用于如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数;The second determination module 306 is configured to determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number if a plurality of identification information is extracted from the sample short message corresponding to the sending number;
该对应关系建立模块305还被配置为用于建立该发送号码与该多个标识信息中出现次数大于预设次数的标识信息之间的对应关系。The corresponding relationship establishing module 305 is further configured to establish a corresponding relationship between the sending number and identification information whose occurrence times are greater than a preset number of times among the plurality of identification information.
在另一实施例中,该对应关系建立模块305还被配置为用于确定该多个标识信息中出现次数大于预设次数的标识信息,对应存储该发送号码与该确定的标识信息。In another embodiment, the correspondence establishing module 305 is further configured to determine identification information that appears more than a preset number of times among the plurality of identification information, and store the sending number and the determined identification information correspondingly.
在另一实施例中,该标识信息在该发送号码对应的样本短信中的出现次数为在该发送号码对应的样本短信中,提取出该标识信息的样本短信的数目;或者,In another embodiment, the number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of sample short messages from which the identification information is extracted in the sample short message corresponding to the sending number; or,
该标识信息在该发送号码对应的样本短信中的出现次数为在该发送号码对应的样本短信中,提取出该标识信息的样本短信的接收号码的数目。The number of occurrences of the identification information in the sample short message corresponding to the sending number is the number of receiving numbers of the sample short message from which the identification information is extracted in the sample short message corresponding to the sending number.
参见图6,在另一实施例中,该装置还包括:第二确定模块306和计算模块307。Referring to FIG. 6 , in another embodiment, the device further includes: a second determination module 306 and a calculation module 307 .
该第二确定模块306,被配置为用于如果从该发送号码对应的样本短信中提取到多个标识信息,确定提取到的每个标识信息在该发送号码对应的样本短信中的出现次数;The second determination module 306 is configured to determine the number of occurrences of each extracted identification information in the sample short message corresponding to the sending number if a plurality of identification information is extracted from the sample short message corresponding to the sending number;
该计算模块307,被配置为用于根据每个标识信息的出现次数和该多个标识信息的出现次数总和,计算每个标识信息在该多个标识信息中的出现概率;The calculation module 307 is configured to calculate the occurrence probability of each identification information in the plurality of identification information according to the occurrence times of each identification information and the sum of the occurrence times of the plurality of identification information;
该对应关系建立模块305还被配置为用于建立该发送号码与该多个标识信息中出现概率大于预设概率的标识信息之间的对应关系。The corresponding relationship establishing module 305 is further configured to establish a corresponding relationship between the sending number and identification information whose occurrence probability is greater than a preset probability among the plurality of identification information.
在另一实施例中,该对应关系建立模块305还被配置为用于确定该多个标识信息中出现概率大于预设概率的标识信息,对应存储该发送号码与该确定的标识信息。In another embodiment, the correspondence establishing module 305 is further configured to determine identification information whose occurrence probability is greater than a preset probability among the plurality of identification information, and store the sending number and the determined identification information correspondingly.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图7是根据一示例性实施例示出的一种号码标识装置的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a number identification device according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)接口712,传感器组件714,以及通信组件716。7, apparatus 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器718来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 718 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .
存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 706 provides power to various components of the device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700 .
多媒体组件708包括在装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, the sensor component 714 can also detect a change in the position of the device 700 or a component of the device 700, the user Presence or absence of contact with device 700 , device 700 orientation or acceleration/deceleration and temperature change of device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如Wi-Fi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述号码标识方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), controller, microcontroller, microprocessor or other electronic components for performing the above number identification method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器718执行以完成上述号码标识方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 718 of the device 700 to implement the above number identification method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
图8是根据另一示例性实施例示出的一种号码标识装置的框图。例如,装置800可以被提供为一服务器。参照图8,装置800包括处理组件802,其进一步包括一个或多个处理器,以及由存储器804所代表的存储器资源,用于存储可由处理组件802的执行的指令,例如应用程序。存储器804中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件802被配置为执行指令,以执行上述号码标识方法。Fig. 8 is a block diagram of a number identification device according to another exemplary embodiment. For example, the apparatus 800 may be provided as a server. 8, apparatus 800 includes processing component 802, which further includes one or more processors, and a memory resource represented by memory 804 for storing instructions executable by processing component 802, such as application programs. The application program stored in memory 804 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 802 is configured to execute instructions to perform the above-mentioned number identification method.
装置800还可以包括一个电源组件806被配置为执行装置800的电源管理,一个有线或无线网络接口808被配置为将装置800连接到网络,和一个输入输出(I/O)接口810。装置800可以操作基于存储在存储器804的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 800 may also include a power component 806 configured to perform power management of device 800 , a wired or wireless network interface 808 configured to connect device 800 to a network, and an input-output (I/O) interface 810 . The apparatus 800 may operate based on an operating system stored in the memory 804, such as Windows Server™ , Mac OS X™ , Unix™ , Linux™ , FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610357674.6ACN106101464A (en) | 2016-05-26 | 2016-05-26 | Number mark method and device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610357674.6ACN106101464A (en) | 2016-05-26 | 2016-05-26 | Number mark method and device |
| Publication Number | Publication Date |
|---|---|
| CN106101464Atrue CN106101464A (en) | 2016-11-09 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610357674.6APendingCN106101464A (en) | 2016-05-26 | 2016-05-26 | Number mark method and device |
| Country | Link |
|---|---|
| CN (1) | CN106101464A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108616665A (en)* | 2018-04-26 | 2018-10-02 | 北京小米移动软件有限公司 | The method, apparatus and storage medium of number mark |
| CN109561402A (en)* | 2017-09-26 | 2019-04-02 | 中国电信股份有限公司 | Information acquisition method, device and mobile terminal |
| CN110866048A (en)* | 2019-11-15 | 2020-03-06 | 杭州数梦工场科技有限公司 | Method and device for acquiring association rule of certificate information |
| CN113612886A (en)* | 2021-07-09 | 2021-11-05 | 荣耀终端有限公司 | Strange number processing method and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006113797A2 (en)* | 2005-04-20 | 2006-10-26 | Verisign, Inc. | Sender identification system and method |
| CN104320525A (en)* | 2014-09-19 | 2015-01-28 | 小米科技有限责任公司 | Method and device for identifying telephone number |
| CN105162934A (en)* | 2015-09-11 | 2015-12-16 | 深圳市金立通信设备有限公司 | Communication number marking method and terminal |
| CN105430654A (en)* | 2015-10-30 | 2016-03-23 | 小米科技有限责任公司 | Method and device used for identifying number attribution information |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2006113797A2 (en)* | 2005-04-20 | 2006-10-26 | Verisign, Inc. | Sender identification system and method |
| CN104320525A (en)* | 2014-09-19 | 2015-01-28 | 小米科技有限责任公司 | Method and device for identifying telephone number |
| CN105162934A (en)* | 2015-09-11 | 2015-12-16 | 深圳市金立通信设备有限公司 | Communication number marking method and terminal |
| CN105430654A (en)* | 2015-10-30 | 2016-03-23 | 小米科技有限责任公司 | Method and device used for identifying number attribution information |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109561402A (en)* | 2017-09-26 | 2019-04-02 | 中国电信股份有限公司 | Information acquisition method, device and mobile terminal |
| CN108616665A (en)* | 2018-04-26 | 2018-10-02 | 北京小米移动软件有限公司 | The method, apparatus and storage medium of number mark |
| CN108616665B (en)* | 2018-04-26 | 2020-12-18 | 北京小米移动软件有限公司 | Method, device and storage medium for number marking |
| CN110866048A (en)* | 2019-11-15 | 2020-03-06 | 杭州数梦工场科技有限公司 | Method and device for acquiring association rule of certificate information |
| CN113612886A (en)* | 2021-07-09 | 2021-11-05 | 荣耀终端有限公司 | Strange number processing method and computer-readable storage medium |
| CN113612886B (en)* | 2021-07-09 | 2023-04-11 | 荣耀终端有限公司 | Strange number processing method and computer-readable storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN105843615B (en) | Notification message processing method and device | |
| CN106550085A (en) | Contact person's display methods and device | |
| CN106204097A (en) | Information-pushing method, device and mobile terminal | |
| CN105892810A (en) | Message display method and device | |
| CN106060257A (en) | Method and device for viewing relevant information of contact | |
| CN106101363A (en) | Income prompting method and device | |
| CN106817492A (en) | The method and apparatus that red packet activity is reminded | |
| CN106293737A (en) | The treating method and apparatus of notification message | |
| CN106101464A (en) | Number mark method and device | |
| CN106331328A (en) | Method and device for information prompt | |
| WO2016029638A1 (en) | Method and device for processing communication identification | |
| CN108668023A (en) | Communication information processing method and device | |
| CN106921958A (en) | The method and apparatus for quitting the subscription of business | |
| CN106130876A (en) | A kind of method and device of information flag | |
| CN105704286A (en) | Communication information display method and device | |
| CN107316207A (en) | A kind of method and apparatus for obtaining bandwagon effect information | |
| CN106572003A (en) | User information recommendation method and device | |
| CN106506775A (en) | Method, device, and terminal device for displaying contact list | |
| CN106961510A (en) | A kind of voice communication processing method and processing device | |
| WO2019056391A1 (en) | Information processing method and apparatus, mobile terminal, and computer readable storage medium | |
| CN105978797A (en) | Message replying method and device | |
| CN106506808A (en) | Method and device for prompting communication messages | |
| CN107846481A (en) | account management method and device | |
| CN106686263A (en) | Communication processing method and device | |
| CN108092879A (en) | Message prompt method and device |
| 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:20161109 | |
| RJ01 | Rejection of invention patent application after publication |