WO2016037465A1 - Handheld terminal-based intelligent input system and method for code design - Google Patents

Handheld terminal-based intelligent input system and method for code design Download PDF

Info

Publication number
WO2016037465A1
WO2016037465A1 PCT/CN2015/073355 CN2015073355W WO2016037465A1 WO 2016037465 A1 WO2016037465 A1 WO 2016037465A1 CN 2015073355 W CN2015073355 W CN 2015073355W WO 2016037465 A1 WO2016037465 A1 WO 2016037465A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyword
frequency
user
module
subsystem
Prior art date
Application number
PCT/CN2015/073355
Other languages
French (fr)
Chinese (zh)
Inventor
俞昊然
Original Assignee
北京矩道优达网络科技有限公司
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 北京矩道优达网络科技有限公司 filed Critical 北京矩道优达网络科技有限公司
Publication of WO2016037465A1 publication Critical patent/WO2016037465A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the invention relates to the technical field of communication, computer code design and human-computer interaction, and particularly relates to an intelligent input system and method for code design based on a handheld device end.
  • the system needs to provide different keyword lexicons, and the system will memorize the words in the process of using the user, and provide the user with the most suitable keywords in the input process, and add the code design. Commonly used operators and symbols, which can greatly improve the efficiency of code writing input.
  • An intelligent input system for code design based on a handheld device comprising:
  • the listening and response subsystem monitors and receives the behavior of the user during the input process, sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem, and displays the response from the keyword retrieval subsystem. information;
  • Keyword storage and indexing subsystem which stores commonly used keywords for code design; receives behavior information from the listening and response subsystem, determines new keywords generated by the user and stores them; receives behavior information from the monitoring and response subsystem , update the keyword usage frequency weight;
  • Keyword retrieval subsystem obtaining the local prefix of the keyword input by the user, to the keyword storage and index subsystem Request related keywords, sort according to the usage frequency corresponding to the relevant keywords, and return the sorted related keywords to the monitoring and response subsystem.
  • monitoring and response subsystem includes:
  • the interface display module displays the key layout and style of the input method to the user; according to the interaction behavior generated by the user, gives the user corresponding display behavior feedback; according to the monitored input behavior, the corresponding interface and characters are given. Display of information;
  • the behavior monitoring module acquires the current interactive behavior (tapping, sliding, etc.) of the user, and transmits the corresponding content generated by the behavior and the behavior to the interface display module for displaying the interface and the character information, and transmitting the content to the key Word storage and indexing subsystem, keyword retrieval subsystem;
  • the response information module is configured to receive return information from the keyword retrieval subsystem and send the received information to the interface display module.
  • the input method keyboard interface provided by the interface display module is divided into two screens, and the first screen mainly includes an alphabet key, a numeric key, a carriage return space tab and the like, a format control key, a cursor control direction key, and a current user.
  • a plurality of commonly used symbol keys; the second screen includes operators and symbols that are more commonly used in the current programming language environment. Users can select the code design environment they need to use, and the system will switch the default thesaurus, common operators, and symbol sets to content that matches the current environment.
  • the user can switch the screen by sliding left and right, and the first screen key is the default (initial state) display screen, and when the second screen symbol key is used, the present invention provides a "locking button", the user can pass the single Click this button to toggle between the "locked” and "unlocked” states. If not locked, the screen automatically switches to the first screen after entering a symbol key; if locked, the screen will continue to remain on the second screen, allowing the user to continue to input subsequent symbols.
  • keyword storage and indexing subsystem includes:
  • the keyword judgment and new keyword discovery module receives the behavior information from the monitoring and response subsystem, determines the keyword typing behavior, and sends a request to the common keyword storage module and the new keyword storage module to detect whether the typed keyword has been Existing in a common keyword storage module; transmitting a keyword already existing in the common keyword storage module to the keyword frequency response module; and transmitting a keyword not existing in the common keyword storage module to the new keyword storage module;
  • a commonly used keyword storage module stores the commonly-used keywords and their frequencies initially set; stores keywords and their frequencies from the keyword frequency response module; and receives keyword frequencies from the keyword frequency response module Update the request and update the keyword correspondence frequency;
  • the new keyword storage module stores the new keyword input from the keyword judgment and the new keyword discovery module, sets the initial frequency to a frequency unit, and receives the keyword frequency update request from the keyword frequency response module. And updating the keyword correspondence frequency; responding to the keyword deletion request from the keyword frequency response module, and deleting the keyword from the new keyword storage module;
  • the keyword frequency response module receives the keyword and increases the frequency of the corresponding keyword of the common keyword storage module and the new keyword storage module by one frequency unit; the frequency of the keyword in the new keyword storage module reaches the frequency After the threshold, the new keyword storage module is sent to delete the keyword request, and the keyword and its frequency are sent to the common keyword storage module.
  • the common keyword storage module is stored in a prefix tree format; the new keyword storage module is stored in a hash form.
  • the keyword retrieval subsystem includes:
  • the keyword prefix retrieval module receives the input information from the monitoring and response subsystem, and uses the prefix string as a prefix string for requesting to save the keyword list of the prefix string to the keyword storage and index subsystem common keyword storage module. And its frequency, and sent to the keyword sorting module;
  • the keyword sorting module receives the keyword list and its frequency from the keyword prefix retrieval module, and sorts the keyword list according to its frequency (or combines "recently called time”, “frequent mode”, “frequently closed mode”, etc.
  • the features are constructed with weights and sorted according to the corresponding weights), returning to the listen and response subsystem.
  • An intelligent input method for code design based on a handheld device using the above system comprising:
  • the interception and response subsystem listens to the behavior of the user during the input process, and sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem;
  • the keyword storage and indexing subsystem receives the user's behavior information, analyzes the user input content, determines the new keyword generated by the user, stores it, and updates the keyword usage frequency weight;
  • the keyword retrieval subsystem obtains the local prefix of the keyword input by the user, requests the relevant keyword from the keyword storage and index subsystem, sorts according to the used frequency corresponding to the relevant keyword, and sorts the relevant correlation. The keyword is returned to the listen and response subsystem for the user to choose to use.
  • step 2) includes the following sub-steps:
  • the new key storage module stores the keyword, and sends a frequency change request to the keyword frequency corresponding module, and then receives the return status and stores ;
  • the new keyword storage module sends a request to the common keyword storage module, and removes the keyword from the new keyword storage module. , added to the common keyword storage module;
  • the system sets an upper limit on the number of keywords of the common keyword storage module, and the number of keywords stored in the common keyword storage module is consumed. Save as much as possible In space, remove and add the lowest frequency of the keyword to the new keyword storage module, and change the threshold described in step c) to the frequency of the least frequently used keyword in the common keyword storage module. degree.
  • the invention improves and improves the efficiency of writing code on the handheld device by the interface splitting by function, sliding and cutting screen, and returning to the first screen by default after symbol input.
  • the system tracks and learns the user input behavior, and generates a common vocabulary for the user according to the frequency of the use of each phrase by the user; when the user types part of the content, the system according to the current The content has been typed to match, find the most likely keywords entered in the current user lexicon, and sort according to the frequency of the keyword usage, and return the sorted related keywords to the listener and
  • the response subsystem is for the user to choose to use, making the code writing on the handheld device more intelligent.
  • FIG. 1 is a general flow chart of an intelligent input method for code design based on a handheld device end in an embodiment
  • FIG. 2 is a flow chart of a keyword storage and indexing subsystem in an embodiment
  • FIG. 3 is a schematic flowchart of a keyword retrieval subsystem in an embodiment
  • Figure 4 is a schematic diagram 1 of an interface display module of the monitoring and response subsystem in the embodiment
  • FIG. 5 is a schematic diagram 2 of an interface display module of the monitoring and response subsystem in the embodiment.
  • Figure 1 is a schematic diagram showing the overall flow of the method of the present invention. As shown in FIG. 1, the embodiment mainly includes the following steps:
  • step 11 the monitoring and response subsystem provides an interactive interface for the user and responds to the user's interaction information in time.
  • Step 111 The monitoring and response subsystem provides an initialization interface for the user, and waits for the user to perform operations, and then obtains user operation information.
  • FIG. 4 and FIG. 5 are schematic diagrams of interface display modules of the monitoring and response subsystem of the embodiment.
  • the input method keyboard interface provided by the display module is divided into two screens.
  • Figure 4 is the first screen, which mainly includes the format control keys such as English alphabet keys, numeric keys, carriage return space tabs, cursor control direction keys, and the most commonly used by current users.
  • Figure 5 is the second screen, including the more commonly used operators and symbols in the current local environment; the user can select the code design environment to be used, the system will use the default thesaurus, common operators and symbols The set switches to the content conforming to the current environment; the user can switch the screen by sliding left and right, and the first screen key is the default (initial state) display; when the second screen symbol key is used, the present invention provides " Lock the button, as shown in the lower right corner of Figure 5, the user can switch between the "locked” and "unlocked” states by clicking the button; If it is not locked, the screen will automatically switch to the first screen after entering a symbol key; if locked, the screen will continue to remain on the second screen, allowing the user to continue to input subsequent symbols.
  • Step 112 The system listens to the user's actions such as tapping, sliding, and the like, and sends a corresponding request to the behavior monitoring module of the monitoring and response subsystem;
  • Step 113 The behavior monitoring module in the monitoring and response subsystem sends the behavior display feedback information to the interface display module according to the user's operation behavior;
  • Step 114 The interface display module updates the interface display content, so that the user obtains the response information
  • Step 115 The behavior monitoring module in the monitoring and response subsystem analyzes the input behavior and information of the user, and simultaneously sends the information corresponding to the behavior to the keyword storage and index subsystem and the keyword retrieval subsystem.
  • Step 12 After receiving the user behavior information sent by the monitoring and response subsystem, the keyword storage and indexing subsystem analyzes the user input information and adopts different processing manners according to different situations.
  • FIG. 2 is a schematic flowchart of the keyword storage and indexing subsystem of the embodiment. As shown in FIG. 2, the following sub-steps are included:
  • Step 121 The keyword determination and new keyword discovery module analyzes the user input content, and determines whether the keyword is stored in a common keyword storage module (ie, “common vocabulary” in FIG. 2), if present, The common keyword storage module sends a frequency change request to the keyword frequency response module; otherwise, returns information that the keyword does not exist;
  • a common keyword storage module ie, “common vocabulary” in FIG. 2
  • Step 122 When the common keyword storage module returns information that the keyword does not exist, the new key storage module (ie, the “new vocabulary” in FIG. 2) stores the keyword, and correspondingly to the keyword frequency. The module sends a frequency change request and then receives the return status;
  • the new key storage module ie, the “new vocabulary” in FIG. 2
  • Step 123 After the frequency of a certain keyword in the new keyword storage module is greater than a system setting threshold, the new keyword storage module sends a request to the common keyword storage module, and moves the keyword from the new keyword storage module.
  • the threshold is added to the common keyword storage module; the threshold may be set according to a limitation factor such as an average word frequency of the current user's new keyword storage module and a hash efficiency under the lexicon storage space limit;
  • Step 124 Considering that the space of the common keyword storage module is limited by the operating system of the handheld device, the system sets an upper limit on the number of keywords of the common keyword storage module. When the number of keywords stored in the common keyword storage module has exhausted the storage space, the lowest frequency of the keywords is removed and added to the new keyword storage module, and the threshold value described in step 123 is changed. The frequency of use of the keywords with the lowest frequency among the commonly used keyword storage modules;
  • Step 13 After receiving the user input content sent by the monitoring and response subsystem, the keyword retrieval subsystem analyzes and compares the current input content.
  • FIG. 3 is a schematic flowchart of the keyword retrieval subsystem of the embodiment, as shown in FIG. 3, including the following sub-steps:
  • Step 131 The keyword prefix retrieval module analyzes the input information of the user sent by the monitoring and response subsystem, first treating the input content as a keyword prefix, and storing the common keyword in the keyword storage and index subsystem. The module sends a request to retrieve all keywords in the common keyword storage module that match the keyword prefix;
  • Step 132 The common keyword storage module analyzes the received keyword prefix to check whether it can be regarded as a complete keyword. If the requirement is met, the keyword determination and the new keyword discovery module send a request to the keyword. Store, otherwise, return to the listen and response subsystem;
  • Step 133 The keyword sorting module receives the retrieved result, and sorts the keyword list by using the matching degree of the keyword prefix and the frequency of use of the keyword as reference values.
  • Step 134 The keyword sorting module sends the sorted keyword list to the response information module of the monitoring and response subsystem, and then the interface displays the module response information, and lists the most matching keywords of the current input content for the user to select and use.
  • the present invention uses various input methods to test the following simple code in the C language:
  • Andriod Sogou input method average time: 1 minute and 31 seconds;
  • iOS Baidu input method average time: 1 minute and 30 seconds;
  • the input method of the present invention takes an average of 43 seconds.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

