CN111414366A - Method for storing and searching contact person - Google Patents

Method for storing and searching contact person Download PDF

Info

Publication number
CN111414366A
CN111414366A CN202010221086.6A CN202010221086A CN111414366A CN 111414366 A CN111414366 A CN 111414366A CN 202010221086 A CN202010221086 A CN 202010221086A CN 111414366 A CN111414366 A CN 111414366A
Authority
CN
China
Prior art keywords
chinese character
name
pinyin
contact
token list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010221086.6A
Other languages
Chinese (zh)
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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010221086.6A priority Critical patent/CN111414366A/en
Publication of CN111414366A publication Critical patent/CN111414366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2272Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a method for storing and searching contacts, which comprises the following steps: acquiring names of contacts; judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table; judging the name as Chinese character, converting each Chinese character of the name as corresponding phonetic alphabet, converting the phonetic initials corresponding to each Chinese character of the name as corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table. The searching method searches related contacts by converting input Chinese characters or pinyin letters into token information to match with an index table during storage. According to the scheme, when a user tries to input polyphone characters or Pink-warped tongue pinyin letters when inquiring the contact, other related contact persons can be searched out, and the user can conveniently perform subsequent operation.

Description

Method for storing and searching contact person
Technical Field
The application relates to the field of communication, in particular to a method for storing and searching contacts.
Background
At present, when the native contact and the dialing application of the mobile phone are used for inquiring and searching Chinese contacts, the Chinese pinyin searching cannot support the inquiry of polyphone and flat warping tongue. In fact, Chinese characters are often polyphones when used as names, so that the polyphone name query contact needs to be enhanced. In addition, in the dialect countries, due to the influence of the dialect in multiple regions, users in many regions cannot distinguish flat warped tongues, so that the users often fail to inquire when inquiring the contact.
Disclosure of Invention
The embodiment of the application provides a method for storing and searching contacts, when a user tries to search the contacts or dials, the user inputs polyphone or Pink-warped tongue pinyin letters, the associated contacts can be searched out, and the user can conveniently perform subsequent operations.
The contact person saving method provided by the embodiment of the application comprises the following steps:
acquiring names of contacts;
judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table;
judging that the surname is a Chinese character, converting each Chinese character of the name into a corresponding pinyin letter, converting the pinyin initials corresponding to each Chinese character of the name into corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table.
Optionally, in some embodiments of the present application, the determining that the last name is a chinese character includes:
judging the surnames of the names in a common word stock;
judging whether the first phonetic letter corresponding to each Chinese character of the name is a flat-warped tongue sound;
the first phonetic letter corresponding to the Chinese character is a flat-tongue sound, and the first phonetic letter corresponding to the Chinese character is updated to be the flat-tongue sound and a warped-tongue sound corresponding to the flat-tongue sound;
and updating the pinyin first letter corresponding to the Chinese character to be the warped-tongue sound and the flat-tongue sound corresponding to the warped-tongue sound.
Optionally, in some embodiments of the present application, the determining that the last name is a chinese character includes:
judging the surname of the name in a polyphone word stock;
and acquiring a plurality of pinyin letters corresponding to the surname, and updating the pinyin initial letter corresponding to the surname into a plurality of pinyin letters.
Optionally, in some embodiments of the present application, the determining that the last name is a chinese character includes:
and converting each Chinese character of the name into a corresponding Unicode value.
Optionally, in some embodiments of the application, the determining that the last name of the name is in the polyphonic alphabet includes:
the polyphone character library comprises pinyin letters corresponding to a plurality of pronunciations of polyphone characters or pinyin letters corresponding to a special pronunciation when Chinese characters are used as surnames.
The contact person searching method provided by the embodiment of the application comprises the following steps:
receiving a name input by a user;
the name is a non-Chinese character, each non-Chinese character of the name is converted into a corresponding ASCII number, the ASCII numbers are added into a token list, and contact information in a contact index table is matched according to the token list;
the name is a Chinese character, each Chinese character of the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each Chinese character of the name are converted into corresponding ASCII numbers, the ASCII numbers are added into the token list, and the contact information in the contact index table is matched according to the token list.
Optionally, in some embodiments of the present application, the name is a chinese character, and includes:
judging the surnames of the names in a common word stock;
judging whether the first phonetic letter corresponding to each Chinese character of the name is a flat-warped tongue sound;
the first phonetic letter corresponding to the Chinese character is a flat-tongue sound, and the first phonetic letter corresponding to the Chinese character is updated to be the flat-tongue sound and a warped-tongue sound corresponding to the flat-tongue sound;
and updating the pinyin first letter corresponding to the Chinese character to be the warped-tongue sound and the flat-tongue sound corresponding to the warped-tongue sound.
Optionally, in some embodiments of the present application, the name is a chinese character, and includes:
judging the surname of the name in a polyphone word stock;
and acquiring a plurality of pinyin letters corresponding to the surname, and updating the pinyin initial letter corresponding to the surname into a plurality of pinyin letters.
Optionally, in some embodiments of the present application, the name is a chinese character, and includes:
and converting each Chinese character of the name into a corresponding Unicode value.
Optionally, in some embodiments of the present application, the name is a chinese character, and includes:
the Chinese characters include Chinese characters and pinyin letters.
The embodiment of the application provides a method for storing and searching contacts, which comprises the following steps: acquiring names of contacts; judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table; judging that the surname is a Chinese character, converting each Chinese character of the name into a corresponding pinyin letter, converting the pinyin initials corresponding to each Chinese character of the name into corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table. The contact person searching method comprises the following steps: receiving a name input by a user; the name is a non-Chinese character, each non-Chinese character of the name is converted into a corresponding ASCII number, the ASCII numbers are added into a token list, and contact information in a contact index table is matched according to the token list; the name is a Chinese character, each Chinese character of the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each Chinese character of the name are converted into corresponding ASCII numbers, the ASCII numbers are added into the token list, and the contact information in the contact index table is matched according to the token list.
According to the scheme, the polyphone and flat warped tongue retrieval algorithm is added into the original contact person database in the contact person storage method, when a user tries to search a contact person or inputs polyphone or flat warped tongue pinyin letters when dialing, the associated contact person can be searched out, and the subsequent operation of the user is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a contact saving method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a contact searching method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a contact saving device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a contact search apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method for storing and searching contacts, which is applied to a terminal with a communication function. The terminal of the embodiment of the application can be a mobile phone, a tablet computer, a notebook computer and other devices.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
A contact saving method, comprising: acquiring names of contacts; judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table; judging that the surname is a Chinese character, converting each Chinese character of the name into a corresponding pinyin letter, converting the pinyin initials corresponding to each Chinese character of the name into corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table.
As shown in fig. 1, the specific flow of the contact saving method may be as follows:
101. the names of the contacts are obtained.
For example, a terminal with a communication function generally has a native contact database, and obtains the contact names and related information from the database to edit and save the contact names and related information. And if the information of a certain contact person is not stored in the database, the user newly adds and stores the information.
102. And judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table.
For example, if the acquired name is a non-Chinese character, such as an English name, a number, etc., each non-Chinese character in the name is converted to a corresponding ASCII number, the converted ASCII number is added to the Token list as Token (Token) information, and then the Token list is saved as an index into the contact index table.
Among them, ASCII (American Standard Code for Information exchange) is a computer Code system based on latin letters, which is mainly used for displaying modern english and other western european languages. For example, english name ABC is used, and the corresponding ASCII number is 979899, and 979899 is used as the token information of english name ABC.
103. Judging that the surname is a Chinese character, converting each Chinese character of the name into a corresponding pinyin letter, converting the pinyin initials corresponding to each Chinese character of the name into corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table.
For example, if the acquired name is a chinese character, each chinese character in the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each chinese character are converted into corresponding ASCII numbers, the converted ASCII numbers are added to the token list as token information, and then the token list is saved as an index into the contact index table.
The first Chinese character of the name is the surname of the name, firstly, it is judged whether the surname of the name is polyphone, if the surname of the name is in the common word stock, that means, the surname has only one pronunciation, each Chinese character of the name is converted into corresponding phonetic alphabet. Then, whether the first letter of the pinyin corresponding to each Chinese character is a flat-warped-tongue sound is judged, namely whether the corresponding first letter of the pinyin is Z, C, S or ZH, CH or SH is judged. If the corresponding first phonetic letter is the flat-tongue sound, namely Z, C or S, then the warped-tongue sound ZH, CH or SH corresponding to the flat-tongue sound is additionally added and is also used as the first phonetic letter corresponding to each Chinese character; if the corresponding first phonetic letter is a warped tongue sound, namely ZH, CH or SH, then additionally adding a flat tongue sound Z, C or S corresponding to the warped tongue sound as the first phonetic letter corresponding to each Chinese character; and converting all the pinyin initial combinations formed by all the cases into corresponding ASCII numbers, adding all the converted ASCII number combinations serving as token information into a token list, and then saving the token list serving as an index into a contact index table. Taking the Chinese name 'Zhou-Chong-Yang' as an example, firstly, judging that 'Zhou' is not a polyphone, the pinyin letters corresponding to the 'Zhou-ChongYang' are ZHou Yang, the pinyin first letter combination is ZHHY, after the judgment of flat warped tongue, the pinyin first letters ZH and CH of 'Zhou' and 'Re' are warped tongue sounds, the pinyin first letters of 'Zhou' are updated to be ZH and Z, and the pinyin first letters of 'Re' are updated to be CH and C. The corresponding initial combination of pinyin of the Zhongyang is ZHHY, ZHCY, ZCHY and ZCY, and the initial combination is converted into corresponding ASCII digital combinations of 9072677289, 90726789, 90677289 and 906789.
If the surname is not a polyphone and the pinyin initials corresponding to each Chinese character of the name do not belong to the flat warped tongue, the pinyin initials corresponding to each Chinese character are directly converted into corresponding ASCII numbers.
If the surname of the name is in the polyphone character library, obtaining the pinyin letters corresponding to a plurality of pronunciations of the surname, and updating the pinyin initials of the surname into a plurality of pinyin letters. And then, carrying out flat warping tongue judgment on the pinyin initial, converting pinyin initial combinations formed in all conditions into corresponding ASCII numbers, adding all converted ASCII number combinations serving as token information into a token list, and storing the token list serving as an index into a contact index table. Taking the Chinese name 'single space' as an example, the 'single' has two pronunciations of Dan and Shan, after the flat-warped tongue judgment is carried out, the pinyin initials of the 'single' are updated to be D, SH and S, the pinyin initial combination corresponding to the 'single space' is DY, SHY and SY, and then the two pinyin initial combinations are respectively converted into corresponding ASCII digital combinations.
The polyphone character library comprises pinyin letters corresponding to a plurality of pronunciations of polyphone characters or pinyin letters corresponding to a special pronunciation when the Chinese character is used as a surname.
After the acquired name is judged to be a Chinese character, each Chinese character of the name is converted into a corresponding Unicode value, so that machine language recognition is ensured, and each Chinese character has a standard Unicode code.
The contact searching method comprises the following steps: receiving a name input by a user; the name is a non-Chinese character, each non-Chinese character of the name is converted into a corresponding ASCII number, the ASCII numbers are added into a token list, and contact information in a contact index table is matched according to the token list; the name is a Chinese character, each Chinese character of the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each Chinese character of the name are converted into corresponding ASCII numbers, the ASCII numbers are added into the token list, and the contact information in the contact index table is matched according to the token list.
As shown in fig. 2, the specific process of the contact searching method may be as follows:
201. a name input by a user is received.
For example, when searching for the contact information, the user first needs to input the name information of the contact, and the name information input by the user may be complete or incomplete, and may be input by inputting Chinese characters or pinyin letters.
202. The name is non-Chinese character, each non-Chinese character of the name is converted into corresponding ASCII number, the ASCII number is added into a token list, and the contact information in a contact index table is matched according to the token list.
For example, if the user inputs non-chinese characters such as numbers and english, each input non-chinese character is directly converted into a corresponding ASCII number, the converted ASCII number is added to the token list as token information, and the token list is matched with the contact index table to search for the required contact information.
The method comprises the steps that token lists corresponding to all contact names are stored in a contact index table, the token list corresponding to input name information is matched with the stored token lists, fuzzy token search is conducted in the contact index table, if the corresponding token is matched, the corresponding contact information is further inquired, and if the corresponding token is not matched, the fact that the related information of the contact does not exist in a terminal is shown. When fuzzy search means that input name information is incomplete, related contacts containing the name information can be searched out, and a user finds out contact information to be inquired; fuzzy search shows that the token information is not necessarily identical, the stored token information only needs to contain the token information converted from the input name information, the token matching is successful, and related contacts are displayed for further selection and confirmation of the user.
Optionally, using english names ABC and AB as examples, corresponding ASCII numbers 979899 and 9798, respectively using 979899 and 9798 as token information of english name ABC and english name AB, and storing the token information as an index into a contact index table when storing a contact; at the moment, the user needs to inquire the contact person ABC, if the user inputs the ABC completely, the matching is carried out in the contact person index table according to the token information finally converted from the ABC, the relevant information of the contact person ABC is found accurately, if the user only inputs the AB, the contact persons ABC and the AB are displayed according to the fuzzy search principle, and the user selects the contact person ABC from the contact persons ABC.
203. The name is a Chinese character, each Chinese character of the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each Chinese character of the name are converted into corresponding ASCII numbers, the ASCII numbers are added into the token list, and the contact information in the contact index table is matched according to the token list.
For example, if the name information input by the user is a chinese character, it should be noted that the chinese character referred to herein includes chinese characters and pinyin. Converting each input Chinese character into a corresponding pinyin letter, converting the pinyin initial corresponding to each input Chinese character into a corresponding ASCII number, and directly converting the pinyin initial into a corresponding ASCII number if the input Chinese pinyin is input. And adding the converted ASCII numbers as token information into a token list, and matching in a contact index table according to the token list so as to search the required contact information.
The first Chinese character of the input name is used as the surname of the name, firstly, whether the surname is a polyphone or not is judged, if the surname is in a common word stock, namely, the surname has only one pronunciation, each Chinese character of the name is converted into a corresponding pinyin letter. Then, whether the first phonetic letter corresponding to each input Chinese character is a flat warped tongue sound or not is judged, namely whether the corresponding first phonetic letter is Z, C, S or ZH, CH, SH or not is judged. If the corresponding first phonetic letter is the flat-tongue sound, namely Z, C or S, then the warped-tongue sound ZH, CH or SH corresponding to the flat-tongue sound is additionally added and is also used as the first phonetic letter corresponding to each Chinese character; if the corresponding first phonetic letter is a warped tongue sound, namely ZH, CH or SH, then additionally adding a flat tongue sound Z, C or S corresponding to the warped tongue sound as the first phonetic letter corresponding to each Chinese character; and converting all the pinyin initial combinations formed by all the cases into corresponding ASCII numbers, and adding all the converted ASCII number combinations as token information into a token list.
If the surname is in the polyphone character library, obtaining pinyin letters corresponding to a plurality of pronunciations of the surname, and updating the pinyin initial letters of the surname into a plurality of pinyin letters. And then, carrying out flat-warped tongue judgment on the pinyin initial, converting pinyin initial combinations formed by all conditions into corresponding ASCII numbers, and adding all converted ASCII number combinations serving as token information into a token list.
And matching the token list converted according to the input name information in a contact index table to further search the required contact information. And if the corresponding token is matched, further inquiring the corresponding contact information, and if the corresponding token is not matched, indicating that the relevant information of the contact is not stored in the terminal.
If the input name information is Chinese characters, each input Chinese character is converted into a corresponding Unicode value, machine language identification is guaranteed, and each Chinese character has a standard Unicode code.
The embodiment of the application provides a method for storing and searching contacts, which is characterized in that a polyphone and flat warping tongue retrieval algorithm is added into a primary contact database, so that when a user tries to search contacts or inputs polyphone or flat warping tongue pinyin letters during dialing, other related contacts can be searched out, and the user can conveniently perform subsequent operation. In the scheme, Chinese characters need to be converted into pinyin and then converted into token index information according to the first letter when a contact is stored, and when the contact is searched, the input Chinese characters or pinyin letters need to be finally converted into token information to be matched with an index table during storage so as to inquire related contacts.
In order to better implement the method, an embodiment of the present application may further provide a contact saving apparatus, which may be specifically integrated in a network device, where the network device may be a device such as a mobile terminal.
For example, as shown in fig. 3, the contact saving apparatus may include the acquiring unit 301, the determining unit 302, the converting unit 303, and the saving unit 304 as follows:
(1) acquisition unit 301
An obtaining unit 301, configured to obtain names of contacts.
For example, the contact names and the related information are obtained from the database and edited and saved. And if the information of a certain contact person is not stored in the database, the user newly adds and stores the information.
(2) Judging unit 302
A judging unit 302, configured to judge whether the name is a chinese character.
For example, when the name is determined to be a chinese character, the determining unit 302 further includes a determining subunit 1 and a determining subunit 2, where the determining subunit 1 is configured to determine whether the last name of the name is a polyphone, and the determining subunit 2 is configured to determine whether the pinyin initials corresponding to each chinese character of the name are flat-warped-tongue.
(3) Conversion unit 303
The converting unit 303 is configured to convert each non-chinese character of the name into a corresponding ASCII number when the surname is determined to be a non-chinese character, convert each chinese character of the name into a corresponding pinyin character when the surname is determined to be a chinese character, and convert a pinyin initials corresponding to each chinese character of the name into a corresponding ASCII number.
(4) Save unit 304
A saving unit 304, configured to save the token list in the contact index table.
For example, after determining that the name of a person is a non-Chinese character, the name is added to a Token list as Token (Token) information by converting each non-Chinese character in the name into an ASCII number, and the Token list is saved as an index into a contact index table. After judging that the name is a Chinese character, performing polyphone judgment and flat-warped tongue judgment, adding all ASCII digital combinations converted from pinyin initial combinations composed of all conditions into a token list as token information, and then storing the token list as an index into a contact index table.
In order to better implement the method, an embodiment of the present application may further provide a contact searching apparatus, where the contact searching apparatus may be specifically integrated in a network device, and the network device may be a device such as a mobile terminal.
For example, as shown in fig. 4, the contact search apparatus may include a receiving unit 401, a determining unit 402, a unit 403, and a matching unit 404 as follows:
(1) receiving unit 401
A receiving unit 401, configured to receive a name input by a user.
For example, when searching for the contact information, the user first needs to input the name information of the contact, and the name information input by the user may be complete or incomplete, and may be input by inputting Chinese characters or pinyin letters.
(2) Judging unit 402
A judging unit 402 for judging whether the input name is a chinese character.
For example, when the name is determined to be a chinese character, the determining unit 402 further includes a determining subunit 1 and a determining subunit 2, where the determining subunit 1 is configured to determine whether the last name of the name is a polyphone character, and the determining subunit 2 is configured to determine whether the pinyin initials corresponding to each chinese character of the name are flat-warped-tongue tones.
(3) Conversion unit 403
The converting unit 403 is configured to convert each non-chinese character of the name into a corresponding ASCII number when the surname is determined to be a non-chinese character, convert each chinese character of the name into a corresponding pinyin character when the surname is determined to be a chinese character, and convert a pinyin initials corresponding to each chinese character of the name into a corresponding ASCII number.
(4) Matching unit 404
And the matching unit 404 is configured to match the contact information in the contact index table according to the token list.
For example, adding token information converted according to the input name information to a token list, matching in a contact index table according to the token list, and further searching for required contact information.
Accordingly, an embodiment of the present invention further provides a terminal, as shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during a message or call, and in particular, for receiving downlink information of a base station and then processing the same by one or more processors 508, and further, for transmitting data related to an uplink to the base station, in general, the RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM), a transceiver, a coupler, a low Noise Amplifier (L NA, &ltttttttranslation = L "&tttl ttt/ttt gtt low Noise Amplifier, a duplexer, etc. in addition, the RF circuit 501 may also communicate with a network and other devices through wireless communication which may use any communication standard or protocol, including, but not limited to, a Global System for Mobile communication (GSM), a general packet Radio Service (Access, Short Message Service (SMS), a Short Access Service (SMS), a multicast Service (Service), a long term evolution (CDMA), a multicast (Service) protocol (Service), a Short Access Service (GPRS), a multicast Service (Service), a multicast Service (SMS), a multicast Service (Radio Access), a multicast, a wireless communication network, a wireless communication network, a wireless communication network, a wireless communication System, a wireless.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502. In the embodiment of the present application, the memory 502 includes a native contact database, which stores contact information, and re-edits the stored contact information after adding a polyphonic and flat-warped tongue search algorithm according to the present application.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The Display unit 504 may include a Display panel, which may be optionally configured in the form of a liquid Crystal Display (L CD, &lTtTtranslation = L "&tttL &l/T &gTtrequired Crystal Display), Organic light Emitting diodes (O L ED, Organic L ight-emissive Diode), and the like, further, the touch sensitive surface may cover the Display panel, and when a touch operation is detected on or near the touch sensitive surface, the touch sensitive surface is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the Display panel according to the type of touch event.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508, and then transmitted to, for example, another terminal via the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The above method for storing and searching contacts provided by the embodiment of the present application is introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for saving a contact, comprising:
acquiring names of contacts;
judging that the name is a non-Chinese character, converting each non-Chinese character of the name into a corresponding ASCII number, adding the ASCII number into a token list, and storing the token list into a contact index table;
judging that the surname is a Chinese character, converting each Chinese character of the name into a corresponding pinyin letter, converting the pinyin initials corresponding to each Chinese character of the name into corresponding ASCII numbers, adding the ASCII numbers into the token list, and storing the token list into the contact index table.
2. The method of claim 1, wherein determining that the last name is a chinese character comprises:
judging the surnames of the names in a common word stock;
judging whether the first phonetic letter corresponding to each Chinese character of the name is a flat-warped tongue sound;
the first phonetic letter corresponding to the Chinese character is a flat-tongue sound, and the first phonetic letter corresponding to the Chinese character is updated to be the flat-tongue sound and a warped-tongue sound corresponding to the flat-tongue sound;
and updating the pinyin first letter corresponding to the Chinese character to be the warped-tongue sound and the flat-tongue sound corresponding to the warped-tongue sound.
3. The method of claim 1, wherein determining that the last name is a chinese character comprises:
judging the surname of the name in a polyphone word stock;
and acquiring a plurality of pinyin letters corresponding to the surname, and updating the pinyin initial letter corresponding to the surname into a plurality of pinyin letters.
4. The method of claim 1, wherein determining that the last name is a chinese character comprises:
and converting each Chinese character of the name into a corresponding Unicode value.
5. The method of claim 3, wherein said determining that the last name of the name is in a polyphonic library comprises:
the polyphone character library comprises pinyin letters corresponding to a plurality of pronunciations of polyphone characters or pinyin letters corresponding to a special pronunciation when Chinese characters are used as surnames.
6. A method for searching for a contact, comprising:
receiving a name input by a user;
the name is a non-Chinese character, each non-Chinese character of the name is converted into a corresponding ASCII number, the ASCII numbers are added into a token list, and contact information in a contact index table is matched according to the token list;
the name is a Chinese character, each Chinese character of the name is converted into a corresponding pinyin letter, the pinyin initials corresponding to each Chinese character of the name are converted into corresponding ASCII numbers, the ASCII numbers are added into the token list, and the contact information in the contact index table is matched according to the token list.
7. The method of claim 6, wherein the last name is a chinese character, comprising:
judging the surnames of the names in a common word stock;
judging whether the first phonetic letter corresponding to each Chinese character of the name is a flat-warped tongue sound;
the first phonetic letter corresponding to the Chinese character is a flat-tongue sound, and the first phonetic letter corresponding to the Chinese character is updated to be the flat-tongue sound and a warped-tongue sound corresponding to the flat-tongue sound;
and updating the pinyin first letter corresponding to the Chinese character to be the warped-tongue sound and the flat-tongue sound corresponding to the warped-tongue sound.
8. The method of claim 6, wherein the last name is a chinese character, comprising:
judging the surname of the name in a polyphone word stock;
and acquiring a plurality of pinyin letters corresponding to the surname, and updating the pinyin initial letter corresponding to the surname into a plurality of pinyin letters.
9. The method of claim 6, wherein the last name is a chinese character, comprising:
and converting each Chinese character of the name into a corresponding Unicode value.
10. The method of claim 6, wherein the last name is a chinese character, comprising:
the Chinese characters include Chinese characters and pinyin letters.
CN202010221086.6A 2020-03-26 2020-03-26 Method for storing and searching contact person Pending CN111414366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010221086.6A CN111414366A (en) 2020-03-26 2020-03-26 Method for storing and searching contact person

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010221086.6A CN111414366A (en) 2020-03-26 2020-03-26 Method for storing and searching contact person

