CN105162984B - Telephone number recognition methods and device - Google Patents

Telephone number recognition methods and device Download PDF

Info

Publication number
CN105162984B
CN105162984B CN201510614311.1A CN201510614311A CN105162984B CN 105162984 B CN105162984 B CN 105162984B CN 201510614311 A CN201510614311 A CN 201510614311A CN 105162984 B CN105162984 B CN 105162984B
Authority
CN
China
Prior art keywords
telephone number
text information
belonging
classification
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510614311.1A
Other languages
Chinese (zh)
Other versions
CN105162984A (en
Inventor
刘学
王广健
廉海鹰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510614311.1A priority Critical patent/CN105162984B/en
Publication of CN105162984A publication Critical patent/CN105162984A/en
Application granted granted Critical
Publication of CN105162984B publication Critical patent/CN105162984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to a kind of telephone number recognition methods and devices.This method includes:Obtain text information;Whether detect in the text information includes telephone number;When detecting in the text information includes telephone number, the text information is analyzed, according to classification belonging to keyword or the semantic determining text information in the information;Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the kind intermediate item of category database belonging to category database belonging to the text information and the telephone number corresponds.Technical solution classification according to belonging to keyword or semantic determining text information in text information, and classification belonging to text information is determined as classification belonging to telephone number, realize the classification of text information and telephone number, consequently facilitating user searches telephone number, the lookup time of telephone number is saved.

Description

Telephone number recognition methods and device
Technical field
This disclosure relates to field of communication technology more particularly to a kind of telephone number recognition methods and device.
Background technique
In the related technology, there are the incoming call behavior of various malice, such as telemarketing, telephone fraud, malice harassing and wrecking behavior, shadows The life of user is rung.In this case, the malice call reminding technical application based on number mark and give birth to, phone is pushed away The behaviors such as pin, telephone fraud, malice harassing and wrecking play the role of great containment.
Summary of the invention
The embodiment of the present disclosure provides a kind of telephone number recognition methods and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of telephone number recognition methods are provided, including:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according in the information Keyword or semantic determine classification belonging to the text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text envelope The kind intermediate item of category database belonging to category database belonging to breath and the telephone number corresponds.
The technical scheme provided by this disclosed embodiment can include the following benefits:According to the key in text information Classification belonging to word or semantic determining text information, and classification belonging to text information is determined as class belonging to telephone number Not, it realizes the classification of text information and telephone number, consequently facilitating user searches telephone number, saves the lookup of telephone number Time.
In one embodiment, the method also includes:
Obtain and record the sending time of the text information;
The sending time of the text information is monitored;
When the time interval of the sending time and current time that monitor described text information the last time is more than default When long, determine that the telephone number has failed.
The technical scheme provided by this disclosed embodiment can include the following benefits:When telephone number the last time When the time interval of extraction time and current time is more than preset duration, determines that the telephone number has failed, ensure that phone The timeliness of number.
In one embodiment, described that classification belonging to the text information is determined as class belonging to the telephone number Before not, the method also includes:
The text formatting to the information is determined according to classification belonging to the text information;
According to the text formatting, the telephone number is extracted from the text information.
The technical scheme provided by this disclosed embodiment can include the following benefits:Before extracting number, first root It is believed that classification described in breath determines the text formatting of information, number is extracted according to corresponding text formatting, improves telephone number Success rate of extracting.
In one embodiment, the method also includes:
According to classification belonging to the telephone number by the telephone number in the telephone number database of network side into Row classification storage;
The telephone number database of the network side is synchronized to default terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:Telephone number is stored in network In the number database of side, realize the backup to telephone number, avoid because mobile phone damage or lose when caused by data lose It loses;The telephone number database of network side is synchronized to default terminal, user is made still to be able to realize number in no network Identification.
In one embodiment, the method also includes:
When the telephone number has failed, the phone number is deleted from the telephone number database of the network side Code.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the phone number from network side Failure number is deleted in code database, avoids the waste of memory space.
According to the second aspect of an embodiment of the present disclosure, a kind of telephone number recognition device is provided, including:
First obtains module, for obtaining text information;
Detection module, for whether detecting in the text information including telephone number;
Analysis module, for analyzing the text information, root when detecting in the text information includes telephone number Classification belonging to keyword or the semantic determining text information according to the text information;
First determining module, for classification belonging to the text information to be determined as class belonging to the telephone number Not, wherein the kind intermediate item of category database belonging to category database belonging to the text information and the telephone number It corresponds.
In one embodiment, described device further includes:
Second obtains module, for obtaining and recording the sending time of the text information;
Monitoring modular is monitored for the sending time to the text information;
Second determining module, for when the sending time and current time for monitoring described text information the last time when Between interval be more than preset duration when, determine that the telephone number has failed.
In one embodiment, described device further includes:
Third determining module, for classification belonging to the text information to be determined as classification belonging to the telephone number Before, the classification according to belonging to the text information determines the text formatting to the information;
Extraction module, for extracting the telephone number from the text information according to the text formatting.
In one embodiment, described device further includes:
Memory module, for the classification according to belonging to the telephone number by the telephone number network side phone number Classification storage is carried out in code database;
Synchronization module, for the telephone number database of the network side to be synchronized to default terminal.
In one embodiment, described device further includes:
Removing module, for being deleted from the telephone number database of the network side when the telephone number has failed Except the telephone number.
According to the third aspect of an embodiment of the present disclosure, a kind of telephone number recognition device is provided, including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text envelope Classification belonging to the keyword of breath or the semantic determining text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text envelope The kind intermediate item of category database belonging to category database belonging to breath and the telephone number corresponds.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment;
Fig. 5 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment;
Figure 10 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment;
Figure 11 is a kind of block diagram for telephone number recognition device shown according to an exemplary embodiment;
Figure 12 is a kind of block diagram of device for telephone number identification shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment, as shown in Figure 1, Telephone number recognition methods are for including the following steps S11-S14 in terminal or server:
In step s 11, text information is obtained;
In step s 12, whether detect in text information includes telephone number;
In step s 13, when detecting in text information includes telephone number, text information is analyzed, according in information Keyword or semantic determine classification belonging to text information;
In step S14, classification belonging to text information is determined as classification belonging to telephone number, wherein text envelope The kind intermediate item of category database belonging to category database belonging to breath and telephone number corresponds.
Text information in above-mentioned steps S11 can be online express delivery information, logistics information, information of making a reservation, Yong Hutong Cross the short message etc. of terminal upload.
By taking the short message that user is uploaded by terminal as an example, when executing this programme by server, server obtains user The short message of upload, whether include telephone number, for example, can detect in the information content with the presence or absence of more if detecting in text information Position continuous number, and if it exists, then illustrate to include telephone number in text information.It include phone number in text information when detecting When code, according in short message keyword or the semantic analysis short message belonging to classification, for example, when including keyword in short message " take-away ", snack food etc., by analysis, determine classification belonging to text information be " food delivery " classification, when in short message comprising close Keyword " package ", " posting part " etc. determine that classification belonging to the information is " express delivery " classification by analysis, in another example, when in information Holding is " your fast food has begun dispatching ", by carrying out semantics recognition to the information content, determines classification belonging to the information For " food delivery " classification.When passing through analysis, after determining classification belonging to information, telephone number is extracted from the information, the phone The classification of number and the classification of the information are identical.In the present embodiment, category database and telephone number belonging to text information The kind intermediate item of affiliated category database corresponds, for example, the kind category in the category database belonging to text information Mesh is:Food delivery, express delivery, advertisement, then the kind intermediate item in the category database belonging to telephone number be also:It is food delivery, express delivery, wide It accuses.
In addition, server can also obtain the information of telephone number by other channels, for example, the logistics in shopping website Information, the advertising information comprising hotline, information of making a reservation etc., and above-mentioned steps S12-S14 is executed, realize mentioning for telephone number It takes and classifies.
When executing this programme by terminal, terminal is by obtaining online express delivery information, information of making a reservation, receiving other use The short message etc. that family is sent, obtain include telephone number information, and according in information keyword or semantic analysis information belonging to Classification, for example, user receive short message " your take-away by dispatching person XX (15XXXXXXXXX) be you dispense " when, according to point It analyses, the keyword " take-away " and " dispatching person " in the message are consistent with the predetermined keyword in food delivery classification, then from this information 13 bit digitals in middle extraction bracket are stored in the corresponding phone number of " food delivery " classification as telephone number, and by the telephone number In code data.In another example when user receiving end short message " your take-away has begun dispatching ", according to the class of the semantic analysis information It Wei not " food delivery " classification.
The technical scheme provided by this disclosed embodiment can include the following benefits:According to the key in text information Classification belonging to word or semantic determining text information, and classification belonging to text information is determined as class belonging to telephone number Not, it realizes the classification of text information and telephone number, consequently facilitating user searches telephone number, saves the lookup of telephone number Time.
In one embodiment, as shown in Fig. 2, method further includes following steps S21-S23:
In the step s 21, the sending time of simultaneously recording text information is obtained;
In step S22, the sending time of text information is monitored;
In step S23, when the time interval of the sending time and current time that monitor text information the last time is super When crossing preset duration, determine that telephone number has failed.
In view of the job change of business personnel, the factor for the number of changing, telephone number has certain timeliness, it is then desired to Periodically expired number is deleted.In the present solution, the failure duration threshold value of presetting number of cell phone, obtains the extraction of telephone number Time determines the electricity when the interval of the extraction time of telephone number the last time and current time is more than preset time threshold It is no longer valid to talk about number, then deletes the telephone number of the failure from the corresponding telephone number data of respective classes.
For example, the failure duration threshold value of presetting number of cell phone is 5 days, the extraction of a telephone number in " food delivery " classification is obtained Time determines that the telephone number has failed when the time interval of the extraction time and current time is more than five days, i.e., from " sending The telephone number is deleted in meal " classification.
The technical scheme provided by this disclosed embodiment can include the following benefits:When telephone number the last time When the time interval of extraction time and current time is more than preset duration, determines that telephone number has failed, ensure that telephone number Timeliness avoid the waste of memory space by deleting the number of failure from telephone number data.
In one embodiment, as shown in figure 3, classification belonging to text information is determined as classification belonging to telephone number It before, further include following steps S31-S32:
In step S31, the classification according to belonging to information determines the text formatting to information;
In step s 32, according to text formatting, telephone number is extracted from text information.
For example, the text formatting of much information can be also preset in this programme according to the classification belonging to information, for example, " person of sending with charge free XX (XXXXXXXXXXX) format " is preset in express delivery classification, " askes XXX-XXX-XXXX in detail.【ABCD】Format " is being sent " taking out by dispatching person XX (15XXXXXXXXX) is your dispatching " etc. is preset in classification of eating.When user receives short message " your express delivery Sending part, the person of sending with charge free XX (150XXXXXXXX) ", which is determined according to the predetermined keyword " express delivery " in the short message, " sending part " Breath generic is express delivery classification, and " the person of sending with charge free XX (XXXXXXXXXXX) lattice in the content in the information and express delivery classification Formula " matching, thus, according to text format, from the telephone number extracted in short message in above-mentioned bracket.
It, will be into after reminding the text of short message content of logistics information such as Courier Service quotient in addition, service class industry now Administrative office's name, for example, user receives short message, " XXX self-service express delivery cabinet has been arrived in your express delivery, please takes away in time with password XXXX, askes in detail XXX-XXXX-XXXX.【ABCD】", " ABCD " in above-mentioned bracket is the signature of service provider, and " XXX-XXXX-XXXX " Telephone number as to be extracted.
The technical scheme provided by this disclosed embodiment can include the following benefits:Before extracting number, first root It is believed that the classification of breath determines the text formatting of information, number is extracted according to corresponding text formatting, improves mentioning for telephone number Take success rate.
In one embodiment, as shown in figure 4, method further includes following steps S41-S42:
In step S41, the classification according to belonging to telephone number by telephone number network side telephone number database Middle carry out classification storage;
In step S42, the telephone number database of network side is synchronized to default terminal.
After determining classification belonging to telephone number, by the telephone number in the telephone number database of network side root It is stored according to classification, also, the telephone number database of the network side is synchronized to preset terminal.When this method is by mentioning For Number Identification Service when executing using corresponding background server, which can be to be mounted with the end of the application End, when this method is executed by providing background server corresponding to the website of Number Identification Service, which can be with Terminal corresponding to registration user for the website.
The technical scheme provided by this disclosed embodiment can include the following benefits:Telephone number is stored in network In the number database of side, realize the backup to telephone number, avoid because mobile phone damage or lose when caused by data lose It loses;The telephone number database of network side is synchronized to default terminal, user is made still to be able to realize number in no network Identification.
In one embodiment, method further includes:
When telephone number has failed, telephone number is deleted from the telephone number database of network side.
In the present solution, the telephone number is deleted from the telephone number database of network side when telephone number failure It removes.
It should be noted that default terminal can be synchronized to the telephone number database for deleting failure number simultaneously.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the phone number from network side Failure number is deleted in code database, avoids the waste of memory space.
Fig. 5 is a kind of flow chart of telephone number recognition methods shown according to an exemplary embodiment, as shown in figure 5, Telephone number recognition methods are for including the following steps S501-S512 in terminal or server:
In step S501, text information is obtained;
Whether in step S502, detecting in text information includes telephone number;
In step S503, when detecting in text information includes telephone number, text information is analyzed, according to text envelope Classification belonging to the keyword of breath or semantic determining text information;
In step S504, the classification according to belonging to text information determines the text formatting to information;
In step S505, according to text formatting, telephone number is extracted from text information;
In step S506, classification belonging to text information is determined as classification belonging to telephone number;
In step s 507, the classification according to belonging to telephone number by telephone number network side telephone number database Middle carry out classification storage;
In step S508, the telephone number database of network side is synchronized to default terminal;
In step S509, the sending time of simultaneously recording text information is obtained;
In step S510, the sending time of text information is monitored;
In step S511, when the time interval of the sending time and current time that monitor text information the last time is super When crossing preset duration, determine that telephone number has failed;
In step S512, when telephone number has failed, phone number is deleted from the telephone number database of network side Code.
The executing subject of this programme can be server, be also possible to terminal, below for different executing subjects, to this Scheme is described respectively.
When executing subject is server, the phone number of information generic can be extracted from the short message that user uploads Code, or the telephone number of information generic is obtained from the information on services that the service provider of logistics, business of making a reservation provides:
One, the telephone number of information generic is extracted from the short message that user uploads
In the background server that logistics service is provided, keyword corresponding to multiple classifications and text formatting have been preset, For example, predetermined keyword " package ", " person of sending with charge free ", " posting part " etc., pre-set text format are the " person of sending with charge free XX in express delivery classification (XXXXXXXXXXX)".When a package is sent to destination, the person of sending with charge free the XX of the package can upload text envelope according to preset format It ceases to server, such as " package that waybill number is XX has been sent to destination, the person of sending with charge free XX (XXXXXXXXXXX) ", works as service It include telephone number in this information, at this point, further analyzing this information by analysis when device receives this information In keyword or semanteme, wherein " package ", " person of sending with charge free " these keywords are matched with the predetermined keyword in express delivery classification, Accordingly it is determined that the information belongs to express delivery classification, which is matched with the pre-set text format in express delivery classification, is detected Content in the information meets " person of sending with charge free XX (XXXXXXXXXXX) " format match preset in express delivery classification, thus, it can basis Text format extracts telephone number from corresponding position, extracts the multidigit continuous number in bracket as telephone number, also, The telephone number extracted is stored in the telephone number data of express delivery classification.Furthermore it is possible to by the phone number yardage of storage According to default terminal is sent to, for example, being sent when the server is the background server of Courier Service when receiving the person of sending with charge free The information when, send that information to the terminal of express delivery recipient.Secondly, considering the job change of business personnel, the number of changing Factor, telephone number has certain timeliness, it is then desired to delete expired number.In the present solution, predetermined telephone number The failure duration threshold value of code records the sending time of the information, and to the text when receiving the text information of user's upload The sending time of information is detected, when the sending time of text information the last time and the time interval of current time are more than When preset time threshold, determine that the telephone number is no longer valid, then by the telephone number of the failure from the phone number of generic It is deleted in code data.
It also include telephone number it should be noted that both including category database belonging to text information in the server Affiliated category database, also, the kind of category database belonging to category database belonging to text information and telephone number Intermediate item corresponds, for example, the kind intermediate item in the category database belonging to text information is:Food delivery, express delivery, advertisement, Then the kind intermediate item in the category database belonging to telephone number is also:Food delivery, express delivery, advertisement.
Secondly, the above method can be also used for providing in the server of number mark service, recognize for example, server can receive The telephone number that card user is sent by short message, and for the type of the number, under normal circumstances, user needs to a certain Number is marked, and the incoming call for needing to be connected to the number could be marked the number in received call, and in the application, Certification user actively can be marked destination phone numbers by way of short message, for example, short message can be transmitted in certification user " telephone number that XXXXXXXXXX is promotions personnel ", server is determined according to the keyword " ad promotions " in the short message The classification of the short message be promote classification, and meet promote classification in pre-set text format " XXXXXXXXXX be ad promotions people The telephone number of member ", can extract the multidigit continuous number in the short message as telephone number, and deposit according to text format It stores up in promoting the corresponding telephone number data of classification, meanwhile, the data of storage can be sent to the terminal of installation respective application In.
Two, the phone of information generic is obtained from the information on services that the service provider of logistics, business of making a reservation provides Number
Above-mentioned server is to have logistic information management function in the background server or shopping platform for provide logistics service The server of energy has preset keyword corresponding to multiple classifications and text formatting in the server, for example, in express delivery class In not, predetermined keyword " package ", " person of sending with charge free ", " posting part " etc., pre-set text format are the " person of sending with charge free XX (XXXXXXXXXXX)".When a package is sent to terminal, transfer site server can send corresponding text information and inform service Device, as " waybill number be XX package with being sent to XX, the person of sending with charge free XX (XXXXXXXXXXX) ", when server receives this When information, by analysis, includes telephone number in this information, this information is further analyzed and is learnt:This " package " in information, " person of sending with charge free " these keywords are matched with the predetermined keyword in express delivery classification, accordingly it is determined that the information Belong to express delivery classification, secondly, the content in the information meets " person of sending with charge free XX (XXXXXXXXXXX) " lattice preset in express delivery classification Formula matching, thus, telephone number can be extracted from corresponding position according to text format, in text format, extracted in bracket Multidigit continuous number as telephone number, also, the telephone number extracted is stored in the phone number yardage of express delivery classification In.Meanwhile the telephone number being sent to the addressee of the package, for example, can be with short message " your package with arrived XX, The person of sending with charge free XX, phone XXXXXXXXXXX, it is noted that check and accept." form remind the addressee of the package, or directly by this article This information is transmitted to the addressee of the package.
In addition, telephone number has certain timeliness, for example, after express delivery person A has replaced telephone number, with Preceding telephone number a just becomes invalid number, it is then desired to the number is deleted, it specifically can be with presetting number of cell phone The duration threshold value that fails is three days, when server receives the information of express delivery person A transmission, when recording the transmission of the information Between, while the sending time of text information is detected, when detect the sending time of text information the last time with The time interval of current time be more than preset duration when, determine that the telephone number is no longer valid, by the telephone number of the failure from It is deleted in the telephone number data of express delivery classification.
Secondly, in above-described embodiment, extraction for telephone number can also directly extract the phone of the sender of information Number.
When executing subject is terminal:
Firstly, having preset the keyword and text formatting of multiple information generics in terminal, online express delivery letter is obtained Cease, information of making a reservation, receive the short message etc. that other users are sent, obtain include telephone number information, and according to the pass in information Keyword analyzes classification belonging to information, for example, user receives short message " your take-away that the background server of room service is sent It is your dispatching by dispatching person XX (15XXXXXXXXX) " when, it include telephone number in the message according to analysis, and in the message Keyword " take-away " and " dispatching person " are consistent with the predetermined keyword in food delivery classification, and " the dispatching in content and food delivery classification Member XX (15XXXXXXXXX) is your dispatching " format match, thus, it can be obtained from this short message corresponding according to text format Telephone number is stored in the corresponding telephone number library of food delivery classification by the telephone number at position, secondly, can be by the category pair The telephone number data answered is sent to default terminal, for example, user has two terminals, terminal A is used to receive and dispatch short message, and terminal B is used It makes a phone call, at this point it is possible to end can be automatically forwarded to when terminal A receives said short message using terminal B as default terminal B is held, is made a phone call convenient for user by terminal B.In addition, terminal can also periodically be updated telephone number data, example Such as, the failure duration threshold value for presetting a telephone number can record the sending time of the information, together when receiving text information When, the sending time of the information is detected, when the time interval of the sending time of the information and current time is more than preset duration, It determines that the number is no longer valid, the number of the failure is deleted from the telephone number data of generic.
The technical scheme provided by this disclosed embodiment can include the following benefits:It can be extracted from the information content Telephone number realizes the intelligence of information extraction;Secondly, the information extracted can be automatically stored to the corresponding electricity of classification It talks about in number data, realizes being automatically stored for telephone number;Simultaneously as storage mode is that classification carries out, therefore, it is convenient for Telephone number is searched, the lookup time of telephone number is saved;Also, by the way that the number of failure is deleted from telephone number data It removes, avoids the waste of memory space.
Fig. 6 is a kind of block diagram of telephone number recognition device shown according to an exemplary embodiment, as shown in fig. 6, should Telephone number recognition methods are used in terminal or server, including first obtains module 61, detection module 62, analysis module 63 With the first determining module 63.
The first acquisition module 61 is configured as obtaining text information;
Whether the detection module 62 is configured as in detection text information including telephone number;
The analysis module 63 is configured as analyzing text information, root when detecting in text information includes telephone number Classification belonging to keyword or semantic determining text information according to text information;
First determining module 64 is configured as classification belonging to text information being determined as classification belonging to telephone number, Wherein, the kind intermediate item of category database belonging to category database and telephone number belonging to text information corresponds.
In one embodiment, as shown in fig. 7, device further includes:
Second obtains module 71, for obtaining the sending time of simultaneously recording text information;
Monitoring modular 72 is monitored for the sending time to text information;
Second determining module 73, for the time when the sending time and current time that monitor text information the last time When interval is more than preset duration, determine that telephone number has failed.
In one embodiment, as shown in figure 8, device further includes:
Third determining module 81, for before classification belonging to text information is determined as classification belonging to telephone number, The classification according to belonging to text information determines the text formatting to information;
Extraction module 82, for extracting telephone number from text information according to text formatting.
In one embodiment, as shown in figure 9, device further includes:
Memory module 91, for the classification according to belonging to telephone number by telephone number network side telephone number data Classification storage is carried out in library;
Synchronization module 92, for the telephone number database of network side to be synchronized to default terminal.
In one embodiment, as shown in Figure 10, device further includes:
Removing module 101, for deleting phone from the telephone number database of network side when telephone number has failed Number.
The disclosure also provides a kind of telephone number recognition device, including:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text envelope Classification belonging to the keyword of breath or the semantic determining text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text envelope The kind intermediate item of category database belonging to category database belonging to breath and the telephone number corresponds.
Figure 11 is a kind of block diagram for telephone number recognition device shown according to an exemplary embodiment, and the device is suitable For terminal device.For example, device 1100 can be video camera, and sound pick-up outfit, mobile phone, computer, digital broadcast terminal, Messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 1100 may include following one or more components:Processing component 1102, memory 1104, power supply module 1106, multimedia component 1108, audio component 1110, the interface 1112 of input/output (I/O), sensor module 1114, and Communication component 1116.
The integrated operation of the usual control device 1100 of processing component 1102, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing element 1102 may include one or more processors 1120 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1102 may include one or more moulds Block, convenient for the interaction between processing component 1102 and other assemblies.For example, processing component 1102 may include multi-media module, To facilitate the interaction between multimedia component 1108 and processing component 1102.
Memory 1104 is configured as storing various types of data to support the operation in equipment 1100.These data Example includes the instruction of any application or method for operating on device 1100, contact data, telephone book data, Message, picture, video etc..Memory 1104 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1106 provides electric power for the various assemblies of device 1100.Power supply module 1106 may include power management System, one or more power supplys and other with for device 1100 generate, manage, and distribute the associated component of electric power.
Multimedia component 1108 includes the screen of one output interface of offer between described device 1100 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1108 includes a front camera and/or rear camera.When equipment 1100 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1110 is configured as output and/or input audio signal.For example, audio component 1110 includes a wheat Gram wind (MIC), when device 1100 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1104 or via communication Component 1116 is sent.In some embodiments, audio component 1110 further includes a loudspeaker, is used for output audio signal.
I/O interface 1112 provides interface, above-mentioned peripheral interface module between processing component 1102 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to:Home button, volume button, start button and Locking press button.
Sensor module 1114 includes one or more sensors, and the state for providing various aspects for device 1100 is commented Estimate.For example, sensor module 1114 can detecte the state that opens/closes of equipment 1100, the relative positioning of component, such as institute The display and keypad that component is device 1100 are stated, sensor module 1114 can be with detection device 1100 or device 1,100 1 The position change of a component, the existence or non-existence that user contacts with device 1100,1100 orientation of device or acceleration/deceleration and dress Set 1100 temperature change.Sensor module 1114 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1114 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1116 is configured to facilitate the communication of wired or wireless way between device 1100 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1100,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1116 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1116 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1100 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1104 of instruction, above-metioned instruction can be executed by the processor 1120 of device 1100 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Figure 12 is a kind of block diagram of device for telephone number identification shown according to an exemplary embodiment.For example, Device 1200 may be provided as a server.Device 1200 includes processing component 1222, further comprises one or more Processor, and the memory resource as representated by memory 1232, can be by the finger of the execution of processing component 1222 for storing It enables, such as application program.The application program stored in memory 1232 may include each one or more correspondence In the module of one group of instruction.In addition, processing component 1222 is configured as executing instruction, to execute the above method.
Device 1200 can also include that a power supply module 1226 be configured as the power management of executive device 1200, and one Wired or wireless network interface 1250 is configured as device 1200 being connected to network and input and output (I/O) interface 1258.Device 1200 can be operated based on the operating system for being stored in memory 1232, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1100 When device executes, so that device 1100 is able to carry out above-mentioned telephone number and knows method for distinguishing, the method includes:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text envelope Classification belonging to the keyword of breath or the semantic determining text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text envelope The kind intermediate item of category database belonging to category database belonging to breath and the telephone number corresponds.
In one embodiment, the method also includes:
Obtain and record the sending time of the text information;
The sending time of the text information is monitored;
When the time interval of the sending time and current time that monitor described text information the last time is more than default When long, determine that the telephone number has failed.
In one embodiment, described that classification belonging to the text information is determined as class belonging to the telephone number Before not, the method also includes:
The text formatting to the information is determined according to classification belonging to the text information;
According to the text formatting, the telephone number is extracted from the text information.
In one embodiment, the method also includes:
According to classification belonging to the telephone number by the telephone number in the telephone number database of network side into Row classification storage;
The telephone number database of the network side is synchronized to default terminal.
In one embodiment, the method also includes:
When the telephone number has failed, the phone number is deleted from the telephone number database of the network side Code.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 1200 When device executes, so that device 1200 is able to carry out above-mentioned telephone number and knows method for distinguishing, the method includes:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text envelope Classification belonging to the keyword of breath or the semantic determining text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text envelope The kind intermediate item of category database belonging to category database belonging to breath and the telephone number corresponds.
In one embodiment, the method also includes:
Obtain and record the sending time of the text information;
The sending time of the text information is monitored;
When the time interval of the sending time and current time that monitor described text information the last time is more than default When long, determine that the telephone number has failed.
In one embodiment, described that classification belonging to the text information is determined as class belonging to the telephone number Before not, the method also includes:
The text formatting to the information is determined according to classification belonging to the text information;
According to the text formatting, the telephone number is extracted from the text information.
In one embodiment, the method also includes:
According to classification belonging to the telephone number by the telephone number in the telephone number database of network side into Row classification storage;
The telephone number database of the network side is synchronized to default terminal.
In one embodiment, the method also includes:
When the telephone number has failed, the phone number is deleted from the telephone number database of the network side Code.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of telephone number recognition methods, which is characterized in that including:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text information Semanteme determines classification belonging to the text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text information institute The kind intermediate item of category database belonging to the category database of category and the telephone number corresponds;
The method also includes:
Obtain and record the sending time of the text information;
The sending time of the text information is monitored;
When the time interval of the sending time and current time that monitor described text information the last time is more than preset duration, Determine that the telephone number has failed.
2. the method according to claim 1, wherein described be determined as institute for classification belonging to the text information Before stating classification belonging to telephone number, the method also includes:
The text formatting to the information is determined according to classification belonging to the text information;
According to the text formatting, the telephone number is extracted from the text information.
3. the method according to claim 1, wherein the method also includes:
The telephone number is divided in the telephone number database of network side according to classification belonging to the telephone number Class storage;
The telephone number database of the network side is synchronized to default terminal.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
When the telephone number has failed, the telephone number is deleted from the telephone number database of the network side.
5. a kind of telephone number recognition device, which is characterized in that including:
First obtains module, for obtaining text information;
Detection module, for whether detecting in the text information including telephone number;
Analysis module, for the text information being analyzed, according to institute when detecting in the text information includes telephone number The semanteme for stating text information determines classification belonging to the text information;
First determining module, for classification belonging to the text information to be determined as classification belonging to the telephone number, In, the kind intermediate item of category database belonging to the text information and category database belonging to the telephone number is right one by one It answers;
Described device further includes:
Second obtains module, for obtaining and recording the sending time of the text information;
Monitoring modular is monitored for the sending time to the text information;
Second determining module, between monitoring the time of sending time and current time of described text information the last time When being more than preset duration, determine that the telephone number has failed.
6. device according to claim 5, which is characterized in that described device further includes:
Third determining module, for by classification belonging to the text information be determined as classification belonging to the telephone number it Before, the text formatting to the information is determined according to classification belonging to the text information;
Extraction module, for extracting the telephone number from the text information according to the text formatting.
7. device according to claim 5, which is characterized in that described device further includes:
Memory module, for the classification according to belonging to the telephone number by the telephone number network side phone number yardage According to carrying out classification storage in library;
Synchronization module, for the telephone number database of the network side to be synchronized to default terminal.
8. device according to claim 7, which is characterized in that described device further includes:
Removing module, for deleting institute from the telephone number database of the network side when the telephone number has failed State telephone number.
9. a kind of telephone number recognition device, which is characterized in that including:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain text information;
Whether detect in the text information includes telephone number;
When detecting in the text information includes telephone number, the text information is analyzed, according to the text information Semanteme determines classification belonging to the text information;
Classification belonging to the text information is determined as classification belonging to the telephone number, wherein the text information institute The kind intermediate item of category database belonging to the category database of category and the telephone number corresponds;
The processor is additionally configured to:
Obtain and record the sending time of the text information;
The sending time of the text information is monitored;
When the time interval of the sending time and current time that monitor described text information the last time is more than preset duration, Determine that the telephone number has failed.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of the claims 1-4 the method is realized when execution.
CN201510614311.1A 2015-09-23 2015-09-23 Telephone number recognition methods and device Active CN105162984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510614311.1A CN105162984B (en) 2015-09-23 2015-09-23 Telephone number recognition methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510614311.1A CN105162984B (en) 2015-09-23 2015-09-23 Telephone number recognition methods and device

Publications (2)

Publication Number Publication Date
CN105162984A CN105162984A (en) 2015-12-16
CN105162984B true CN105162984B (en) 2018-11-23

Family

ID=54803731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510614311.1A Active CN105162984B (en) 2015-09-23 2015-09-23 Telephone number recognition methods and device

Country Status (1)

Country Link
CN (1) CN105162984B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589846B (en) * 2015-12-22 2018-07-31 北京奇虎科技有限公司 A kind of method and device for identifying digital semantic method, detecting short message classification
CN105472162B (en) * 2015-12-28 2019-02-05 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106452859A (en) * 2016-09-29 2017-02-22 南京邮电大学 Automatic cell phone number characteristic keyword extraction method under fixed network WiFi environment
CN107734477B (en) * 2017-10-31 2021-12-03 维沃移动通信有限公司 Call forwarding method and mobile terminal
CN108182180B (en) * 2018-01-30 2019-10-11 百度在线网络技术(北京)有限公司 Method and apparatus for generating information
CN108848276A (en) * 2018-07-30 2018-11-20 携程旅游信息技术(上海)有限公司 Telephone number method for detecting availability, system, equipment and storage medium
CN112070443B (en) * 2020-09-14 2024-03-22 深圳市智莱科技股份有限公司 Method and device for modifying telephone numbers in express delivery bill of intelligent express delivery cabinet

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011009267A1 (en) * 2009-07-22 2011-01-27 中兴通讯股份有限公司 Method and system for delivering short message advertisements
CN103188682A (en) * 2011-12-30 2013-07-03 中国移动通信集团吉林有限公司 Method and device for controlling communication number sending junk messages
CN103561169A (en) * 2013-10-25 2014-02-05 华为终端有限公司 Information managing method and terminal
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message
CN104284306A (en) * 2013-07-04 2015-01-14 北京壹人壹本信息科技有限公司 Junk message filter method and system, mobile terminal and cloud server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011009267A1 (en) * 2009-07-22 2011-01-27 中兴通讯股份有限公司 Method and system for delivering short message advertisements
CN103188682A (en) * 2011-12-30 2013-07-03 中国移动通信集团吉林有限公司 Method and device for controlling communication number sending junk messages
CN104284306A (en) * 2013-07-04 2015-01-14 北京壹人壹本信息科技有限公司 Junk message filter method and system, mobile terminal and cloud server
CN103561169A (en) * 2013-10-25 2014-02-05 华为终端有限公司 Information managing method and terminal
CN104010284A (en) * 2014-05-30 2014-08-27 可牛网络技术(北京)有限公司 Method and device for processing spam short message

Also Published As

Publication number Publication date
CN105162984A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105162984B (en) Telephone number recognition methods and device
CN105095873B (en) Photo be shared method, apparatus
CN105094814B (en) Notification message methods of exhibiting and device
CN107729946B (en) Picture classification method, device, terminal and storage medium
CN104240068A (en) Method and device for creating reminding event
CN104731880A (en) Image ordering method and device
CN104636164B (en) Start page generation method and device
CN106063231A (en) Information transmission system, information reception method, device and system
CN104112119A (en) Face identification-based communication method and apparatus
CN105354284B (en) Processing method and processing device, short message recognition methods and the device of template
CN104484349A (en) Progress enquiring method, device and terminal
CN106911845B (en) Incoming call reminding method and device
CN106060257A (en) Method and device for viewing relevant information of contact
CN105912450A (en) Method and device for displaying state information of application
CN106453528A (en) Method and device for pushing message
CN112101216A (en) Face recognition method, device, equipment and storage medium
CN105302877B (en) For the method for short message domain classification, the recognition methods of short message field and device
CN105100193A (en) Cloud business card recommendation method and device
CN106130873A (en) Information processing method and device
CN109446323A (en) Information aggregation method, device and equipment
CN106921958A (en) The method and apparatus for quitting the subscription of business
TW202242715A (en) Identity recognition method electronic equipment and computer-readable storage medium
CN106101464A (en) Number mark method and device
CN102594801B (en) Method and system for managing media objects in mobile communication devices
CN104363166B (en) Instant communicating method, device and intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant