CN105022547A - Text input method and apparatus - Google Patents

Text input method and apparatus Download PDF

Info

Publication number
CN105022547A
CN105022547A CN201410165154.6A CN201410165154A CN105022547A CN 105022547 A CN105022547 A CN 105022547A CN 201410165154 A CN201410165154 A CN 201410165154A CN 105022547 A CN105022547 A CN 105022547A
Authority
CN
China
Prior art keywords
name
character string
additional character
mark
name mark
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
CN201410165154.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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410165154.6A priority Critical patent/CN105022547A/en
Publication of CN105022547A publication Critical patent/CN105022547A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

The present invention is applicable to the technical field of an input method and provides a text input method and apparatus. The method comprises: acquiring a name identifier in an address book; judging whether the name identifier contains an additional character string; when the name identifier contains the additional character string, deleting the additional character string and extracting a name; and when a user inputs a first character of the name, displaying the name as an associated word, so that the user completes inputting of the name by selecting the associated word. According to the present invention, when the name identifier, which is used as the associated word, in the address book is imported into a preset word library, the additional character string except a real name in the name identifier is removed, so that the accuracy of the associated word of the name is ensured, the real input intention of the user is reflected and the input efficiency of the input method is improved.

Description

A kind of text input method and device
Technical field
The invention belongs to input method technique field, particularly relate to a kind of text input method and device.
Background technology
Existing input method possesses name association function usually, by the name in the associated person information being stored in the terminal devices such as mobile phone to be imported the dictionary of input method as self-word creation, when user inputs the first character of name, namely this name is there will be, the personalization input demand of the user that fitted in the associational word of inputting interface display.
But, for specific crowds such as business people, usually when preserving associated person information, custom added the prefix informations such as Business Name before the name of contact person, such as, by the Zhang San of A company in associated person information time called after " A Zhang San ", in this case, if user inputs " opening ", associational word " Zhang San " can't be there is, and as user's input " A ", but there will be associational word " A Zhang San ", have impact on the appearance of the correct associational word of " A " on the contrary, truly cannot reflect the input intention of user thus, reduce the input efficiency of input method.
Summary of the invention
Being to provide a kind of text input method in the object of the embodiment of the present invention, being intended to solve the existing input method problem that input efficiency is low when inputting name.
The embodiment of the present invention is achieved in that a kind of text input method, comprising:
Obtain the name mark in address list;
Judge whether comprise additional character string in described name mark;
When comprising described additional character string in described name mark, deleting described additional character string, extracting name;
When user inputs the first character of described name, described name is shown as associational word, with the input making associational word described in user by selecting complete described name.
Another object of the embodiment of the present invention is to provide a kind of text input device, comprising:
Acquiring unit, for obtaining the name mark in address list;
Judging unit, for judging whether comprise additional character string in described name mark;
First extraction unit, for when comprising described additional character string in described name mark, deleting described additional character string, extracting name;
Input block, during for inputting the first character of described name as user, is shown as associational word by described name, with the input making associational word described in user by selecting complete described name.
In embodiments of the present invention, when identifying as associational word to the name in default dictionary address book importing, by removing the additional character in name mark beyond actual name, thus ensure that the accuracy of name associational word, reflect the true input intention of user, improve the input efficiency of input method.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of a kind of text input method that the embodiment of the present invention provides;
Fig. 2 is the specific implementation process flow diagram of a kind of text input method step S102 that the embodiment of the present invention provides;
Fig. 3 is the realization flow figure of a kind of text input method that another embodiment of the present invention provides;
Fig. 4 is the structured flowchart of a kind of text input device that the embodiment of the present invention provides;
Fig. 5 is the structured flowchart of a kind of text input device that another embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In embodiments of the present invention, when identifying as associational word to the name in default dictionary address book importing, by removing the additional character in name mark beyond actual name, the collateral security accuracy of name associational word, reflect the true input intention of user, improve the input efficiency of input method.
Fig. 1 shows the realization flow of a kind of text input method that the embodiment of the present invention provides, and details are as follows:
In step S101, obtain the name mark in address list.
In the present embodiment, address list can for being stored in the associated person information in the mobile terminal such as mobile phone, panel computer, also can for being stored in the associated person information of the fixed terminals such as computing machine, such as mail contact's information, and in address list, the associated person information of each contact person includes the related content such as name mark, contact method, contact address of this contact person.
In step s 102, judge whether comprise additional character string in this name mark.
In the contact store operation of reality, for name mark, the needs of user according to oneself may be there are, before and after the actual name symbol of contact person, add the situation of additional character string.Such as, for contact person " Zhang San ", conveniently check the work unit of this contact person, its name in address list mark can be stored as " first company Zhang San " by user, or conveniently check the identity of this contact person, its name in address list mark can be stored as " teacher Zhang San " by user, etc., therefore, the name mark got from address list may include the name of this contact person and the additional character string of this name.
In the present embodiment, preset characters string can be set, judge whether contain additional character string in this name mark by whether containing preset characters string in detection name mark, also the character string by whether containing user in detection name mark can specified judges whether contain additional character string in this name mark, specific implementation principle will describe in detail in subsequent embodiment, not repeat them here.
In step s 103, when comprising additional character string in this name mark, deleting this additional character string, extracting name.
In the present embodiment, but when judging to contain additional character string in this name mark by step S102, then delete the additional character string in this name mark, thus extract the name of this contact person.
In step S104, when user inputs the first character of this name, this name is shown as associational word, with the input making this associational word of user by selecting complete this name.
In the present embodiment, using the name that extracts in step 103 associational word as the first character of this name, when user inputs the first character of this name, this name is presented in alternate item, as the associational word of this first character, now, namely user can select this associational word by the triggering mode such as clicking, selected in interface of input method, thus completes the input of this name.
Such as, name " Zhang San " is extracted from name mark " teacher Zhang San ", as user's input " opening ", namely can show " Zhang San " in alternate item, instead of " teacher Zhang San ", thus reflecting the name input intention of user accurately, user, without the need to deleting " teacher " after selection associational word " teacher Zhang San ", improves the input efficiency of input method again.
In the present embodiment, also initiatively can be selected whether to delete this additional character string when importing dictionary by user, or retaining two kinds of patterns when importing dictionary, namely in described dictionary, namely storing address list Central Plains name identification information, also storing the name information deleting this additional character string.Such as: for the identification of contacts " first company Zhang San " in address list, both stored the identification information of " first company Zhang San ", the name information only remaining " Zhang San " by deleting additional character string " first company " is also stored.As user's input " first ", namely can show the associational word prompting user input of " company Zhang San ", as user's input " opening ", just can show the associational word prompting user input of " three ".
Because user is when storing contact information, annex character string in name mark calls interpolation by user according to the custom of oneself, and the position of adding can as name prefix before name, also can as name suffix after name, there is certain uncertainty, therefore, as one embodiment of the present of invention, when step S102 judges again, can judge whether comprise the additional character string that user specifies in this name mark.Particularly, before execution step S101, the setting of additional character string can be carried out by mode indicating users such as promptings, the additional character string that monitor user ' is specified, thus determine the additional character string needing to delete.Such as, comprise the client of multiple first company in the contact person of certain user, then this user by specifying " first company " as additional character string, thus can ensure that the accuracy that name extracts.
The present embodiment, owing to being that user specifies additional character string, therefore, is all applicable to the situation of additional character string as name prefix and name suffix.
As another embodiment of the present invention, when step S102 judges, the additional character string whether comprising systemic presupposition in this name mark can be judged.Particularly, can preset in systems in which and occur usually used as name prefix or suffix, not as the character string that name itself occurs, such as, the position such as " teacher ", " section chief " is called, and can be collected this part character string by related personnel and pre-deposit system database, specify thus without the need to user, namely automatically can filter conventional name prefix or name suffix, thus improve the efficiency of name extraction.
Similarly, the present embodiment is also all applicable to the situation of additional character string as name prefix and name suffix.
Fig. 2 shows the specific implementation flow process of a kind of text input method step S102 that another embodiment of the present invention provides, and details are as follows:
In step s 201, judge whether comprise preset characters in name mark, and whether the initial character of interpretation name mark is this preset characters.
Due to concerning most of user, it is when preserving the name mark of contact person, name preservation can be carried out according to the form of " surname+name ", therefore, by One Hundred Family Names, comprise " Zhao " " money " " grandson " " Lee " ... as preset characters, judge the surname whether comprising contact person in name mark, and the initial character of name mark whether is positioned at as the character of surname, can judge whether include name prefix in this name mark.
In step S202, when comprising preset characters in this name mark, and the initial character of this name mark is not when be this preset characters, judge to comprise additional character string in this name mark, and this additional character string is this name identify in be positioned at character string before this preset characters.
Such as, to name mark " first company Zhang San ", due to systemic presupposition, " open " of one of One Hundred Family Names is as preset characters, then comprise preset characters in this name mark and the initial character of this name mark for this preset characters, therefore, can judge to comprise additional character string in " first company Zhang San ", and this additional character string is the character string " first company " before character in " first company Zhang San " " is opened ".
In step S203, when the initial character not comprising preset characters or this name mark in this name mark is this preset characters, then judge not comprise additional character string in this name mark.
Obviously, compared to other implementations, the present embodiment is applicable to the situation of additional character string as name prefix.
Fig. 3 shows the realization flow of a kind of text input method that another embodiment of the present invention provides, and with reference to Fig. 3, compared to embodiment described in Fig. 1 of the present invention, after step s 103, before step S104, also comprises:
Step S301, extracts the first character of name;
Step S302, is associated as the associational word of first character in default dictionary by this name.
By the process of establishing of above-mentioned incidence relation, after a name is stored into default dictionary as associational word, when user inputs the first character of this name, namely this name can appear in alternate item as associational word, facilitates user to select.
In embodiments of the present invention, when identifying as associational word to the name in default dictionary address book importing, by removing the additional character in name mark beyond actual name, thus ensure that name association accuracy, reflect the true input intention of user, improve the input efficiency of input method.
Fig. 4 shows the structured flowchart of a kind of text input device that the embodiment of the present invention provides, and this device may be used for running a kind of text input method described in Fig. 1 to Fig. 3 embodiment of the present invention, for convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 4, this device comprises:
Acquiring unit 41, obtains the name mark in address list.
Judging unit 42, judges whether comprise additional character string in this name mark.
First extraction unit 43, when comprising additional character string in this name mark, deleting this additional character string, extracting name.
Input block 44, when user inputs the first character of this name, is shown as associational word by this name, with the input making this associational word of user by selecting complete this name.
Alternatively, judging unit 42 is specifically for judging whether comprise the additional character string that user specifies in described name mark.
Alternatively, judging unit 42 is specifically for judging the additional character string whether comprising systemic presupposition in described name mark.
Alternatively, judging unit 42 specifically for judging whether comprise preset characters in described name mark, and judges whether the initial character that described name identifies is described preset characters;
When comprising described preset characters in described name mark and the initial character of described name mark is not described preset characters, judge to comprise described additional character string in described name mark, and described additional character string is the character string be positioned in described name mark before described preset characters; Otherwise judge not comprise described additional character string in described name mark.
Alternatively, as shown in Figure 5, this device also comprises:
Second extraction unit 45, extracts the first character of this name.
Associative cell 46, is associated as the associational word of this first character in default dictionary by this name.
In embodiments of the present invention, when identifying as associational word to the name in default dictionary address book importing, by removing the additional character in name mark beyond actual name, thus ensure that the accuracy of name associational word, reflect the true input intention of user, improve the input efficiency of input method.
The foregoing is only preferred embodiment of the present invention, and need not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a text input method, is characterized in that, comprising:
Obtain name mark in address list;
Judge whether comprise additional character string in described name mark;
When comprising described additional character string in described name mark, deleting described additional character string, extracting name;
When user inputs the first character of described name, described name is shown as associational word, with the input making associational word described in user by selecting complete described name.
2. a kind of text input method as claimed in claim 1, is characterized in that, describedly judges that whether comprising additional character string in described name mark is specially:
Judge whether to comprise in described name mark the additional character string that user specifies.
3. a kind of text input method as claimed in claim 1, is characterized in that, judges that whether comprising additional character string in described name mark is specially:
Judge the additional character string whether comprising systemic presupposition in described name mark.
4. a kind of text input method as claimed in claim 1, is characterized in that: describedly judge whether comprise additional character string and comprise in described name mark:
Judge whether comprise preset characters in described name mark, and judge whether the initial character that described name identifies comprises described preset characters;
When comprising described preset characters in described name mark and the initial character of described name mark is not described preset characters, judge to comprise described additional character string in described name mark, and described additional character string is the character string be positioned in described name mark before described preset characters; Otherwise judge not comprise described additional character string in described name mark.
5. a kind of text input method as described in any one of claim 1-4, is characterized in that, after the described name in described extraction described name mark, described user also comprises before inputting the first character of described name:
Extract the described first character of described name;
Described name is associated as the associational word of described first character in default dictionary.
6. a text input device, its feature exists, and comprising:
Acquiring unit, for obtaining the name mark in address list;
Judging unit, for judging whether comprise additional character string in described name mark;
First extraction unit, for when comprising described additional character string in described name mark, deleting described additional character string, extracting name;
Input block, during for inputting the first character of described name as user, is shown as associational word by described name, with the input making associational word described in user by selecting complete described name.
7. a kind of text input device as claimed in claim 6, is characterized in that, described judging unit is specifically for judging whether comprise the additional character string that user specifies in described name mark.
8. a kind of text input device as claimed in claim 6, is characterized in that, described judging unit is specifically for judging the additional character string whether comprising systemic presupposition in described name mark.
CN201410165154.6A 2014-04-24 2014-04-24 Text input method and apparatus Pending CN105022547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410165154.6A CN105022547A (en) 2014-04-24 2014-04-24 Text input method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410165154.6A CN105022547A (en) 2014-04-24 2014-04-24 Text input method and apparatus