Publications (1)

Publication Number Publication Date
CN111414366A true CN111414366A (en) 2020-07-14

Family

ID=71493213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010221086.6A Pending CN111414366A (en) 2020-03-26 2020-03-26 Method for storing and searching contact person

Country Status (1)

Country Link
CN (1) CN111414366A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1070493A (en) * 1992-07-15 1993-03-31 李一新 Sound-shape word combined coding
CN101025662A (en) * 2007-01-10 2007-08-29 余齐国 Topological phonetic alphabet input method and keyboard
CN101075231A (en) * 2006-05-17 2007-11-21 北京恒基伟业投资发展有限公司 Method for indexing cell-phone visiting card
CN101087327A (en) * 2007-07-03 2007-12-12 深圳凯虹移动通信有限公司 A phone book search method of mobile terminal
CN101645094A (en) * 2009-09-04 2010-02-10 深圳华为通信技术有限公司 Method and device for realizing Chinese language search
CN102223430A (en) * 2011-06-13 2011-10-19 深圳桑菲消费通信有限公司 Method for ranking and searching polyphones of contacts in mobile phone
CN102622337A (en) * 2012-02-24 2012-08-01 浙江和仁科技有限公司 Chinese natural language information matching method based on IHE PIX (Integration Healthcare Enterprise Patient Identifier Cross-referencing) standards
CN104238991A (en) * 2013-06-21 2014-12-24 腾讯科技(深圳)有限公司 Voice input matching method and voice input matching device
CN105721654A (en) * 2016-02-26 2016-06-29 宁波萨瑞通讯有限公司 Method for sorting stroke sequences of contacts and mobile equipment
CN108111703A (en) * 2017-12-18 2018-06-01 迈普通信技术股份有限公司 Contact method querying method and telephone exchange server
CN109036419A (en) * 2018-07-23 2018-12-18 努比亚技术有限公司 A kind of speech recognition match method, terminal and computer readable storage medium
CN109036420A (en) * 2018-07-23 2018-12-18 努比亚技术有限公司 A kind of voice identification control method, terminal and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1070493A (en) * 1992-07-15 1993-03-31 李一新 Sound-shape word combined coding
CN101075231A (en) * 2006-05-17 2007-11-21 北京恒基伟业投资发展有限公司 Method for indexing cell-phone visiting card
CN101025662A (en) * 2007-01-10 2007-08-29 余齐国 Topological phonetic alphabet input method and keyboard
CN101087327A (en) * 2007-07-03 2007-12-12 深圳凯虹移动通信有限公司 A phone book search method of mobile terminal
CN101645094A (en) * 2009-09-04 2010-02-10 深圳华为通信技术有限公司 Method and device for realizing Chinese language search
CN102223430A (en) * 2011-06-13 2011-10-19 深圳桑菲消费通信有限公司 Method for ranking and searching polyphones of contacts in mobile phone
CN102622337A (en) * 2012-02-24 2012-08-01 浙江和仁科技有限公司 Chinese natural language information matching method based on IHE PIX (Integration Healthcare Enterprise Patient Identifier Cross-referencing) standards
CN104238991A (en) * 2013-06-21 2014-12-24 腾讯科技(深圳)有限公司 Voice input matching method and voice input matching device
CN105721654A (en) * 2016-02-26 2016-06-29 宁波萨瑞通讯有限公司 Method for sorting stroke sequences of contacts and mobile equipment
CN108111703A (en) * 2017-12-18 2018-06-01 迈普通信技术股份有限公司 Contact method querying method and telephone exchange server
CN109036419A (en) * 2018-07-23 2018-12-18 努比亚技术有限公司 A kind of speech recognition match method, terminal and computer readable storage medium
CN109036420A (en) * 2018-07-23 2018-12-18 努比亚技术有限公司 A kind of voice identification control method, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106775637B (en) Page display method and device for application program
CN104852885B (en) Method, device and system for verifying verification code
CN106528545B (en) Voice information processing method and device
CN105302452B (en) Operation method and device based on gesture interaction
CN109032491B (en) Data processing method and device and mobile terminal
WO2019007414A1 (en) Method for realizing support of application for multiple languages, storage device, and mobile terminal
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN109543014B (en) Man-machine conversation method, device, terminal and server
CN110335629B (en) Pitch recognition method and device of audio file and storage medium
CN109992753B (en) Translation processing method and terminal equipment
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN109389977B (en) Voice interaction method and device
CN105095161B (en) Method and device for displaying rich text information
CN111274463B (en) Information display method, device and storage medium based on IM contact person grouping setting
CN108829338A (en) A kind of lookup method of application program, device and terminal
CN106507357B (en) Access control method and terminal equipment
CN110597973B (en) Man-machine conversation method, device, terminal equipment and readable storage medium
CN108234275B (en) Method and device for releasing communication information
CN104954231B (en) Method and device for sending and displaying recommendation information
CN106933626B (en) Application association method and device
CN109063033A (en) A kind of method, apparatus and terminal of search for application
CN106330875B (en) Message display method and device
CN115065609A (en) B-end SaaS system hybrid deployment method and system
CN111414366A (en) Method for storing and searching contact person
CN114691714A (en) Data acquisition method, device, equipment and medium based on SQL statement integration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714