Disclosed are a handheld terminal-based intelligent input system and method for code design, the system comprising a monitoring and responding sub-system, a key word storage and index sub-system and a key word search sub-system. The method comprises: when a user inputs code, the system tracks and learns a user input behavior, and generates a high-frequency word bank for the user according to the frequency of each word group used by the user; when the user partially types content, the system performs matching according to the currently typed content, retrieves the key words matched in the word bank that the user is most likely to be currently typing, ranks the key words according to the utilization frequency thereof, and returns the ranked related key words to the monitoring and responding sub-system for the user to select and use, thus enabling the code-writing of the handheld terminal to be more intelligent.

Description

基于手持设备端的用于代码设计的智能化输入系统与方法Intelligent input system and method for code design based on handheld device side 技术领域Technical field
本发明涉及通信、计算机代码设计和人机交互的技术领域,具体涉及一种基于手持设备端的用于代码设计的智能化输入系统与方法。The invention relates to the technical field of communication, computer code design and human-computer interaction, and particularly relates to an intelligent input system and method for code design based on a handheld device end.
背景技术Background technique
随着计算机代码设计和手持设备间通信在互联网领域的快速发展,人们在进行一些与代码设计相关的活动时,对于输入的改进需求愈发强烈,由于传统的输入法中不涉及对于代码设计内容的特殊处理,所以会极其不便。With the rapid development of computer code design and communication between handheld devices in the Internet field, people are increasingly demanding input improvements when doing some code design-related activities, because the traditional input method does not involve code design content. Special handling, so it will be extremely inconvenient.
伴随着在线学习的热潮,越来越多的学生和程序员会选择利用闲暇时间提高自我的专业知识水平,以追随新的技术实现。在使用手持设备进行代码设计学习时,需要使用触摸屏来键入代码内容,所以设计一款简化代码编写输入方式和提高程序输入效率的系统与方法格外迫切。Along with the upsurge of online learning, more and more students and programmers will choose to use their leisure time to improve their professional knowledge to follow the new technology. When using a handheld device for code design learning, you need to use a touch screen to type the code content, so it is extremely urgent to design a system and method that simplifies the code writing input method and improves the program input efficiency.
针对不同语言环境的设定,需要系统提供不同的关键字词库,同时系统会记忆使用者使用过程中的词语,并在输入过程给使用者提供当前最适配关键字,加以添加代码设计中常用的运算符和符号,从而可以大幅度提高代码编写输入的效率。For the setting of different language environments, the system needs to provide different keyword lexicons, and the system will memorize the words in the process of using the user, and provide the user with the most suitable keywords in the input process, and add the code design. Commonly used operators and symbols, which can greatly improve the efficiency of code writing input.
发明内容Summary of the invention
本发明的目的是,提供一种基于手持设备端的用于代码设计的智能化输入系统与方法,用以解决和改善现有的针对手持设备端编写代码的效率低且非智能化的问题。It is an object of the present invention to provide an intelligent input system and method for code design based on a handheld device end to solve and improve the existing inefficient and non-intelligent problem of writing code for a handheld device.
本发明的目的是通过以下技术方案实现的:The object of the invention is achieved by the following technical solutions:
一种基于手持设备端的用于代码设计的智能化输入系统,该系统包括:An intelligent input system for code design based on a handheld device, the system comprising:
监听与响应子系统,监听、接收使用者在输入过程中发出的行为,将产生的行为信息发送至关键字存储与索引子系统和关键字检索子系统,并显示来自关键字检索子系统的响应信息;The listening and response subsystem monitors and receives the behavior of the user during the input process, sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem, and displays the response from the keyword retrieval subsystem. information;
关键字存储与索引子系统,存储代码设计常用的关键字;接收来自监听与响应子系统的行为信息,判断出使用者产生的新关键字并进行储存;接收来自监听与响应子系统的行为信息,更新关键字使用频度权值;Keyword storage and indexing subsystem, which stores commonly used keywords for code design; receives behavior information from the listening and response subsystem, determines new keywords generated by the user and stores them; receives behavior information from the monitoring and response subsystem , update the keyword usage frequency weight;
关键字检索子系统,获取使用者输入的关键字的局部前缀,向关键字存储与索引子系统 请求相关关键字,根据相关关键字对应使用频度权值进行排序,并将排序后的相关关键字返回给监听与响应子系统。Keyword retrieval subsystem, obtaining the local prefix of the keyword input by the user, to the keyword storage and index subsystem Request related keywords, sort according to the usage frequency corresponding to the relevant keywords, and return the sorted related keywords to the monitoring and response subsystem.
进一步地,所述监听与响应子系统包括:Further, the monitoring and response subsystem includes:
界面显示模块,将输入方法的键位布局和样式展示给使用者;根据使用者产生的交互行为,给予使用者相应的显示性的行为反馈;根据监听到的输入行为,给出相应界面与字符信息的显示;The interface display module displays the key layout and style of the input method to the user; according to the interaction behavior generated by the user, gives the user corresponding display behavior feedback; according to the monitored input behavior, the corresponding interface and characters are given. Display of information;
行为监听模块,获取使用者当前的交互性行为(敲击、滑动等),将行为与行为产生的对应内容传送给界面显示模块用于界面与字符信息的显示,并将其中的内容发送给关键字存储与索引子系统、关键字检索子系统;The behavior monitoring module acquires the current interactive behavior (tapping, sliding, etc.) of the user, and transmits the corresponding content generated by the behavior and the behavior to the interface display module for displaying the interface and the character information, and transmitting the content to the key Word storage and indexing subsystem, keyword retrieval subsystem;
响应信息模块,用于接收来自关键字检索子系统的的返回信息,并且将接收到的信息发送到界面显示模块。The response information module is configured to receive return information from the keyword retrieval subsystem and send the received information to the interface display module.
进一步地,所述界面显示模块提供的输入法键盘界面分为两屏,第一屏主要包括英文字母键、数字键、回车空格制表等格式控制键、光标控制方向键以及当前使用者最常用的多个符号键;第二屏则包括当前编程语言环境下较为常用的运算符和符号等。使用者可以选定需要使用的代码设计环境,系统会将默认词库、常用运算符和符号集切换至符合当前环境的内容。使用者可以通过左右滑动来切换屏幕,且以第一屏键位为默认(初始状态)显示屏,在使用第二屏符号键位时,本发明提供了“锁定按钮”,使用者可以通过单击该按钮在“锁定”与“未锁定”状态之间进行切换。若未锁定,则在输入一个符号键后,屏幕自动切换到第一屏;若锁定,屏幕将继续保持在第二屏,允许使用者继续输入后续符号。Further, the input method keyboard interface provided by the interface display module is divided into two screens, and the first screen mainly includes an alphabet key, a numeric key, a carriage return space tab and the like, a format control key, a cursor control direction key, and a current user. A plurality of commonly used symbol keys; the second screen includes operators and symbols that are more commonly used in the current programming language environment. Users can select the code design environment they need to use, and the system will switch the default thesaurus, common operators, and symbol sets to content that matches the current environment. The user can switch the screen by sliding left and right, and the first screen key is the default (initial state) display screen, and when the second screen symbol key is used, the present invention provides a "locking button", the user can pass the single Click this button to toggle between the "locked" and "unlocked" states. If not locked, the screen automatically switches to the first screen after entering a symbol key; if locked, the screen will continue to remain on the second screen, allowing the user to continue to input subsequent symbols.
进一步地,所述关键字存储与索引子系统包括:Further, the keyword storage and indexing subsystem includes:
关键字判断与新关键字发现模块,接收来自监听与响应子系统的行为信息,判断出关键字键入行为;向常用关键字存储模块、新关键字存储模块发出请求,检测键入的关键字是否已经存在于常用关键字存储模块;向关键字频度响应模块发送已存在于常用关键字存储模块的关键字;向新关键字存储模块发送未存在于常用关键字存储模块的关键字;The keyword judgment and new keyword discovery module receives the behavior information from the monitoring and response subsystem, determines the keyword typing behavior, and sends a request to the common keyword storage module and the new keyword storage module to detect whether the typed keyword has been Existing in a common keyword storage module; transmitting a keyword already existing in the common keyword storage module to the keyword frequency response module; and transmitting a keyword not existing in the common keyword storage module to the new keyword storage module;
常用关键字存储模块,存储初始设置的常用关键字及其频度;存储来自关键字频度响应模块传入的关键字及其频度;接收来自关键字频度响应模块发出的关键字频度更新请求,并更新关键字对应频度;A commonly used keyword storage module stores the commonly-used keywords and their frequencies initially set; stores keywords and their frequencies from the keyword frequency response module; and receives keyword frequencies from the keyword frequency response module Update the request and update the keyword correspondence frequency;
新关键字存储模块,存储来自关键字判断与新关键字发现模块传入的新关键字,设置初始频率为一个频度单位;接收来自关键字频度响应模块发出的关键字频度更新请求,并更新关键字对应频度;响应来自关键字频度响应模块的关键字删除请求,并从新关键字储存模块删除该关键字; The new keyword storage module stores the new keyword input from the keyword judgment and the new keyword discovery module, sets the initial frequency to a frequency unit, and receives the keyword frequency update request from the keyword frequency response module. And updating the keyword correspondence frequency; responding to the keyword deletion request from the keyword frequency response module, and deleting the keyword from the new keyword storage module;
关键字频度响应模块,接收关键字,将常用关键字存储模块、新关键字存储模块的相应关键字频度增加一个频度单位;在新关键字储存模块中的关键字的频率达到频度阈值后,向新关键字存储模块发送删除该关键字请求,并向常用关键字存储模块发送该关键字及其频率。The keyword frequency response module receives the keyword and increases the frequency of the corresponding keyword of the common keyword storage module and the new keyword storage module by one frequency unit; the frequency of the keyword in the new keyword storage module reaches the frequency After the threshold, the new keyword storage module is sent to delete the keyword request, and the keyword and its frequency are sent to the common keyword storage module.
进一步地,所述常用关键字存储模块采用前缀树形式进行存储;所述新关键字存储模块采用散列形式进行存储。Further, the common keyword storage module is stored in a prefix tree format; the new keyword storage module is stored in a hash form.
进一步地,所述关键字检索子系统包括:Further, the keyword retrieval subsystem includes:
关键字前缀检索模块,接收来自监听与响应子系统的输入信息,视其为前缀字符串,用于向关键字存储与索引子系统的常用关键字存储模块请求保存该前缀字符串的关键字列表及其频率,并发送给关键字排序模块;The keyword prefix retrieval module receives the input information from the monitoring and response subsystem, and uses the prefix string as a prefix string for requesting to save the keyword list of the prefix string to the keyword storage and index subsystem common keyword storage module. And its frequency, and sent to the keyword sorting module;
关键字排序模块,接收来自关键字前缀检索模块的关键字列表及其频率,并将关键字列表根据其频率进行排序(或结合“最近调用时间”、“频繁模式”、“频繁闭合模式”等特征构造权重并根据相应权重进行排序),返回到监听与响应子系统。The keyword sorting module receives the keyword list and its frequency from the keyword prefix retrieval module, and sorts the keyword list according to its frequency (or combines "recently called time", "frequent mode", "frequently closed mode", etc. The features are constructed with weights and sorted according to the corresponding weights), returning to the listen and response subsystem.
一种采用上述系统的基于手持设备端的用于代码设计的智能化输入方法,该方法包括:An intelligent input method for code design based on a handheld device using the above system, the method comprising:
1)监听与响应子系统监听使用者在输入过程中发出的行为,将产生的行为信息发送至关键字存储与索引子系统和关键字检索子系统;1) The interception and response subsystem listens to the behavior of the user during the input process, and sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem;
2)关键字存储与索引子系统接收用户的行为信息,对用户输入内容进行分析,判断出使用者产生的新关键字并进行储存,并更新关键字使用频度权值;2) The keyword storage and indexing subsystem receives the user's behavior information, analyzes the user input content, determines the new keyword generated by the user, stores it, and updates the keyword usage frequency weight;
3)关键字检索子系统获取使用者输入的关键字的局部前缀,向关键字存储与索引子系统请求相关关键字,根据相关关键字对应使用频度权值进行排序,并将排序后的相关关键字返回给监听与响应子系统,供用户选择使用。3) The keyword retrieval subsystem obtains the local prefix of the keyword input by the user, requests the relevant keyword from the keyword storage and index subsystem, sorts according to the used frequency corresponding to the relevant keyword, and sorts the relevant correlation. The keyword is returned to the listen and response subsystem for the user to choose to use.
进一步地,步骤2)包括如下子步骤:Further, step 2) includes the following sub-steps:
a)判别用户输入的关键字是否存在于常用关键字存储模块中,如果存在,则常用关键字存储模块向关键字频度响应模块发送频度变更请求;否则,返回关键字不存在的信息;a) discriminating whether the keyword input by the user exists in the common keyword storage module; if yes, the common keyword storage module sends a frequency change request to the keyword frequency response module; otherwise, returns information that the keyword does not exist;
b)当常用关键字存储模块返回该关键字不存在的信息时,新关键存储模块对该关键字进行存储,并向关键字频度相应模块发送频度变更请求,然后接收返回状态并进行存储;b) When the common keyword storage module returns information that the keyword does not exist, the new key storage module stores the keyword, and sends a frequency change request to the keyword frequency corresponding module, and then receives the return status and stores ;
c)当新关键字存储模块中某一个关键字的频度大于系统设定阈值后,新关键字存储模块向常用关键字存储模块发送请求,并将该关键字从新关键字存储模块中移除,添加到常用关键字存储模块;c) When the frequency of a certain keyword in the new keyword storage module is greater than the system setting threshold, the new keyword storage module sends a request to the common keyword storage module, and removes the keyword from the new keyword storage module. , added to the common keyword storage module;
d)考虑到常用关键字存储模块的空间受到手持设备操作系统的限制,系统对常用关键字存储模块的关键词个数设置一上限,当常用关键字存储模块中存储的关键字个数已耗尽储存 空间时,将关键字中频度最低的移除并添加到新关键字存储模块中,同时将步骤c)中所述的阈值更改为常用关键字存储模块中频度最低的关键字的使用频度。d) Considering that the space of the common keyword storage module is limited by the operating system of the handheld device, the system sets an upper limit on the number of keywords of the common keyword storage module, and the number of keywords stored in the common keyword storage module is consumed. Save as much as possible In space, remove and add the lowest frequency of the keyword to the new keyword storage module, and change the threshold described in step c) to the frequency of the least frequently used keyword in the common keyword storage module. degree.
本发明通过界面按功能性分屏、滑动切屏、符号输入后默认自动返回第一屏的形式,提高和改善了在手持设备端编写代码的效率。本发明在使用者进行代码输入时,系统对使用者输入行为进行跟踪学习,根据使用者使用每一个词组的频度来为使用者生成常用词库;在使用者键入部分内容时,系统根据当前已键入内容进行匹配,找出当前使用者词库中匹配出的最有可能输入的关键字,并按照该关键字使用的频度来进行排序,并将排序后的相关关键字返回给监听与响应子系统,供用户选择使用,使手持设备端的代码编写更加智能化。The invention improves and improves the efficiency of writing code on the handheld device by the interface splitting by function, sliding and cutting screen, and returning to the first screen by default after symbol input. In the invention, when the user inputs the code, the system tracks and learns the user input behavior, and generates a common vocabulary for the user according to the frequency of the use of each phrase by the user; when the user types part of the content, the system according to the current The content has been typed to match, find the most likely keywords entered in the current user lexicon, and sort according to the frequency of the keyword usage, and return the sorted related keywords to the listener and The response subsystem is for the user to choose to use, making the code writing on the handheld device more intelligent.
附图说明DRAWINGS
图1为实施例中基于手持设备端的用于代码设计的智能化输入方法的总流程图;1 is a general flow chart of an intelligent input method for code design based on a handheld device end in an embodiment;
图2为实施例中关键字存储与索引子系统的流程图;2 is a flow chart of a keyword storage and indexing subsystem in an embodiment;
图3为实施例中关键字检索子系统的流程示意图;3 is a schematic flowchart of a keyword retrieval subsystem in an embodiment;
图4为实施例中监听与响应子系统的界面显示模块示意图1;Figure 4 is a schematic diagram 1 of an interface display module of the monitoring and response subsystem in the embodiment;
图5为实施例中监听与响应子系统的界面显示模块示意图2。FIG. 5 is a schematic diagram 2 of an interface display module of the monitoring and response subsystem in the embodiment.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面通过具体实施例和附图,对本发明做进一步说明。The above described objects, features and advantages of the present invention will become more apparent from the aspects of the appended claims.
图1为本发明方法的总流程示意图。如图1所示,该实施例主要包括以下步骤:Figure 1 is a schematic diagram showing the overall flow of the method of the present invention. As shown in FIG. 1, the embodiment mainly includes the following steps:
步骤11,监听与响应子系统为用户提供交互界面并及时响应用户的交互信息。In step 11, the monitoring and response subsystem provides an interactive interface for the user and responds to the user's interaction information in time.
步骤111,监听与响应子系统为用户提供初始化界面,并等待用户进行操作,然后获取用户操作信息;图4和图5均为本实施例的监听与响应子系统的界面显示模块示意图,该界面显示模块提供的输入法键盘界面分为两屏,图4是第一屏,主要包括英文字母键、数字键、回车空格制表等格式控制键、光标控制方向键以及当前使用者最常用的多个符号键;图5是第二屏,包括当前语言环境下较为常用的运算符和符号等;使用者可以选定需要使用的代码设计环境,系统会将默认词库,常用运算符和符号集切换至符合当前环境的内容;使用者可以通过左右滑动来切换屏幕,且以第一屏键位为默认(初始状态)显示屏;在使用第二屏符号键位时,本发明提供了“锁定”按钮,如图5右下角所示,使用者可以通过单击该按钮在“锁定”与“未锁定”状态之间进行切换;若未锁定,则在输入一个符号键后,屏幕自动切换到第一屏;若锁定,屏幕将继续保持在第二屏,允许使用者继续输入后续符号。 Step 111: The monitoring and response subsystem provides an initialization interface for the user, and waits for the user to perform operations, and then obtains user operation information. FIG. 4 and FIG. 5 are schematic diagrams of interface display modules of the monitoring and response subsystem of the embodiment. The input method keyboard interface provided by the display module is divided into two screens. Figure 4 is the first screen, which mainly includes the format control keys such as English alphabet keys, numeric keys, carriage return space tabs, cursor control direction keys, and the most commonly used by current users. Multiple symbol keys; Figure 5 is the second screen, including the more commonly used operators and symbols in the current local environment; the user can select the code design environment to be used, the system will use the default thesaurus, common operators and symbols The set switches to the content conforming to the current environment; the user can switch the screen by sliding left and right, and the first screen key is the default (initial state) display; when the second screen symbol key is used, the present invention provides " Lock the button, as shown in the lower right corner of Figure 5, the user can switch between the "locked" and "unlocked" states by clicking the button; If it is not locked, the screen will automatically switch to the first screen after entering a symbol key; if locked, the screen will continue to remain on the second screen, allowing the user to continue to input subsequent symbols.
步骤112,系统监听用户的敲击、滑行等行为,并向监听与响应子系统的行为监听模块发送相应请求;Step 112: The system listens to the user's actions such as tapping, sliding, and the like, and sends a corresponding request to the behavior monitoring module of the monitoring and response subsystem;
步骤113,监听与响应子系统中的行为监听模块根据用户的操作行为,将行为显示反馈信息发送给界面显示模块;Step 113: The behavior monitoring module in the monitoring and response subsystem sends the behavior display feedback information to the interface display module according to the user's operation behavior;
步骤114,界面显示模块更新界面显示内容,使用户获取到响应信息;Step 114: The interface display module updates the interface display content, so that the user obtains the response information;
步骤115,监听与响应子系统中的行为监听模块分析用户的输入行为及信息,同时将行为对应产生的信息分别发送给关键字存储与索引子系统和关键字检索子系统。Step 115: The behavior monitoring module in the monitoring and response subsystem analyzes the input behavior and information of the user, and simultaneously sends the information corresponding to the behavior to the keyword storage and index subsystem and the keyword retrieval subsystem.
步骤12,关键字存储和索引子系统接收到监听与响应子系统发送的用户行为信息后,将对用户输入信息进行分析并且根据不同情况采用不同处理方式。Step 12: After receiving the user behavior information sent by the monitoring and response subsystem, the keyword storage and indexing subsystem analyzes the user input information and adopts different processing manners according to different situations.
图2为本实施例的关键字存储与索引子系统的流程示意图,如图2所示,包括如下子步骤:FIG. 2 is a schematic flowchart of the keyword storage and indexing subsystem of the embodiment. As shown in FIG. 2, the following sub-steps are included:
步骤121,关键字判断与新关键字发现模块将对用户输入内容进行分析,并判别该关键字是否存储于常用关键字存储模块(即图2中的“常用词库”)中,如果存在,则常用关键字存储模块向关键字频度响应模块发送频度变更请求;否则,返回关键字不存在的信息;Step 121: The keyword determination and new keyword discovery module analyzes the user input content, and determines whether the keyword is stored in a common keyword storage module (ie, “common vocabulary” in FIG. 2), if present, The common keyword storage module sends a frequency change request to the keyword frequency response module; otherwise, returns information that the keyword does not exist;
步骤122,当常用关键字存储模块返回该关键字不存在的信息时,新关键存储模块(即图2中的“新词词库”)对该关键字进行存储,并向关键字频度相应模块发送频度变更请求,然后接收返回状态;Step 122: When the common keyword storage module returns information that the keyword does not exist, the new key storage module (ie, the “new vocabulary” in FIG. 2) stores the keyword, and correspondingly to the keyword frequency. The module sends a frequency change request and then receives the return status;
步骤123,当新关键字存储模块中某一个关键字的频度大于系统设定阈值后,新关键字存储模块向常用关键字存储模块发送请求,并将该关键字从新关键字存储模块中移除,添加到常用关键字存储模块;上述阈值可以根据当前用户新关键字储存模块平均词频、词库储存空间限制下散列效率等限制因素进行相应的设定;Step 123: After the frequency of a certain keyword in the new keyword storage module is greater than a system setting threshold, the new keyword storage module sends a request to the common keyword storage module, and moves the keyword from the new keyword storage module. In addition, the threshold is added to the common keyword storage module; the threshold may be set according to a limitation factor such as an average word frequency of the current user's new keyword storage module and a hash efficiency under the lexicon storage space limit;
步骤124,考虑到常用关键字存储模块的空间受到手持设备操作系统的限制,系统对常用关键字存储模块的关键词个数设置了一个上限。当常用关键字存储模块中存储的关键字个数已耗尽储存空间时,将关键字中频度最低的移除并添加到新关键字存储模块中,同时将步骤123中所述的阈值更改为常用关键字存储模块中频度最低的关键字的使用频度;Step 124: Considering that the space of the common keyword storage module is limited by the operating system of the handheld device, the system sets an upper limit on the number of keywords of the common keyword storage module. When the number of keywords stored in the common keyword storage module has exhausted the storage space, the lowest frequency of the keywords is removed and added to the new keyword storage module, and the threshold value described in step 123 is changed. The frequency of use of the keywords with the lowest frequency among the commonly used keyword storage modules;
步骤13,关键字检索子系统接收到监听与响应子系统发送的用户输入内容后,对当前输入内容进行分析比对。Step 13: After receiving the user input content sent by the monitoring and response subsystem, the keyword retrieval subsystem analyzes and compares the current input content.
图3为本实施例的关键字检索子系统的流程示意图,如图3所示,包括如下子步骤:FIG. 3 is a schematic flowchart of the keyword retrieval subsystem of the embodiment, as shown in FIG. 3, including the following sub-steps:
步骤131,关键字前缀检索模块对监听与响应子系统发送的用户的输入信息进行分析,先将该输入内容视为一个关键字前缀,并向关键字存储与索引子系统中的常用关键字存储模块发送请求,检索常用关键字存储模块中与关键字前缀匹配的所有关键字; Step 131: The keyword prefix retrieval module analyzes the input information of the user sent by the monitoring and response subsystem, first treating the input content as a keyword prefix, and storing the common keyword in the keyword storage and index subsystem. The module sends a request to retrieve all keywords in the common keyword storage module that match the keyword prefix;
步骤132,常用关键字存储模块对接收的关键字前缀进行分析,查看是否可以视为一个完整的关键字,如果满足要求,则向关键字判断和新关键字发现模块发送请求,对该关键字进行存储,否则,返回监听与响应子系统;Step 132: The common keyword storage module analyzes the received keyword prefix to check whether it can be regarded as a complete keyword. If the requirement is met, the keyword determination and the new keyword discovery module send a request to the keyword. Store, otherwise, return to the listen and response subsystem;
步骤133,关键字排序模块接收检索后的结果,并使用关键字前缀的匹配程度和关键字的使用频度作为参考值,对关键字列表进行排序;Step 133: The keyword sorting module receives the retrieved result, and sorts the keyword list by using the matching degree of the keyword prefix and the frequency of use of the keyword as reference values.
步骤134,关键字排序模块将排序后的关键字列表发送到监听与响应子系统的响应信息模块,之后界面显示模块响应信息,将当前输入内容的最匹配关键字列出来供用户选择使用。Step 134: The keyword sorting module sends the sorted keyword list to the response information module of the monitoring and response subsystem, and then the interface displays the module response information, and lists the most matching keywords of the current input content for the user to select and use.
本发明采用各种输入法对于以下以C语言为例的简单代码进行了测试:The present invention uses various input methods to test the following simple code in the C language:
Figure PCTCN2015073355-appb-000001
Figure PCTCN2015073355-appb-000001
实际测试结果如下:The actual test results are as follows:
Andriod原生英文键盘平均用时:1分55秒;Andriod native English keyboard average time: 1 minute 55 seconds;
Andriod搜狗输入法平均用时:1分31秒;Andriod Sogou input method average time: 1 minute and 31 seconds;
iOS原生英文键盘平均用时:1分43秒;iOS native English keyboard average time: 1 minute and 43 seconds;
iOS百度输入法平均用时:1分30秒;iOS Baidu input method average time: 1 minute and 30 seconds;
本发明的输入方法平均用时:43秒。The input method of the present invention takes an average of 43 seconds.
以上实施例仅用以说明本发明的技术方案而非对其进行限制,本领域的普通技术人员可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明的精神和范围,本发明的保护范围应以权利要求所述为准。 The above embodiments are only used to illustrate the technical solutions of the present invention, and the present invention is not limited thereto, and those skilled in the art can modify or replace the technical solutions of the present invention without departing from the spirit and scope of the present invention. The scope of protection shall be as stated in the claims.

