The invention discloses a method for identifying the attribution information of short message numbers, which comprises the following steps: extracting several initial numbers to form an initial set of numbers; replacing the last unsubstituted character of the initial number with an alternative variable to obtain an alternative number; putting the initial number corresponding to the substitute number whose coincidence degree is less than the preset coincidence degree into the intermediate set; and putting the coincidence degree into the intermediate set of numbers; The substitution numbers with preset coincidence degree are merged, and the merged numbers are put into the intermediate number set; all the numbers in the intermediate number set are taken as the updated initial numbers; the number of times that all the numbers in the iteration to the intermediate number set are replaced by the substitution variables is N, and the prefix numbers of all the numbers in the intermediate number set obtained after the iteration are selected as the output number set; Do not output the attribution information corresponding to each prefix number in the set of numbers. The method for identifying the attribution information of short message numbers disclosed by the invention can judge the attribution information of a large number of short message numbers and improve the efficiency and accuracy of information acquisition of users.
【技术实现步骤摘要】
短信号码归属信息的识别方法、装置及存储介质
本专利技术涉及短信号码识别
,尤其涉及一种短信号码归属信息的识别方法、装置及存储介质。
技术介绍
随着大数据技术的发展,用户收到的来自各个企业的推送短信也日益增多。在现有技术中,短信是由短代或运营商进行发出的,当用户收到短信时,移动终端显示的短信来源都是一个具体的号码,导致用户无法确认该短信的来源,也无法判断该短信的来源是否与短信内容相符。
技术实现思路
本专利技术实施例提供一种短信号码归属信息的识别方法,能够判断大量短信号码的归属信息,提高用户的信息获取效率和准确度。本专利技术实施例一提供一种短信号码归属信息的识别方法,包括如下步骤:S1:提取若干个初始号码组成初始号码集;S2:将所述初始号码的最后一位未经替换的字符替换为替代变量,得到替代号码;将所述替代号码放入替代号码集;将所述替代号码集中重合度小于预设重合度的替代号码对应的初始号码放入中间号码集;将所述替代号码集中重合度不小于预设重合度的替代号码进行合并,将合并后的合并号码放入中间号码集;将所述中间号码集中的所有号码作为更新后的初始号码;S3:对步骤S2进行迭代,直至所述中间号码集中的所有号码被替代变量替换的次数为N,选取迭代后得到的中间号码集中所有号码的前缀号码,作为输出号码集;其中,N为不小于零的整数,所述前缀号码为排列在所述替代变量之前的号段;S4:识别所述输出号码集中各个前缀号码对应的归属信息。作为上述方案的改进,所述重合度具体为:在所述替代号码集中,未经所述替代变量替换的号段相同的替代号码出现的频数。作为上述方案的改进,步骤S1还包括:将所述初 ...
【技术保护点】
1.一种短信号码归属信息的识别方法,其特征在于,包括如下步骤:S1:提取若干个初始号码组成初始号码集;S2:将所述初始号码的最后一位未经替换的字符替换为替代变量,得到替代号码;将所述替代号码放入替代号码集;将所述替代号码集中重合度小于预设重合度的替代号码对应的初始号码放入中间号码集;将所述替代号码集中重合度不小于预设重合度的替代号码进行合并,将合并后的合并号码放入中间号码集;将所述中间号码集中的所有号码作为更新后的初始号码;S3:对步骤S2进行迭代,直至所述中间号码集中的所有号码被替代变量替换的次数为N,选取迭代后得到的中间号码集中所有号码的前缀号码,作为输出号码集;其中,N为不小于零的整数,所述前缀号码为排列在所述替代变量之前的号段;S4:识别所述输出号码集中各个前缀号码对应的归属信息。
【技术特征摘要】
1.一种短信号码归属信息的识别方法,其特征在于,包括如下步骤:S1:提取若干个初始号码组成初始号码集;S2:将所述初始号码的最后一位未经替换的字符替换为替代变量,得到替代号码;将所述替代号码放入替代号码集;将所述替代号码集中重合度小于预设重合度的替代号码对应的初始号码放入中间号码集;将所述替代号码集中重合度不小于预设重合度的替代号码进行合并,将合并后的合并号码放入中间号码集;将所述中间号码集中的所有号码作为更新后的初始号码;S3:对步骤S2进行迭代,直至所述中间号码集中的所有号码被替代变量替换的次数为N,选取迭代后得到的中间号码集中所有号码的前缀号码,作为输出号码集;其中,N为不小于零的整数,所述前缀号码为排列在所述替代变量之前的号段;S4:识别所述输出号码集中各个前缀号码对应的归属信息。2.如权利要求1所述的一种短信号码归属信息的识别方法,其...
【专利技术属性】
技术研发人员:段雨洛,吴小山,屈金强,
申请(专利权)人:珠海市小源科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。