Publications (1)

Publication Number Publication Date
CN105022547A true CN105022547A (en) 2015-11-04

Family

ID=54412552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410165154.6A Pending CN105022547A (en) 2014-04-24 2014-04-24 Text input method and apparatus

Country Status (1)

Country Link
CN (1) CN105022547A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132926A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The creation method and device of noun phrase in input method
CN109002184A (en) * 2017-06-07 2018-12-14 北京搜狗科技发展有限公司 A kind of association method and device of input method candidate word
CN110308799A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Method, apparatus, computer equipment and the storage medium of text association

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270048A (en) * 2010-06-03 2011-12-07 北京搜狗科技发展有限公司 Noun input method and system
CN103019405A (en) * 2012-11-12 2013-04-03 东莞宇龙通信科技有限公司 Method and device for inputting names

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270048A (en) * 2010-06-03 2011-12-07 北京搜狗科技发展有限公司 Noun input method and system
CN103019405A (en) * 2012-11-12 2013-04-03 东莞宇龙通信科技有限公司 Method and device for inputting names

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107132926A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The creation method and device of noun phrase in input method
CN109002184A (en) * 2017-06-07 2018-12-14 北京搜狗科技发展有限公司 A kind of association method and device of input method candidate word
CN110308799A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Method, apparatus, computer equipment and the storage medium of text association