Claims (10)

  1. 一种基于手持设备端的用于代码设计的智能化输入系统,其特征在于,包括:An intelligent input system for code design based on a handheld device, characterized in that it comprises:
    监听与响应子系统,监听和接收使用者在输入过程中发出的行为,将产生的行为信息发送至关键字存储与索引子系统和关键字检索子系统,并显示来自关键字检索子系统的响应信息;The listener and response subsystem listens and receives the behavior of the user during the input process, sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem, and displays the response from the keyword retrieval subsystem. information;
    关键字存储与索引子系统,存储代码设计常用的关键字;接收来自监听与响应子系统的行为信息,判断出使用者产生的新关键字并进行储存;接收来自监听与响应子系统的行为信息,更新关键字使用频度权值;Keyword storage and indexing subsystem, which stores commonly used keywords for code design; receives behavior information from the listening and response subsystem, determines new keywords generated by the user and stores them; receives behavior information from the monitoring and response subsystem , update the keyword usage frequency weight;
    关键字检索子系统,获取使用者输入的关键字的局部前缀,向关键字存储与索引子系统请求相关关键字,根据相关关键字对应使用频度权值进行排序,并将排序后的相关关键字返回给监听与响应子系统,供用户选择使用。The keyword retrieval subsystem obtains a local prefix of the keyword input by the user, requests relevant keywords from the keyword storage and index subsystem, sorts according to the frequency used by the relevant keyword, and sorts the relevant key The word is returned to the listening and response subsystem for the user to choose to use.
  2. 如权利要求1所述的系统,其特征在于,所述监听与响应子系统包括:The system of claim 1 wherein said listening and responding subsystem comprises:
    界面显示模块,将键位布局和样式展示给使用者;根据使用者产生的交互行为,给予使用者相应的显示性的行为反馈;根据监听到的输入行为,给出相应界面与字符信息的显示;The interface display module displays the key layout and style to the user; according to the interaction behavior generated by the user, gives the user corresponding display behavior feedback; according to the monitored input behavior, the corresponding interface and character information are displayed. ;
    行为监听模块,获取使用者当前的交互性行为,将行为与行为产生的对应内容传送给界面显示模块用于界面与字符信息的显示,并将其中的内容发送给关键字存储与索引子系统、关键字检索子系统;The behavior monitoring module acquires the current interactive behavior of the user, transmits the corresponding content generated by the behavior and the behavior to the interface display module for displaying the interface and the character information, and sends the content to the keyword storage and index subsystem, Keyword retrieval subsystem;
    响应信息模块,用于接收来自关键字检索子系统的的返回信息,并且将接收到的信息发送到界面显示模块。The response information module is configured to receive return information from the keyword retrieval subsystem and send the received information to the interface display module.
  3. 如权利要求2所述的系统,其特征在于:所述界面显示模块提供的输入法键盘界面分为两屏,第一屏包括英文字母键、数字键、格式控制键、光标控制方向键以及当前使用者最常用的若干符号键;第二屏包括当前编程语言环境下较为常用的运算符和符号。The system according to claim 2, wherein the input method keyboard interface provided by the interface display module is divided into two screens, and the first screen comprises an English alphabet key, a numeric key, a format control key, a cursor control direction key, and a current The number of symbol keys most commonly used by the user; the second screen includes operators and symbols that are more commonly used in the current programming language environment.
  4. 如权利要求3所述的系统,其特征在于:所述第一屏为默认显示屏,所述第二屏设有锁定按钮,使用者通过单击该按钮在锁定与未锁定状态之间进行切换;若未锁定,则在输入一个符号键后,屏幕自动切换到第一屏;若锁定,则在输入一个符号键后,屏幕继续保持在第二屏,允许使用者继续输入后续符号。The system of claim 3 wherein said first screen is a default display and said second screen is provided with a lock button, the user switching between locked and unlocked states by clicking the button If not locked, the screen automatically switches to the first screen after entering a symbol key; if locked, after entering a symbol key, the screen continues to remain on the second screen, allowing the user to continue to input subsequent symbols.
  5. 如权利要求1所述的系统,其特征在于,所述关键字存储与索引子系统包括:The system of claim 1 wherein said keyword storage and indexing subsystem comprises:
    关键字判断与新关键字发现模块,接收来自监听与响应子系统的行为信息,判断出关键字键入行为;向常用关键字存储模块、新关键字存储模块发出请求,检测关键字是否已经存在于常用存储模块;向关键字频度响应模块发送已存在于常用关键字存储模块的关键字;向新关键字存储模块发送未存在于常用关键字存储模块的关键字; The keyword judgment and new keyword discovery module receives the behavior information from the monitoring and response subsystem, determines the keyword typing behavior, and sends a request to the common keyword storage module and the new keyword storage module to detect whether the keyword already exists in the a common storage module; sending a keyword that already exists in the common keyword storage module to the keyword frequency response module; and transmitting a keyword that does not exist in the common keyword storage module to the new keyword storage module;
    常用关键字存储模块,存储初始设置的常用关键字及其频度;存储来自关键字频度响应模块传入的关键字及其频度;接收来自关键字频度响应模块发出的关键字频度更新请求,并更新关键字对应频度;A commonly used keyword storage module stores the commonly-used keywords and their frequencies initially set; stores keywords and their frequencies from the keyword frequency response module; and receives keyword frequencies from the keyword frequency response module Update the request and update the keyword correspondence frequency;
    新关键字存储模块,存储来自关键字判断与新关键字发现模块传入的新关键字,设置初始频率为一个频度单位;接收来自关键字频度响应模块发出的关键字频度更新请求,并更新关键字对应频度;响应来自关键字频度响应模块的关键字删除请求,并从新关键字储存模块删除该关键字;The new keyword storage module stores the new keyword input from the keyword judgment and the new keyword discovery module, sets the initial frequency to a frequency unit, and receives the keyword frequency update request from the keyword frequency response module. And updating the keyword correspondence frequency; responding to the keyword deletion request from the keyword frequency response module, and deleting the keyword from the new keyword storage module;
    关键字频度响应模块,接收关键字,将常用关键字存储模块、新关键字存储模块的相应关键字频度增加一个频度单位;在新关键字储存模块中的关键字的频率达到一频率阈值后,向新关键字存储模块发送删除该关键字请求,并向常用关键字存储模块发送该关键字及其频率。The keyword frequency response module receives the keyword and increases the frequency of the corresponding keyword of the common keyword storage module and the new keyword storage module by one frequency unit; the frequency of the keyword in the new keyword storage module reaches a frequency After the threshold, the new keyword storage module is sent to delete the keyword request, and the keyword and its frequency are sent to the common keyword storage module.
  6. 如权利要求5所述的系统,其特征在于:所述常用关键字存储模块采用前缀树形式进行存储;所述新关键字存储模块采用散列形式进行存储。The system according to claim 5, wherein said common keyword storage module is stored in a prefix tree format; said new keyword storage module is stored in a hash form.
  7. 如权利要求1所述的系统,其特征在于:所述关键字检索子系统包括:The system of claim 1 wherein said keyword retrieval subsystem comprises:
    关键字前缀检索模块,接收来自监听与响应子系统的输入信息,视其为前缀字符串,用于向关键字存储与索引子系统的常用关键字存储模块请求保存该前缀字符串的关键字列表及其频率,并发送给关键字排序模块;The keyword prefix retrieval module receives the input information from the monitoring and response subsystem, and uses the prefix string as a prefix string for requesting to save the keyword list of the prefix string to the keyword storage and index subsystem common keyword storage module. And its frequency, and sent to the keyword sorting module;
    关键字排序模块,接收来自关键字索引模块的关键字列表及其频率,并将关键字列表根据其频率进行排序,返回到监听与响应子系统。The keyword sorting module receives the keyword list and its frequency from the keyword indexing module, and sorts the keyword list according to its frequency, and returns to the monitoring and response subsystem.
  8. 一种采用权利要求1所述系统的基于手持设备端的用于代码设计的智能化输入方法,其特征在于,包括如下步骤:An intelligent input method for code design based on a handheld device end using the system of claim 1 is characterized in that it comprises the following steps:
    1)监听与响应子系统监听使用者在输入过程中发出的行为,将产生的行为信息发送至关键字存储与索引子系统和关键字检索子系统;1) The interception and response subsystem listens to the behavior of the user during the input process, and sends the generated behavior information to the keyword storage and index subsystem and the keyword retrieval subsystem;
    2)关键字存储与索引子系统接收用户的行为信息,对用户输入内容进行分析,判断出使用者产生的新关键字并进行储存,并更新关键字使用频度权值;2) The keyword storage and indexing subsystem receives the user's behavior information, analyzes the user input content, determines the new keyword generated by the user, stores it, and updates the keyword usage frequency weight;
    3)关键字检索子系统获取使用者输入的关键字的局部前缀,向关键字存储与索引子系统请求相关关键字,根据相关关键字对应使用频度权值进行排序,并将排序后的相关关键字返回给监听与响应子系统,供用户选择使用。3) The keyword retrieval subsystem obtains the local prefix of the keyword input by the user, requests the relevant keyword from the keyword storage and index subsystem, sorts according to the used frequency corresponding to the relevant keyword, and sorts the relevant correlation. The keyword is returned to the listen and response subsystem for the user to choose to use.
  9. 如权利要求8所述的方法,其特征在于,步骤2)包括如下子步骤:The method of claim 8 wherein step 2) comprises the following substeps:
    a)判别用户输入的输入的关键字是否存在于常用关键字存储模块中,如果存在,则常用关键字存储模块向关键字频度响应模块发送频度变更请求;否则,返回关键字不存在的信息; a) discriminating whether the input keyword input by the user exists in the common keyword storage module. If yes, the common keyword storage module sends a frequency change request to the keyword frequency response module; otherwise, the return keyword does not exist. Information
    b)当常用关键字存储模块返回该关键字不存在的信息时,新关键存储模块对该关键字进行存储,并向关键字频度相应模块发送频度变更请求,然后接收返回状态并进行存储;b) When the common keyword storage module returns information that the keyword does not exist, the new key storage module stores the keyword, and sends a frequency change request to the keyword frequency corresponding module, and then receives the return status and stores ;
    c)当新关键字存储模块中某一个关键字的频度大于系统设定阈值后,新关键字存储模块向常用关键字存储模块发送请求,并将该关键字从新关键字存储模块中移除,添加到常用关键字存储模块;c) When the frequency of a certain keyword in the new keyword storage module is greater than the system setting threshold, the new keyword storage module sends a request to the common keyword storage module, and removes the keyword from the new keyword storage module. , added to the common keyword storage module;
    d)对常用关键字存储模块的关键词个数设置一上限,当常用关键字存储模块中存储的关键字个数已耗尽储存空间时,将关键字中频度最低的移除并添加到新关键字存储模块中,同时将步骤c)中所述的阈值更改为常用关键字存储模块中频度最低的关键字的使用频度。d) setting an upper limit on the number of keywords of the common keyword storage module. When the number of keywords stored in the common keyword storage module has exhausted the storage space, the lowest frequency of the keywords is removed and added to In the new keyword storage module, the threshold value described in step c) is simultaneously changed to the frequency of use of the keyword with the lowest frequency among the common keyword storage modules.
  10. 如权利要求8或9所述的方法,其特征在于:使用者采用的输入法键盘界面分为两屏,第一屏包括英文字母键、数字键、格式控制键、光标控制方向键以及当前使用者最常用的若干符号键;第二屏包括当前编程语言环境下较为常用的运算符和符号;所述第一屏为默认显示屏,所述第二屏设有锁定按钮,使用者通过单击该按钮在锁定与未锁定状态之间进行切换;若未锁定,则在输入一个符号键后,屏幕自动切换到第一屏;若锁定,则在输入一个符号键后,屏幕继续保持在第二屏,允许使用者继续输入后续符号。 The method according to claim 8 or 9, wherein the input method keyboard interface adopted by the user is divided into two screens, and the first screen comprises an English alphabet key, a numeric key, a format control key, a cursor control direction key, and a current use. The most commonly used symbol keys; the second screen includes operators and symbols that are more commonly used in the current programming language environment; the first screen is a default display screen, and the second screen is provided with a lock button, and the user clicks The button switches between locked and unlocked states; if not locked, the screen automatically switches to the first screen after entering a symbol key; if locked, the screen continues to remain in the second after entering a symbol key Screen that allows the user to continue to enter subsequent symbols.
