Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for extracting mobile phone numbers

A mobile phone number and text technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as difficult to cover, complex regular expressions, difficult to cover all formats, etc., to reduce the missing rate and simplify extraction The effect of the method

Inactive Publication Date: 2016-12-07
成都知道创宇信息技术有限公司
View PDF9 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, there are also some methods for extracting mobile phone numbers from texts, but the mobile phone numbers in the text are often in different formats, and there are many different ways of writing; regular expressions are usually used to process them separately for different formats; however, the more mobile phone number formats considered More, the more complex the regular expression will be; and it will be error-prone and difficult to cover all formats; if different formats are processed separately, it will be difficult to cover the combination of various formats, and the code is complicated

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for extracting mobile phone numbers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0021] A method for extracting a mobile phone number, comprising the following steps:

[0022] (1) Scan the text, find out the standard-format mobile phone number in the text through regular expressions, and delete the extracted standard-format mobile phone number from the text;

[0023] (2) Scan the text again to convert the mobile phone number in the non-standard format into the mobile phone number in the standard format;

[0024] (3) Repeat step (1) to extract the mobile phone number in the standard format in the text;

[0025] (4) Verify the extracted mobile phone number.

[0026] A method for extracting a mobile phone number, comprising the steps of:

[0027] (1) Scan the text and use a counter to count each consecutive number separately; after the counting is completed, extract the consecutive numbers with a count of 11 from the text a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for extracting mobile phone numbers. The method comprises following steps: scanning texts, extracting mobile phone numbers in the standard format of texts through a regular expression and deleting extracted mobile phone numbers in the standard format from texts; scanning texts again, scanning texts and converting mobile phones in the non-standard format to be ones in the standard format; extracting mobile phones in the standard format again; and verifying the extracted mobile phones. The method for extracting mobile phone numbers is capable of simplifying the extraction method of mobile phones and extracting mobile phones in different formats from texts so that extraction leakage rate is decreased.

Description

technical field [0001] The invention relates to a method for extracting mobile phone numbers, in particular to a method for extracting mobile phone numbers from arbitrary text. Background technique [0002] At present, there are also some methods for extracting mobile phone numbers from texts, but the mobile phone numbers in the text are often in different formats, and there are many different ways of writing; regular expressions are usually used to process them separately for different formats; however, the more mobile phone number formats considered More, the more complex the regular expression will be; and it will be error-prone and difficult to cover all formats; if different formats are processed separately, it will be difficult to cover the combination of various formats, and the code is complicated. Contents of the invention [0003] The invention provides a method for extracting mobile phone numbers capable of quickly identifying mobile phone numbers in different f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/22
CPCG06F40/126G06F40/163
Inventor 刘光旭
Owner 成都知道创宇信息技术有限公司