Similar Documents

Publication Publication Date Title
CN106713579B (en) Telephone number identification method and device
CN103546877A (en) Method and system for obtaining and inputting content code and mobile terminal
US20210149548A1 (en) Systems, devices and methods for electronic determination and communication of location information
US10380117B2 (en) Event occurrence place estimation method, computer-readable recording medium storing event occurrence place estimation program, and event occurrence place estimation apparatus
CN103037072A (en) Implementation method of extracting short message contents to apply to scene
CN107168599B (en) Instant messaging method and device
CN105898054A (en) Verification-based message display method and communication terminal
CN106611065B (en) Searching method and device
CN104284024A (en) Method for hiding contact person information on intelligent device
CN103179245A (en) System, method and program product for identifying calling telephone numbers
US20230214873A1 (en) Processing messages for attribute-value pair extraction
CN105792152A (en) Method and device for recognizing pseudo base station short message
CN106203229A (en) The terminal unit recognition Quick Response Code of different rights is with the method for the different information of display
WO2017121332A1 (en) Information sharing method and system
CN105022547A (en) Text input method and apparatus
CN103019405B (en) Name input method and device
CN106254675A (en) The method of system language setting and terminal
US20170171128A1 (en) Method and electronic device for email processing
US20160285905A1 (en) System and method for detecting mobile cyber incident
US20180081884A1 (en) Method and apparatus for processing input sequence, apparatus and non-volatile computer storage medium
CN104796525A (en) Short message display method and device
CN105636024A (en) Method and device for protecting privacy
CN106559554A (en) A kind of communication processing method, device
CN109977423A (en) A kind of unknown word processing method, apparatus, electronic equipment and readable storage medium storing program for executing
CN104660813B (en) Method and device for setting system language and mobile 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151104