PCT/CN2015/073355 2014-09-11 2015-02-27 Handheld terminal-based intelligent input system and method for code design WO2016037465A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410461670.3 2014-09-11
CN201410461670.3A CN104267843B (en) 2014-09-11 2014-09-11 Hand-held device end based intelligent input system and method for code design

Publications (1)

Publication Number Publication Date
WO2016037465A1 true WO2016037465A1 (en) 2016-03-17

Family

ID=52159370

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073355 WO2016037465A1 (en) 2014-09-11 2015-02-27 Handheld terminal-based intelligent input system and method for code design

Country Status (2)

Country Link
CN (1) CN104267843B (en)
WO (1) WO2016037465A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086039A (en) * 2018-08-02 2018-12-25 济南安软天健科技有限公司 A kind of automatic write method of code

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104267843B (en) * 2014-09-11 2017-05-17 北京矩道优达网络科技有限公司 Hand-held device end based intelligent input system and method for code design
CN107273533A (en) * 2017-06-29 2017-10-20 武汉楚鼎信息技术有限公司 A kind of all-key table Multidimensional numerical intersection search method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140595A (en) * 2007-10-31 2008-03-12 北京搜狗科技发展有限公司 Network resource address input method and input method system
CN102663016A (en) * 2012-03-21 2012-09-12 上海汉翔信息技术有限公司 System and method for implementing input information extension on input candidate box on electronic device
CN103019398A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Character input method and character input device
CN104267843A (en) * 2014-09-11 2015-01-07 俞昊然 Hand-held device end based intelligent input system and method for code design

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6775663B1 (en) * 1999-12-17 2004-08-10 Si Han Kim Information coding and retrieval system and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140595A (en) * 2007-10-31 2008-03-12 北京搜狗科技发展有限公司 Network resource address input method and input method system
CN103019398A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Character input method and character input device
CN102663016A (en) * 2012-03-21 2012-09-12 上海汉翔信息技术有限公司 System and method for implementing input information extension on input candidate box on electronic device
CN104267843A (en) * 2014-09-11 2015-01-07 俞昊然 Hand-held device end based intelligent input system and method for code design

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086039A (en) * 2018-08-02 2018-12-25 济南安软天健科技有限公司 A kind of automatic write method of code

