An input method, apparatus and device for inputting
By detecting users' writing needs and providing writing suggestions, the problem of users frequently switching scenarios during the writing process is solved, thus improving writing efficiency and convenience.
Patent Information
- Application Number
- CN202010949270.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-10
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-02-16
AI Technical Summary
In existing technologies, users frequently switch scenes during the writing process to search for writing materials, resulting in high time costs and low efficiency. This is especially inconvenient for users with poor search and editing skills.
By acquiring relevant user input information, the system detects writing needs and displays writing suggestions that match the input information when writing needs are present. These suggestions include model essays, sentence materials, and writing tutorials, and are provided through the input method app's mini-program or writing panel.
It eliminates the need for users to frequently switch input scenarios and manually search for writing materials, improving writing efficiency and convenience and meeting users' writing needs.
Smart Images

Figure CN114253404B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of computer, in particular to an input method, an input device and a device for input. BACKGROUND
[0002] With the popularity of terminal devices, more and more users write online through terminal devices. In the writing process, the user usually needs to query related materials and optimize his own writing content.
[0003] In the prior art, the user needs to constantly exit the current input scene and make up the writing content in other scenes (such as switching to a browser, a writing material application), and then switch back to the previous input scene to continue writing, and so on. Frequent switching of scenes results in high time cost and low efficiency of writing. In addition, for users with poor search and editing capabilities, this process brings more inconvenience to the user. SUMMARY
[0004] Embodiments of the present application provide an input method, an input device and a device for input to provide writing suggestion content in the user input process, improve the writing efficiency and convenience of the user.
[0005] In a first aspect, embodiments of the present application provide an input method, which comprises: obtaining input related information of a user; detecting whether the user has a writing demand based on the input related information; and displaying writing suggestion content matched with the input related information in the case that the user has a writing demand.
[0006] In a second aspect, embodiments of the present application provide an input device, which comprises: an obtaining unit configured to obtain input related information of a user; a detecting unit configured to detect whether the user has a writing demand based on the input related information; and a first display unit configured to display writing suggestion content matched with the input related information in the case that the user has a writing demand.
[0007] In a third aspect, embodiments of the present application provide a device for input, which comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs contain instructions for: obtaining input related information of a user; detecting whether the user has a writing demand based on the input related information; and displaying writing suggestion content matched with the input related information in the case that the user has a writing demand.
[0008] In a fourth aspect, an embodiment of the present application provides a computer readable medium, which stores a computer program, and the computer program is executed by a processor to implement the method described in the first aspect.
[0009] The input method, device and apparatus for input provided by the embodiments of the present application can display the writing suggestion content matched with the input related information when the user exists the writing demand is detected based on the input related information of the user, so that the writing suggestion content can be provided in the input process of the user, the input scene needs to be frequently switched and the writing material needs to be manually searched by the user are avoided, and the writing efficiency and the convenience of writing of the user are improved. BRIEF DESCRIPTION OF DRAWINGS
[0010] Other characteristics, objects and advantages of the present application will become more apparent from the following detailed description of non-restrictive embodiments, made with reference to the attached drawings:
[0011] Figure 1 is a flowchart of an embodiment of the input method of the present application;
[0012] Figure 2 is a schematic diagram of the input method of the present application applied to a browser search scene;
[0013] Figure 3 is a schematic diagram of the input method of the present application applied to a search scene of a learning application;
[0014] Figure 4 is a schematic diagram of the input method of the present application applied to an instant messaging scene;
[0015] Figure 5 is a schematic diagram of the input method of the present application applied to a document scene;
[0016] Figure 6 is a schematic diagram of the process of starting the writing applet by the writing panel of the present application;
[0017] Figure 7 is a schematic diagram of the input method of the present application applied to another instant messaging scene;
[0018] Figure 8 is a structural schematic diagram of an embodiment of the input device of the present application;
[0019] Figure 9 is a structural schematic diagram of a device for input of the present application;
[0020] Figure 10 is a structural schematic diagram of a server in some embodiments of the present application. DETAILED DESCRIPTION
[0021] The application will be described in further detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related application and not to limit the application. In addition, it should be noted that, for the sake of description, only the parts related to the application are shown in the drawings.
[0022] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the drawings and embodiments.
[0023] Please refer to Figure 1 which shows a flow 100 of one embodiment of the input method according to the present application. The input method described above can run on various electronic devices, including but not limited to servers, smart phones, tablet computers, laptop computers, vehicle-mounted computers, desktop computers, wearable devices, etc.
[0024] The input method application mentioned in the embodiments of the present application can support multiple input methods. Among them, the input method can be a coding method adopted to input various symbols to electronic devices such as computers and mobile phones. Users can use the input method application to conveniently input the required characters or character strings into electronic devices. It should be noted that in the embodiments of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, five-stroke input method, phonetic input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages (such as English input method, Japanese hiragana input method, Korean input method, etc.), and the input method and the language types of the input method are not limited here.
[0025] The input method in the present embodiment can include the following steps:
[0026] Step 101, obtaining input-related information of the user.
[0027] In the present embodiment, the execution subject of the input method (such as the above-mentioned electronic device) can obtain the input-related information of the user. The output-related information here can include but is not limited to at least one of the following: input scene of the user, input content of the user, context information of the input content, personal preferences of the user, behavior data of the user, etc.
[0028] The above-mentioned input scene can include but is not limited to instant messaging scene, browser search scene, search scene in various applications (Application, APP), document scene (such as word, notepad scene, etc.), etc.
[0029] The input content can also include, but is not limited to, content that has been on-screen, content being edited, and the like. The content that has been on-screen can refer to all or part of the content that has been on-screen (such as the content after the last carriage return, space, or punctuation), which is not limited herein. For example, in a scenario in which a local user is instant messaging with a peer user through an instant messaging application, the input content "It is too difficult to tutor children in composition" has not been sent to the peer user, and the content can be used as the input content. For another example, in a text editing scenario, the user has on-screened "Spring is coming", and the content can be used as the input content.
[0030] At step 102, whether the user has a writing requirement is detected based on the input related information.
[0031] In the embodiment, the execution subject can detect whether the user has a writing requirement based on the input related information in multiple manners. The writing requirement can include, but is not limited to, at least one of the following: a writing material requirement, a writing tutoring requirement.
[0032] In one scenario, whether the user has a writing requirement can be detected by keyword matching on the input content. Specifically, the input content can be segmented first. Then, whether the segmented result contains a writing-related keyword, such as "composition", "writing", "expository essay", "narrative essay", and the like, is detected. If the writing-related keyword is contained, it can be considered that the user has a writing requirement. For example, the user inputs "How to write this composition?" in an instant messaging scenario, and the keyword "composition" is contained, which can be considered as the user having a writing requirement.
[0033] In another scenario, whether the user has a writing requirement can be detected by regular expression matching on the input content. A regular expression can use a single string to describe and match a series of strings that match a certain syntax rule. For example, a regular expression can be used to screen a regular expression containing the word "tutor" and the word "composition". If the user inputs "It is too difficult to tutor children in composition" in an instant messaging scenario, the regular expression is hit. Thus, it can be considered that the user has a writing requirement.
[0034] In another scenario, whether the user has a writing demand can be detected by subject matching on the input content or context content. Taking the input content as an example, if the subject of the input content matches any preset subject (for example, whether the similarity is greater than a preset value), it can be considered that the user has a writing demand. The subject of the input content can be obtained by a pre-trained subject detection model. The subject detection model can be trained by a machine learning method based on a sample set. The sample set can include a large number of sample texts, each of which can have a subject label. By training a basic model (such as an LSTM (Long Short-Term Memory) network) in a supervised learning manner, the subject detection model can be obtained.
[0035] In another scenario, features can be extracted from the input related information of the user. The features can be multi-dimensional features. The features are input into a pre-trained writing intention detection model to detect whether the user has a writing intention. The intention detection model can be obtained by training a binary classification model by a machine learning method. The binary classification model can use CNN (Convolutional Neural Networks), SVM (Support Vector Machine), etc.
[0036] It can be understood that whether the user has a writing demand can also be set according to needs, and is not limited to the above enumeration.
[0037] Step 103, in the case that the user has a writing demand, display writing suggestion content matched with the input related information.
[0038] In this embodiment, in the case that the user has a writing demand, the above execution subject can display writing suggestion content matched with the input related information. The writing suggestion content can include but is not limited to at least one of the following: model text material, sentence material, writing tutorial teaching material, etc.
[0039] The writing suggestion content can be presented in various manners. For example, the input method application can be configured with a mini-program function. The mini-program function supports displaying a relevant interface of a mini-program in the input method interface, so that the user can directly obtain the service provided by the mini-program in the input method interface. The mini-program configured by the input method application can include a writing mini-program. The writing mini-program can provide content such as writing material and writing teaching material, and can also provide a material search function. The writing suggestion content can be displayed by starting the writing mini-program. For another example, the input method application can be configured with a writing mode. When it is detected that the user has a writing demand, the writing mode can be started. In the writing mode, a writing panel can be displayed in the input method interface, so that the writing suggestion content is displayed in the writing panel for the user to view. In addition, the writing suggestion content can also be presented in various manners such as being displayed in the candidate items, being displayed in a floating window, being displayed by jumping to a writing application, and being displayed by jumping to a writing page, without being limited here.
[0040] Here, the presentation manner of the writing suggestion content can be manually selected by the user or automatically selected (for example, can be automatically selected according to an input scene). For example, when the user inputs a search word related to composition in a search box of a browser or a learning application, the writing suggestion content can be displayed through the writing mini-program. The writing suggestion content at this time can be writing material, writing tutoring teaching material, and the like related to the input content of the user. For another example, when the user inputs content in a document scene (such as a notepad or a word document), the writing suggestion content can be displayed through the writing panel of the input method application. The writing suggestion content at this time can be sentence material related to the input content of the user. In other input scenes, the writing suggestion content can also be presented in various manners such as being displayed in the candidate items, being displayed in a floating window, being displayed by jumping to a writing application, and being displayed by jumping to a writing page. The presentation manner of the writing suggestion content corresponding to each input scene can be pre-configured as needed, and will not be described here one by one.
[0041] In some optional implementation manners of the embodiment, in the case where the user has a writing demand, the above execution subject can first display guide information. In the case where it is detected that the user triggers the guide information, the writing suggestion content matched with the input-related information is displayed. The guide information can be used to indicate at least one of the following: triggering a writing mini-program of the input method application, jumping to a writing application, jumping to a writing page, triggering a writing panel of the input method application, and the like. The presentation manners of the guide information and the writing suggestion content are introduced below through two examples:
[0042] In Example One, if the user has a writing requirement, the execution subject can first display guide information for triggering the writing applet of the input method application. The guide information can directly prompt the user to start the writing applet, such as “click here to start the writing applet”, or can be content related to the user’s writing requirement to guide the user to start the writing applet by clicking the content. For example, “1000 ways to describe spring”, “how do students in grades 1-9 describe snow scenes?” and the like. In the case of detecting that the user triggers (such as clicks) the guide information, the writing applet can be started, and the writing suggestion content matching the input related information, such as writing materials, writing tutorial materials, and the like, can be displayed in the interface of the writing applet.
[0043] Referring to Figure 2 The schematic diagram of the browser search scenario is shown. After the user searches “describe spring” in the browser, it can be identified that the user has a writing material requirement related to “describe spring”. At this time, the input method interface can present guide information “1000 ways to describe spring”. When the user clicks on the guide information, the search result page of the writing applet can be entered, and the search result page displays writing materials matching “describe spring”. The user can browse multiple writing materials matching “describe spring” by sliding the search result page left and right.
[0044] Referring to Figure 3 The schematic diagram of the search scenario of the learning application is shown. After the user searches “snow scene” in the learning application, it can be identified that the user has a writing material requirement related to “snow scene”. At this time, the input method interface can present guide information “how do students in grades 1-9 describe snow scenes?”. When the user clicks on the guide information, the search result page of the writing applet can be entered, and the search result page displays writing materials matching “snow scene”. The user can browse multiple writing materials matching “snow scene” by sliding the search result page left and right.
[0045] Referring to Figure 4 The schematic diagram of the instant messaging scenario is shown. After the user inputs “it is too difficult to tutor children to write” in the message input box of the instant messaging application, it can be identified that the user has a writing tutoring requirement. At this time, the input method interface can present guide information “try me: AI writing tutoring wizard”. When the user clicks on the guide information, the writing tutoring page of the writing applet can be entered, and writing tutoring materials can be displayed in the writing tutoring page.
[0046] In Example Two, if the user has a writing requirement, the execution subject can first display guide information for triggering the writing panel. In the case of detecting that the user triggers the guide information, or in the case of detecting that the user triggers the writing panel according to the guide of the guide information, the sentence material matching the on-screen content can be displayed in the writing panel.
[0047] Referring toFigure 5 The schematic diagram of the document scenario is shown. After the user screens "Spring is coming" in the editing note, the input method interface presents the guide information "Wang Zai guesses you are writing an essay, touch me and I will surprise you". The user clicks the icon on the right side of the guide information, and the writing panel is displayed in the input method interface. The writing panel displays the sentence material "Spring is coming, the grass is long and the birds are flying, and everywhere is full of vitality" matched with the screened content "Spring is coming".
[0048] In addition, after displaying the sentence material matched with the screened content in the writing panel, the above execution subject can also detect the user operation. In the case of detecting that the user triggers (such as clicks) the sentence material, the screened content can be replaced by the sentence material. In the case of not detecting that the user triggers (such as clicks) the sentence material and detecting that the user continues to input, the content in the writing panel can be emptied, and the writing panel is waited for the next trigger. It should be noted that when the user does not trigger the sentence material in the writing panel for a preset number of times (such as twice), the writing panel and the sentence material can no longer be displayed, so as to avoid the content in the writing panel interfering with the user.
[0049] Further, in the case of detecting that the user continues to input (which can include continuing to input without triggering the sentence material, and continuing to input after triggering the sentence material), the above execution subject can obtain the newly added screened content, and display the sentence material matched with the above newly added screened content in the above writing panel. Thus, the user can be continuously provided with sentence materials during the input process, and the writing efficiency and convenience of the user can be improved.
[0050] For example, after the user triggers the sentence material "Spring is coming, the grass is long and the birds are flying, and everywhere is full of vitality", the sentence material "Spring is coming, the grass is long and the birds are flying, and everywhere is full of vitality" is screened. Then, the user continues to input the content, and the screened content is updated to "Spring is coming, the grass is long and the birds are flying, everywhere is full of vitality, willow". At this time, the writing requirement is hit again, and a new second guide information such as "How to describe the willow in the essay? Touch Wang Zai and I will tell you" can be prompted. When the user clicks the icon on the right side of the new second guide information, the writing panel can be displayed again in the input method interface, and the sentence material matched with the newly added screened content "willow" can be displayed in the writing panel, such as "the slender and graceful willow has sparse and delicate shadows, which are beautiful beyond description".
[0051] In the present example, the prompt information for prompting the user to view the complete model text can also be included in the guide information. At this time, in the case of detecting that the user triggers the prompt information, the above execution subject can also start the writing applet, and display the model material matched with the screened content in the writing applet. Referring to Figure 6The diagram illustrates the process of launching the writing mini-program via the writing panel. The writing panel displays matching phrases such as "Spring is here, the grass is growing and the birds are flying, everywhere is full of life" that correspond to the currently displayed content "Spring is here," along with a prompt to view the complete sample essay: "Study the sample essay." When the user clicks the "Study the sample essay" prompt, they can enter the writing mini-program. At this point, sample essays matching the currently displayed content "Spring is here" can be directly displayed within the writing mini-program, or the user can manually search for the desired sample essay within the writing mini-program.
[0052] It should be noted that the presentation of guidance information and writing suggestions is not limited to the examples above. By displaying guidance information and then showing writing suggestions when the user triggers the guidance information, users can freely choose whether or not to see the writing suggestions, thus meeting different user needs.
[0053] In some optional implementations of this embodiment, when a user has a writing need, the execution entity can first detect the type of writing suggestions required by the user based on the input information; then, it can display writing suggestions matching the specified writing suggestion type. The writing suggestion type may include, but is not limited to, at least one of the following: sample essay material needs, sentence material needs, and writing guidance needs. Correspondingly, the writing suggestion content may include, but is not limited to, at least one of the following: sample essay materials, sentence materials, and writing guidance materials.
[0054] In practice, the type of writing suggestions a user needs can be determined based on information such as the input scenario and input content from the input-related information. For example... Figure 2 The diagram illustrates a browser search scenario. When a user searches for "describing spring" in their browser, the system recognizes the user's need for sample essays related to "describing spring" and displays matching essays. For example... Figure 3 The illustration shows a search scenario in a learning app. When a user searches for "snow scene" in the app, the app recognizes the user's need for sample articles related to "snow scene" and displays matching articles. For example... Figure 4 The diagram illustrates an instant messaging scenario. After a user enters "It's too difficult to tutor my child in writing" in the message input box of the instant messaging application, the system can recognize that the user has a need for writing tutoring, and then display writing tutoring materials.
[0055] It should be noted that in addition to displaying the writing suggestion content matched with the above-mentioned writing suggestion type, a label of a different writing suggestion type can also be displayed. The user can randomly switch the labels by selection. In a case where it is detected that the user switches the above-mentioned label, the writing suggestion type corresponding to the switched label can be taken as a target writing suggestion type, and the writing suggestion content matched with the target writing suggestion type is displayed. In this way, the user can be conveniently and quickly provided with writing suggestion contents of multiple types, and the richness of the provided contents is improved.
[0056] In some optional implementation manners of the embodiment, the above-mentioned execution subject can also trigger the writing panel in other manners. Referring to Figure 7 Another schematic diagram of an instant messaging scene is shown. After the user inputs "how to write this composition" in the message input box of the instant messaging application, the second guide information, such as "input a composition, touch me to try it", is presented in the input method interface. Then, the user inputs "composition" in the message input box of the instant messaging application according to the second guide information, and touches the icon on the right side of the second prompt information, and then the writing panel can be presented. When the user starts new content input in the message input box of the instant messaging application, the corresponding sentence materials can be presented in the writing panel.
[0057] The method provided in the above-mentioned embodiment of the application can display the writing suggestion content matched with the input related information when it is detected that the user has a writing demand based on the input related information, so that the writing suggestion content can be provided in the user input process, without the user frequently switching the input scene and manually searching for writing materials, and the writing efficiency and convenience of the user are improved.
[0058] Further referring to Figure 8 , as an implementation of the method shown in the above-mentioned figures, the application provides an embodiment of an input device, which corresponds to the method embodiment shown in Figure 1 , and the device can be specifically applied to various electronic devices.
[0059] As shown in Figure 8 , the input device 800 of the embodiment includes: an acquisition unit 801 configured to acquire input related information of a user; a detection unit 802 configured to detect whether the user has a writing demand based on the above-mentioned input related information; and a first display unit 803 configured to display writing suggestion content matched with the above-mentioned input related information in a case where the user has a writing demand.
[0060] In some optional implementation manners of the embodiment, the above-mentioned first display unit 803 is further configured to: display guide information; and display the writing suggestion content matched with the above-mentioned input related information in a case where it is detected that the user triggers the above-mentioned guide information.
[0061] In some optional implementations of the embodiment, the guidance information is used to indicate at least one of triggering a writing applet of the input method application, jumping to a writing application, jumping to a writing page, and triggering a writing panel of the input method application.
[0062] In some optional implementations of the embodiment, the first display unit 803 is further configured to detect a writing suggestion type required by the user based on the input-related information, and display writing suggestion content matching the writing suggestion type.
[0063] In some optional implementations of the embodiment, the writing suggestion type includes at least one of a sample text material requirement, a sentence material requirement, and a writing tutoring requirement.
[0064] In some optional implementations of the embodiment, the first display unit 803 is further configured to display labels of different writing suggestion types, and in a case where it is detected that the user switches the labels, display writing suggestion content matching a writing suggestion type corresponding to the switched label as a target writing suggestion type.
[0065] In some optional implementations of the embodiment, the input-related information includes already-on-screen content, the guidance information is used to trigger a writing panel of the input method application, and the first display unit 803 is further configured to display a sentence material matching the already-on-screen content in the writing panel.
[0066] In some optional implementations of the embodiment, the guidance information includes prompt information used to guide the user to view a complete sample text, and the apparatus further includes a second display unit configured to, in a case where it is detected that the user triggers the prompt information, start the writing applet and display sample text material matching the already-on-screen content in the writing applet.
[0067] In some optional implementations of the embodiment, the apparatus further includes a third display unit configured to, in a case where it is detected that the user triggers the sentence material, replace the already-on-screen content with the sentence material.
[0068] In some optional implementations of the embodiment, the apparatus further includes a fourth display unit configured to, in a case where it is detected that the user continues to input, acquire newly added already-on-screen content, and display sentence material matching the newly added already-on-screen content in the writing panel.
[0069] The device provided by the above embodiments of the present application can display the writing suggestion content matched with the input-related information when it is detected that the user has a writing demand based on the input-related information of the user, thereby providing the writing suggestion content in the input process of the user, without the user frequently switching the input scene and manually searching for the writing material, and improving the writing efficiency and convenience of the user.
[0070] Figure 9 FIG. 9 is a block diagram of a device 900 for input according to an exemplary embodiment. The device 900 can be a smart terminal or a server. For example, the device 900 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0071] Referring to Figure 9 The device 900 can include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0072] The processing component 902 generally controls the overall operations of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 can include one or more processors 920 to execute instructions to complete all or part of steps of the above methods. In addition, the processing component 902 can include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0073] The memory 904 is configured to store various types of data to support operations of the device 900. Examples of these data include instructions for any application or method operating on the device 900, contact data, phonebook data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0074] The power supply component 906 supplies electrical power for the various components of the device 900. The power supply component 906 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing electrical power for the device 900.
[0075] The multimedia component 908 includes a screen providing an output interface between the device 900 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swiping, and gestures on the touch panel. The touch sensor can not only sense a boundary of a touching or swiping action, but also detect duration and pressure related to the touching or swiping action. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operation mode, such as a camera mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.
[0076] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC) configured to receive external audio signals when the device 900 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0077] The I / O interface 912 provides an interface between the processing component 902 and peripheral interface modules, such as a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0078] The sensor component 914 includes one or more sensors to provide various state assessments for the device 900. For example, the sensor component 914 can detect an open / closed state of the device 900, relative positioning of components, such as a display and a keypad of the device 900, a change in position of the device 900 or a component of the device 900, presence or absence of user contact with the device 900, a change in orientation of the device 900 or acceleration / deceleration of the device 900, and a temperature change of the device 900. The sensor component 914 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 914 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0079] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the aforementioned communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0080] In an exemplary embodiment, the device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic elements, for performing the above-described methods.
[0081] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 904 including instructions, is also provided, which can be executed by the processor 920 of the device 900 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.
[0082] Figure 10 is a structural diagram of a server in some embodiments of the present application. The server 1000 can have a large difference due to different configurations or performances, and can include one or more central processing units (CPUs) 1022 (e.g., one or more processors) and a memory 1032, one or more storage media 1030 (e.g., one or more mass storage devices) storing application programs 1042 or data 1044. Among them, the memory 1032 and the storage media 1030 can be temporary storage or persistent storage. The programs stored in the storage medium 1030 can include one or more modules (not shown in the figure), each of which can include a series of instruction operations in the server. Further, the central processing unit 1022 can be configured to communicate with the storage medium 1030 and execute a series of instruction operations in the storage medium 1030 on the server 1000.
[0083] The server 1000 can also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input / output interfaces 1058, one or more keyboards 1056, and / or one or more operating systems 1041, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
[0084] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an apparatus (a smart terminal or a server), enable the apparatus to perform an input method, the method comprising: obtaining input-related information of a user; detecting, based on the input-related information, whether the user has a writing demand; and in a case where the user has the writing demand, displaying writing suggestion content matched with the input-related information.
[0085] Optionally, the displaying of the writing suggestion content matched with the input-related information comprises: displaying guide information; and in a case where it is detected that the user triggers the guide information, displaying the writing suggestion content matched with the input-related information.
[0086] Optionally, the guide information is used to indicate at least one of the following: triggering a writing applet of an input method application, jumping to a writing application, jumping to a writing page, and triggering a writing panel of the input method application.
[0087] Optionally, the displaying of the writing suggestion content matched with the input-related information comprises: detecting, based on the input-related information, a writing suggestion type required by the user; and displaying writing suggestion content matched with the writing suggestion type.
[0088] Optionally, the writing suggestion type comprises at least one of the following: a sample text material requirement, a sentence material requirement, and a writing tutoring requirement.
[0089] Optionally, the displaying of the writing suggestion content matched with the writing suggestion type further comprises: displaying labels of different writing suggestion types; and in a case where it is detected that the user switches the labels, taking a writing suggestion type corresponding to a switched label as a target writing suggestion type, and displaying writing suggestion content matched with the target writing suggestion type.
[0090] Optionally, the input-related information comprises on-screen content, the guide information is used to trigger a writing panel of the input method application, and the displaying of the writing suggestion content matched with the input-related information comprises: displaying, in the writing panel, sentence material matched with the on-screen content.
[0091] Optionally, the guidance information comprises prompt information for guiding the user to view the complete template; and the apparatus configured to execute the one or more programs by one or more processors comprises instructions for starting the writing applet and displaying the template material matching the on-screen content in the writing applet when detecting that the user triggers the prompt information.
[0092] Optionally, the apparatus configured to execute the one or more programs by one or more processors comprises instructions for replacing the on-screen content with the sentence material when detecting that the user triggers the sentence material.
[0093] Optionally, the apparatus configured to execute the one or more programs by one or more processors comprises instructions for obtaining the newly added on-screen content and displaying the sentence material matching the newly added on-screen content in the writing panel when detecting that the user continues to input.
[0094] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0095] It will be understood that the application is not limited to the precise construction here described and illustrated in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the claims that follow.
[0096] The above merely provides a preferred embodiment of the application, and is not intended to limit the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall be included in the protection scope of the application.
[0097] The above provides a detailed description of an input method, device and a device for inputting. The principles and implementation modes of the application are described by applying specific examples. The above embodiment descriptions are only used to help understand the method of the application and its core idea; meanwhile, for those skilled in the art, according to the idea of the application, the specific implementation mode and application scope can be changed. In conclusion, the content of the specification should not be understood as limiting the application.
Claims
1. An input method, characterized by, A method for providing writing suggestion content in a user input process of an input method application, the method comprising: obtaining input-related information of a user; detecting whether the user has a writing demand based on the input-related information, wherein the detection of whether the user has the writing demand comprises keyword matching on input content, regular expression matching on the input content, theme matching on the input content or context content, and detection using a pre-trained writing intent detection model, wherein the writing demand comprises at least one of the following: a model text material demand, a writing tutoring demand; displaying guide information in an input method interface in a case where the user has the writing demand; detecting a writing suggestion type required by the user based on the input-related information in a case where it is detected that the user triggers the guide information, wherein the writing suggestion type comprises at least one of the following: a model text material demand, a sentence material demand, a writing tutoring demand; displaying writing suggestion content matched with the writing suggestion type in a candidate item of the input method interface or a writing panel of the input method interface, wherein the input method application is configured with a writing mode, the writing mode is started when it is detected that the user has the writing demand, and the writing panel is displayed in the input method interface in the writing mode; detecting a user operation in a case where sentence material matched with the on-screen content is displayed in the writing panel of the input method interface; replacing the on-screen content with the sentence material in a case where it is detected that the user triggers the sentence material; emptying the content in the writing panel in a case where it is not detected that the user triggers the sentence material and it is detected that the user continues to input, and waiting for the next trigger of the writing panel; detecting that the user continues to input, obtaining newly added on-screen content, and displaying the sentence material matched with the newly added on-screen content in the writing panel in a case where the user continues to input.
2. The method of claim 1, wherein, The guide information is used to indicate at least one of the following: triggering a writing applet of the input method application, jumping to a writing application, jumping to a writing page, and triggering the writing panel of the input method application.
3. The method of claim 1, wherein, The display of the writing suggestion content matched with the writing suggestion type further comprises: displaying labels of different writing suggestion types; detecting that the user switches the labels, taking the writing suggestion type corresponding to the switched label as a target writing suggestion type, and displaying writing suggestion content matched with the target writing suggestion type.
4. The method of claim 2, wherein, The input-related information comprises on-screen content, and the guide information is used to trigger the writing panel of the input method application. The display of the writing suggestion content matched with the input-related information comprises: displaying sentence material matched with the on-screen content in the writing panel.
5. An input device, characterized by A device for providing writing suggestion content in a user input process of an input method application, the device comprising: an obtaining unit configured to obtain input-related information of a user; detecting whether the user has a writing requirement based on the input-related information; the detecting whether the user has a writing requirement comprises keyword matching on input content, regular expression matching on the input content, subject matching on the input content or context content, or detection using a pre-trained writing intent detection model, wherein the writing requirement comprises at least one of the following: an essay material requirement, a writing tutoring requirement; a first display unit configured to display writing suggestion content matched with the input-related information in an input method interface if the user has a writing requirement; wherein the first display unit is further configured to: display guide information; detect a writing suggestion type required by the user based on the input-related information if it is detected that the user triggers the guide information; the writing suggestion type comprises at least one of the following: an essay material requirement, a sentence material requirement, a writing tutoring requirement; and display writing suggestion content matched with the writing suggestion type in a candidate item of the input method interface or in a writing panel of the input method interface, wherein the input method application is configured with a writing mode, the writing mode is started when it is detected that the user has a writing requirement, and the writing panel is displayed in the input method interface in the writing mode; wherein, after displaying sentence material matched with the on-screen content in the writing panel of the input method interface, a user operation is detected; if it is detected that the user triggers the sentence material, the on-screen content is replaced with the sentence material; if it is not detected that the user triggers the sentence material and it is detected that the user continues to input, the content in the writing panel is cleared, and the writing panel is waited for next triggering; if it is detected that the user continues to input, newly added on-screen content is obtained, and the sentence material matched with the newly added on-screen content is displayed in the writing panel; the continuing inputting includes continuing inputting without triggering the sentence material and continuing inputting after triggering the sentence material.
6. An apparatus for input, characterized by An input method application for providing writing suggestion content during user inputting includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: obtaining input-related information of a user; detecting whether the user has a writing requirement based on the input-related information; the detecting whether the user has a writing requirement comprises keyword matching on input content, regular expression matching on the input content, subject matching on the input content or context content, or detection using a pre-trained writing intent detection model, wherein the writing requirement comprises at least one of the following: an essay material requirement, a writing tutoring requirement; displaying guide information in an input method interface if the user has a writing requirement; In a case where it is detected that the user triggers the guidance information, a writing suggestion type required by the user is detected based on the input-related information; the writing suggestion type includes at least one of the following: a requirement for a writing material, a requirement for a sentence material, and a requirement for writing guidance; The input method application is configured with a writing mode, and the writing mode is started when it is detected that the user has a writing requirement; in the writing mode, the writing panel is displayed in the input method interface; In a case where it is detected that the user triggers the sentence material, the on-screen content is replaced with the sentence material; In a case where it is detected that the user triggers the sentence material, the on-screen content is replaced with the sentence material; In a case where it is detected that the user triggers the sentence material, the on-screen content is replaced with the sentence material; In a case where it is detected that the user triggers the sentence material, the on-screen content is replaced with the sentence material; 7. A computer readable medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the method of any one of claims 1-4. The program is executed by the processor to implement the method of any one of claims 1-4.
Citation Information
Patent Citations
Information display method and terminal
CN102014199A
Method and mobile terminal for fast switching application program based on input method
CN103995830A
A writing auxiliary method and a writing auxiliary client
CN109582839A