Also Published As

Publication number Publication date
CN104267843B (en) 2017-05-17
CN104267843A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
US10809914B2 (en) System and method for inputting text into electronic devices
US7809719B2 (en) Predicting textual candidates
US20200278952A1 (en) Process and Apparatus for Selecting an Item From a Database
WO2014040510A1 (en) Method, device, and terminal equipment for enabling intelligent association in input method
WO2022083750A1 (en) Text display method and apparatus and electronic device
JP2007529069A (en) Apparatus, method and system for data entry interface
CN108268438B (en) Page content extraction method and device and client
US10073828B2 (en) Updating language databases using crowd-sourced input
CN104156161A (en) System and method for carrying out clicking, word capturing and searching on information equipment screen
US10152473B2 (en) English input method and input device
US20190188647A1 (en) Multiple element job classification
WO2016037465A1 (en) Handheld terminal-based intelligent input system and method for code design
CN105812531B (en) A kind of querying method of name of contact person, device and terminal
WO2022143341A1 (en) Input method candidate word display method and apparatus, and electronic device
WO2022105754A1 (en) Character input method and apparatus, and electronic device
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
US20110093497A1 (en) Method and System for Data Input
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN105426389A (en) Fuzzy retrieval locating method based on UI directory tree view
WO2016107611A1 (en) Method and device for text search for mobile terminal
CN107450742A (en) A kind of information processing method, device and terminal
JP2014146076A (en) Character string extraction method, character string extraction apparatus, and character string extraction program
AU2012209049B2 (en) Improved process and apparatus for selecting an item from a database
CN114237451A (en) Information acquisition method and device, electronic equipment and readable storage medium
AU2015200883A1 (en) Improved process and apparatus for selecting an item from a database

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15839787

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15839787

Country of ref document: EP

Kind code of ref document: A1