WO2019095682A1 - Candidate word prediction method and device - Google Patents

Candidate word prediction method and device Download PDF

Info

Publication number
WO2019095682A1
WO2019095682A1 PCT/CN2018/091054 CN2018091054W WO2019095682A1 WO 2019095682 A1 WO2019095682 A1 WO 2019095682A1 CN 2018091054 W CN2018091054 W CN 2018091054W WO 2019095682 A1 WO2019095682 A1 WO 2019095682A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
screen
intention
association
intent
Prior art date
Application number
PCT/CN2018/091054
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 WO2019095682A1 publication Critical patent/WO2019095682A1/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/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

Definitions

  • the present application relates to the field of input methods, and in particular to a candidate association method and apparatus.
  • the input method may provide the user with the content that may be associated with the content or the context content in a Lenovo manner according to the content that the user has input through the input method or the context content of the current cursor position.
  • Lenovo candidates save user input costs and increase input efficiency. For example, after the user clicks on the "search dog", it can provide association candidates such as "input method” and "search”.
  • the traditional association method usually uses historical data as the basis for determining the candidate candidate. For example, if the historical data includes: the “sogou input method” input by the user, the user can provide the association candidate after the user “screens the dog”. "Input”. In other words, the association candidate for the upper screen content can only be derived from historical data, or can only be generated based on historical data.
  • the present application provides a candidate association method and device, which improves the user's input convenience, and the determined candidate does not need to be generated according to the user's historical input data, thereby improving the association candidate.
  • an embodiment of the present application provides a candidate association method, where the method includes:
  • Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen
  • a candidate corresponding to the already-online content is associated.
  • an embodiment of the present application provides a candidate association device, where the device includes a first determining unit, a second determining unit, a first acquiring unit, and a Lenovo unit:
  • the first determining unit is configured to determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen;
  • the second determining unit is configured to determine a association intention for the content that has been on the screen
  • the first acquiring unit is configured to acquire data corresponding to the association intention according to a keyword in the uploaded content
  • the association unit is configured to associate a candidate corresponding to the screened content according to the data.
  • an embodiment of the present application provides a processing device for candidate association, including a memory, and one or more programs, where one or more programs are stored in a memory and configured to be Or the one or more processors executing the one or more programs include instructions for performing the following operations:
  • Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen
  • a candidate corresponding to the already-online content is associated.
  • an embodiment of the present application provides a machine readable medium having stored thereon instructions that, when executed by one or more processors, cause a device to perform a candidate association method as in the first aspect.
  • the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen.
  • the association intention of the content on the screen can be determined, and the content of the user may continue to be on the screen after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input.
  • the possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility and accuracy of the association candidate.
  • 1 is a display interface of an on-screen content and a candidate on a mobile terminal device
  • FIG. 2 is a schematic flowchart of a candidate association method according to an embodiment of the present application.
  • FIG. 3a is a display interface of a candidate corresponding to the upper screen content provided by the embodiment of the present application.
  • FIG. 3b is a display interface of a candidate corresponding to the upper screen content provided by the embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for determining an intention determination condition according to an embodiment of the present application
  • FIG. 5 is a schematic flowchart diagram of a candidate association method based on an intention sentence pattern according to an embodiment of the present application
  • FIG. 6 is a candidate display interface corresponding to the content of the upper screen provided by the embodiment of the present application.
  • FIG. 7 is a structural diagram of a device of a candidate association device according to an embodiment of the present application.
  • FIG. 8 is a block diagram of an apparatus for candidate association according to an embodiment of the present application.
  • FIG. 9 is a block diagram of a server for candidate association according to an embodiment of the present application.
  • the user After displaying the content on the screen, the user often hopes that the input method can associate the candidate with the candidate that may be associated with the screened content, so as to directly select the content to be screened in the candidate, thereby improving the input efficiency of the user. .
  • the traditional association method can only use historical data as the basis for deciding which candidates, and can not and will not determine the association intention of the content on the screen. In other words, the traditional association method generally compares whether the content already on the screen exists. In the historical data, if the content of the upper screen exists in the historical data, it is possible to obtain the candidate corresponding to the content of the upper screen from the historical data. For example, when the historical data includes the "sogou input method" input by the user, it is possible to associate the "input method" when the content of the upper screen is "sogou". For content that has not been input by the user, the input method is difficult to give a candidate based on the association of the content on the screen, and the user can only input the content to be screened by the input method.
  • the historical data includes the "sogou input method”, “sogou pinyin”, “sogou browser” and “sogou search” that the user has input. If the content of the upper screen is "sogou”, then it will be from history. The corresponding candidates are extracted from the data. Specifically, refer to FIG. 1.
  • FIG. 1 is a display interface of the uploaded content and the candidate on the mobile terminal device.
  • the candidate association 104 can be generated in the candidate display area 103 according to the historical data by using the conventional association method, wherein the candidate 104 can be Including "Input Method", “Pinyin”, “Browser” and “Search”, the candidate 104 must all come from historical data, and there will be no content that does not exist in the historical data, for example, when the historical data does not include " When you search for a dog map, the map will not be included in the candidate.
  • the embodiment of the present application provides a solution to the above-mentioned candidate association situation, so as to determine that the association intention of the already-on-screen content can be determined by the content of the upper screen, thereby determining In the candidate corresponding to the association intention, the candidate can be obtained without relying on the user's historical data, the user's input convenience can be improved, and the range of the association candidate can be increased.
  • the method of this embodiment can first determine the association intention of the content on the screen based on the content of the screen, and obtain the screen.
  • the association intention of the content "I am here from Tsinghua University” may be the association intention of the location distance, and thus the character of the user may be determined according to the association's intention to enter the screen after "I am here from Tsinghua University".
  • the type can be a character that includes distance information.
  • the keyword may be "Tsinghua University", and according to the data, it is associated with "I am from Tsinghua University”.
  • the candidate can represent the distance information between the "I” and "Tsinghua University” locations.
  • the input method mentioned in the embodiment of the present application may be an encoding method adopted for inputting various symbols into an electronic device such as a computer or a mobile phone, and the user may conveniently use the input method to conveniently use a character or a string required by the user. Enter the electronic device.
  • the input method in the embodiment of the present application may include other Chinese input methods (such as pinyin input method, five-stroke input method, phonetic input method, etc.), and may also include input methods in other languages (such as Japanese language).
  • the kana input method, the Korean input method, etc. do not limit the language of the input method and the input method.
  • the content of the last screen may be included in the content already on the screen.
  • the content of the screen may be the content input by the user through the input method and the content of the screen, or the content of the screen sent by the communication peer. It can also be the context content of the location where the cursor is located.
  • the format of the content on the screen is not limited in the embodiment of the present application, and the format of the content on the screen may include: text, picture, voice, and the like.
  • the content of the upper screen may include the last time the character of the upper screen is selected by the input method and the series of consecutive characters before the character of the upper screen is selected by the input method last time.
  • a character, the continuation may mean that there are no symbols such as punctuation or spaces indicating discontinuity between characters. The determination of the content already on the screen will be described in detail later.
  • Lenovo's intent can reflect to some extent the user's actual input intent for the content on the screen. According to Lenovo's intention, it can reflect what type of content the user may continue to play after inputting the content on the screen. Take the content of the screen as "I am from Tsinghua University" as an example. Generally speaking, after inputting "I am from Tsinghua University", the content that needs to be input is used to indicate the content of the distance information, that is, the The upper screen content has an intent to calculate the distance. Therefore, based on the already-online content, it is possible to determine that the association intention is a association intention with respect to the position distance. Of course, the association intention may also be a association intention regarding a place or the like.
  • the candidate may be the content that the input method may continue to be on the screen after the content has been determined according to the association intention, that is, the content to be on the screen.
  • the content to be on the screen may be a character string. For example, when the content of the screen is "I am from Tsinghua University," the candidate can be "500 meters.” Since the language of the input method is not specifically limited in the embodiment of the present application, the language type corresponding to the candidate generated by the input method is not specifically limited.
  • FIG. 2 is a schematic flowchart diagram of a candidate association method according to an embodiment of the present application.
  • the method may include the following steps:
  • S201 Determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen.
  • the content on the screen may all be used as the content already on the screen, or may be partially used as the content already on the screen. For the reasonable determination, it may be used as the content already on the screen. It includes the last time the screen was uploaded.
  • the user can select a character string displayed on the screen by using an input method, and the character string may include one character or multiple characters.
  • the character string includes one character
  • the screened content is a character displayed on the screen; when the character string includes a plurality of characters, and all the characters in the character string are continuous, that is, The character string is a character, and does not include a symbol such as a punctuation.
  • the screened content is a character string displayed on the screen; when the character string includes a plurality of characters, and the character string includes punctuation And the like, then, the on-screen content is a series of consecutive characters including the character that selected the upper screen by the input method last time and the character that selected the upper screen by the input method last time.
  • the input string has been selected to display the string displayed on the screen as "I am from Tsinghua University", where "Yes” is the last character selected by the input method on the screen, because “I am from Tsinghua University here.
  • the Chinese characters are continuous. Therefore, "I have a place from Tsinghua University” can be used as the content on the screen.
  • the above-mentioned content on the screen is the string “I am here from Tsinghua University", including All the characters in "I am from Tsinghua University”.
  • all the characters displayed on the screen have been selected by the input method as "the weather is very good today, I am on the way to Tsinghua University, I am from Tsinghua University", among them, "Yes” is the most recent input method.
  • Choosing the characters on the screen because "the weather is very good today, I am on the way to Tsinghua University, I have a lot of characters from Tsinghua University here, and there is a comma between the characters “good” and “I”, in " There is a comma between "Up” and “I”.
  • select the last character that has been selected by the input method last time to select the upper screen characters "Yes” and “Yes” until the comma appears.
  • the content of the above screen is “I am from Tsinghua University”, and the content on the screen includes "The weather is very good today, I am on the way to Tsinghua University, I am from Tsinghua University” character.
  • the screen can be regarded as a display screen of an electronic device such as a mobile terminal, and is a carrier for content display such as a character string, and the input method panel can also be displayed on the screen.
  • the association intention may reflect the content that the user may input after inputting the content on the screen, that is, the content to be on the screen.
  • Lenovo's intent can be a association intent with respect to positional distance.
  • the content on the screen is “I am from Tsinghua University.”
  • the next possible input is “Tsinghua University” and “I” when the screen is on the screen.
  • the distance information between the locations, then the association intention determined according to the already-screened content is the associative intent regarding the location distance.
  • Lenovo's intent can be a Lenovo intent about the place.
  • the content of the screen has been "I am”.
  • the next possible input content is the location of the "I” when the screen content has been screened, then, according to the above
  • the association intention determined by the screen content is the association intention of the place.
  • one implementation is to determine the association intention according to the intention determination condition, and the on-screen content has different associations when the upper screen content satisfies different intent determination conditions.
  • intention Specifically, the content of the upper screen is matched with the intention determination condition. If the content of the upper screen meets the intention determination condition, it may be determined that the content of the upper screen has a corresponding content corresponding to the intention determination condition.
  • Lenovo's intentions The intention judgment condition, and the correspondence relationship between the intention judgment condition and the association intention may be predetermined, different intention judgment conditions may correspond to different association intentions, and the same association intention may correspond to a plurality of intention judgment conditions.
  • the intent determination condition may include an intent keyword or an intent sentence pattern.
  • the intent keyword may be a text that reflects the user's next input intention.
  • the on-screen content may be matched with the intent keyword, for example, whether the in-the-top keyword or the text similar to the intent keyword is included in the upper screen content, if The screen content includes the intent keyword or a text similar to the intent keyword, and it may be determined that the uploaded content has a association intent corresponding to the intent keyword.
  • the intent keyword includes “off” and “yes”
  • the intent keyword reflects that the user's next input intention is to input the text indicating the distance information, and the content of the screen has been "I am from Tsinghua University" and will be on the screen.
  • the screen content is matched with the intent keyword. Since the on-screen content includes the intent keywords "off” and "yes”, the on-screen content satisfies the intent keyword, and then the screened content can be determined to satisfy the The intention determination condition that the on-screen content has a association intention corresponding to the intent keyword, that is, the user next inputs a text intended to input distance information.
  • the intent sentence can be organized into a sentence according to a certain pattern to reflect the user's input intention. This mode is called an intent sentence.
  • This mode is called an intent sentence.
  • "I am here from " is an intent sentence, where "" can refer to a place, and the intention sentence adopts "I am here].
  • There is a "model” to reflect the user's input intent is to enter the distance information between the location of "I” and a certain location.
  • Another example is “I am" is an intent sentence, where "" can refer to a place, and the intention sentence adopts "I am"
  • the pattern reflects the user's input intent is to enter the location where "I" is located.
  • the content of the screen can be matched with the intention sentence pattern, for example, whether the sentence pattern of the screen content is consistent or similar to the intention sentence pattern, if they are consistent or similar, Determining that the on-screen content satisfies the intent sentence pattern, having a association intent corresponding to the intent sentence pattern.
  • the intent sentence includes “I am here from ", and the content on the screen is “I am from Tsinghua University", and the content of the screen has been matched with the intent sentence.
  • the sentence form of the screen content is also "I am here from ", consistent with the intent sentence pattern, then the already-on-screen content satisfies the intent sentence pattern, and has a Lenovo intent corresponding to the intent sentence pattern. .
  • the keyword may be a text indicating an object of interest to the user in the already-screened content. Take the content of the screen as "I am here from Tsinghua University”. The user's concern is “Tsinghua University”. Then, "Tsinghua University” can be the content of the screen. "I have a place from Tsinghua University.” Keywords.
  • the keyword When the association is intended to be a association intention with respect to a position distance, the keyword includes a first location, and the first location may identify location information of a location indicated by the keyword, for example, when the keyword is Tsinghua University, Then, the first position included in the keyword may be location information of Tsinghua University, such as GPS (Global Positioning System) coordinates.
  • the first distance information between the first position and the second position may be determined according to the first position and the second position corresponding to when the upper screen content is on the screen, and the first distance information is used as the Data corresponding to the associative intent of the positional distance.
  • the second location may be a location where the user is located when the user has put the upper screen content on the screen through the character input device.
  • the first distance information between the first location and the second location may be calculated according to the third-party data interface, where the third-party data interface may be, for example, a map. interface.
  • the third-party data interface may be, for example, a map. interface.
  • the position of the user when the upper screen content is on the screen can be obtained by using the GPS, that is, the second position corresponding to the upper screen content when the screen is on the screen.
  • the input method may determine that the first position identifying the position indicated by the keyword is determined according to the keyword in the content of the upper screen, and according to The first location and the second location corresponding to when the upper screen content is on the screen, the first distance information between the first location and the second location is obtained from the map interface as a association intention with the location distance Corresponding data.
  • the GPS module can obtain the position where the user is located when the upper screen content is on the screen as the second position. If the input method determines that the association intention of the content on the screen is the association intention of the position distance, the input method can determine "Tsinghua University" as the keyword indicating the first position from "I am from Tsinghua University", and automatically based on "Tsinghua University” and the location where the user has been on the screen when the screen is on the screen, and obtain the first distance information between the location of the user and the location where the user has been on the screen when the screen content is on the screen interface. The data corresponding to the association intent of the position distance.
  • the first distance information may be expressed in the form of a distance, for example, “500 meters”; or may be expressed in a time form, for example, “a distance of 5 minutes”.
  • the data may be directly used as a candidate corresponding to the content already on the screen. If the first distance information is data corresponding to the association intention with respect to the position distance, the input method may use the first distance information as a candidate corresponding to the already-screened content. It is also possible to process the data to obtain candidates corresponding to the content of the upper screen.
  • the input method obtains the position between the user of Tsinghua University and the user who has already screened the screen.
  • the distance of the first distance information is 500 meters, and "500 meters" can be used as a candidate corresponding to the content already on the screen.
  • the first distance information is represented by a distance form such as “500 meters”, and may also be expressed in a time form, for example “5 minutes distance”, then “5 minutes distance” may be used as the above-mentioned screen The candidate corresponding to the content.
  • a distance form such as “500 meters”
  • time form for example “5 minutes distance”
  • “5 minutes distance” may be used as the above-mentioned screen
  • the candidate corresponding to the content it is also possible to use "500 meters” and "5 minutes of distance” as candidates for the above-mentioned upper screen content, so that the user can select the upper screen.
  • FIG. 3a shows a display interface of candidates corresponding to the content of the upper screen in the embodiment.
  • the on-screen content to be associated can be determined, and the Lenovo's intention can largely reflect the user's actual input intention for the already-screened content.
  • the association intention of the content on the screen is determined, the content of the user may continue to be uploaded after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input.
  • the possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility of the association candidate.
  • the candidate when the input method displays the candidate, the candidate may include, according to the data obtained by S204, the candidate corresponding to the uploaded content according to the data, and may also include the traditional method.
  • the candidate candidates obtained by S204 associating the candidate corresponding to the uploaded content according to the data as the input candidate may be displayed before other candidates.
  • the candidate 302 in FIG. 3a may include other candidates obtained by a conventional method, such as other candidates, for example, A candidate generated based on the history of the previous screen content. For example, the history has been on the screen as "I am far away from Tsinghua University”, then the history has been on the screen as “I am far away from Tsinghua University” can generate candidates "very far away” , the candidate display interface is shown in Figure 3b.
  • the input method can determine the association intention according to the intention judgment condition, the on-screen content may have different associative intentions when the upper screen content satisfies different intent determination conditions. Therefore, the input method may first determine the intention determination condition, so that when the association intention for the already-screened content is determined, the already-screened content may be matched with the intention determination condition, thereby determining the content for the already-on-screen content according to the matching situation.
  • Lenovo's intentions are examples of the association intention for the already-screened content.
  • FIG. 4 is a schematic flowchart diagram of a method for determining an intent determination condition, where the method includes:
  • the input data when determining the intent determination condition, may include, according to the input data of the user, the user has selected the upper screen content of the upper screen through the input method, that is, the history has been on the screen. Since the embodiment of the present application mainly determines the association intention with respect to the position distance, the history has already included information related to the position distance, such as location information and distance information, wherein the location information may refer to a clear location. Character content, such as "Tsinghua University", “Sogou headquarters” and so on. The distance information may be a character content indicating a distance, such as "500m", "10 minutes away", and the like.
  • the history of the on-screen content acquired in S401 may be one or more, wherein each history-on-screen content may include at least one type of information, and each of the at least one type of information may be location information, distance Information, time information, weather information, and more. Since the association in the present embodiment is intended to be a association intention with respect to the positional distance, in order to obtain an intention determination condition that can determine the association intention, the history regarding the positional distance can be obtained from the history of the upper screen content.
  • the content, that is, the history of the acquired screen content may be the history of the screen content including the location information and the distance information.
  • history has been screened including: "I am 500 meters away from Tsinghua University”, “I am 5 minutes away from Peking University”, “Tsinghua University's teaching building is 50 meters high”, "now Beijing time 5 o'clock, from the above history, the content of the screen has been selected to include the location information and distance information.
  • the history of the screen has been: “I am 500 meters away from Tsinghua University”, “I am 5 minutes away from Peking University.” “Tour distance” and “Tsinghua University’s teaching building is 50 meters high”.
  • the history-over screen content including the location information and the distance information may be obtained through S401, but there may be a case where the history has been on the screen content although the location information and the distance information are included, but the history has been on the screen content and about
  • the associative intent of the positional distance may not be relevant, in which case the historically screened content that is not related to the associative intent of the positional distance may be eliminated to obtain an intent judgment condition regarding the associative intention of the positional distance, thereby Improve the accuracy of the intent to judge the condition of the association intention of the position distance.
  • the culling method refer to S402-S403.
  • the height of the teaching building of Tsinghua University is 50 meters.
  • the height of the teaching building of Tsinghua University is 50 meters, although the location information "Tsinghua University” is included.
  • “Teaching Building” and distance information "50 meters” but “Tsinghua University's teaching building height is 50 meters” just reflects the height of a building, and does not reflect the Lenovo's intention of the distance of location, that is, the history has been on the screen "
  • the height of the teaching building of Tsinghua University is 50 meters. It is not related to the association intention of the distance of the position. It cannot be used to determine the intent judgment condition of the association intention of the position distance. Therefore, it needs to be obtained from S401 and includes the position information. And the history of distance information has been removed from the screen content.
  • S402. Determine second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen.
  • the data corresponding to the association intention may be determined according to the first position and the second position corresponding to when the upper screen content is on the screen, so that the location information is included.
  • the history of the distance information has been related to the association intention of the on-screen content to be associated with the association, and correspondingly, the distance information including the position information and the distance information has been displayed in the upper screen content, and the content may be on the screen according to the history.
  • the included location information and the location information corresponding to the history when the upper screen content is on the screen are determined.
  • the second distance information is the same as the distance information included in the historical screen content.
  • the history of the on-screen content is related to the associative intention of the on-screen content to be associated, and the history of the on-screen content can be used as the basis for determining the intent judgment condition regarding the association intention of the position distance.
  • the second distance information may be in the form of a distance, such as "500 meters”, or may be in the form of time, such as "5 minutes of travel.”
  • the threshold value may be implemented by using a preset threshold.
  • the preset threshold may be manually set.
  • the second distance information and the distance information included in the history of the upper screen content meet the preset threshold, the second distance information may be considered to be relatively close to the distance information included in the historical screen content.
  • the history-over-screen content can determine an intent judgment condition for the association intention regarding the position distance.
  • the satisfying the preset threshold may be, for example, that the second distance information is within 10% of the distance information included in the historical screen content. If the second distance information and the distance information included in the historical screen content do not satisfy the preset threshold, the second distance information may be considered to be different from the distance information included in the historical screen content.
  • the history-over-screen content cannot determine the intent determination condition for the association intention of the location distance, and the history-over-screen content may be excluded from the history-over-screen content acquired by S401.
  • the history has been on the screen as “the height of the teaching building of Tsinghua University is 50 meters”, and the preset threshold is 10%.
  • the location information is “Tsinghua University” and the distance information is “50 meters”.
  • the second distance information is determined according to the position information corresponding to the location information "Tsinghua University” and "the height of the teaching building of Tsinghua University is 50 meters", and the second distance information is 500 meters.
  • the second distance information "500” "M” is different from the distance information "50 meters” by more than 10%. It can be considered that the second distance information is different from the distance information included in the history of the upper screen content, and the content of the screen cannot be determined according to the history.
  • the intent determination condition regarding the association intention of the position distance may be removed from the historical on-screen content including the position information and the distance information.
  • the history has been screened as “I am 500 meters away from Tsinghua University” and the default threshold is 10%.
  • the location information is “Tsinghua University” and the distance information is “500 meters”.
  • the second distance information is determined according to the location information corresponding to the location information "Tsinghua University” and "I am 500 meters away from Tsinghua University”, and the second distance information is 500 meters. At this time, the second distance information is "500 meters.
  • the intention determination condition for the associative intention regarding the position distance can be determined based on the history of the upper screen content.
  • the history-on-screen content may be processed. , to obtain an intent judgment condition regarding the association intention of the position distance.
  • the location information and the distance information included in the history-on-screen content may be removed, and then the intent keyword or the identifier may be determined according to the remaining characters in the history-upper screen content.
  • An intent sentence pattern, and the intent keyword or the intent sentence sentence is used as an intent judgment condition for the associative intention regarding the position distance, for determining a association intention for the already-screened content.
  • the intent keyword may include some of the remaining characters.
  • the history has been screened as "I am 500 meters away from Tsinghua University", in which the location information is “Tsinghua University” and the distance information is "500 meters”.
  • the remaining characters "I am away from here” are obtained, wherein “off” and “yes” can be used as intent keywords for determining that the above is on The association intent of the screen content.
  • the location information included in the content of the upper screen may be replaced by replacing the location information with a common symbol, thereby obtaining an intended sentence pattern, for example, the general symbol may be "###", "" and other symbols.
  • the content of the screen is "I am 500 meters away from Tsinghua University". According to this method, after removing the location information and distance information included in the history of the screen, I get "I am here ### ⁇ " Forming an intent sentence for determining a association intent for the content that has been on the screen.
  • the intent judgment condition is an intentional sentence formula
  • the intention sentence sentence includes "I am here from ### ⁇ ”
  • the association intention corresponding to the intention sentence pattern is a association intention regarding the position distance
  • the content of the upper screen is "I am here from the Sohu Network Building” as an example, how to use the intentional sentence to determine the candidate.
  • the location information is "Sohu Network Building”.
  • FIG. 5 is a schematic flowchart diagram of a candidate association method based on an intentional sentence pattern, where the method includes:
  • the location information “Sohu Network Building” in the content of the upper screen can be replaced by a universal symbol, and the universal symbol can be “###”, for example, so that “I am away from ###” corresponding to the content of the upper screen. There are “sentences.”
  • the sentence pattern corresponding to the content of the upper screen happens to be the sentence pattern "I am here from ### ⁇ " which appears in the aforementioned intention sentence pattern. According to this, it is determined that the association content of the content of the screen "I am from the Sohu Network Building" is the association intention of the position distance, that is, the content that needs to select the upper screen is the content including the location distance association intention.
  • the input method may obtain the “Sohu Network Building” and the second location by using a map interface according to a keyword “Sohu Network Building” in the content of the upper screen and a second position corresponding to when the upper screen content is on the screen.
  • One distance information is 850 meters and 10 minutes away.
  • the second position corresponding to the upper screen content on the screen may be the location of the user when the upper screen content is on the screen.
  • the map interface is 850 meters away from the "Sohu Network Building" and the second location, and the map interface determines that the "Sohu Network Building" is 10 minutes away from the second location, then the first distance Information can be 850 meters and 10 minutes away.
  • the first distance information is 850 meters and 10 minutes as the candidate for "I am from Sohu Network Building".
  • the candidate for "I have a place from Sohu.com” is 850 meters and 10 minutes.
  • the candidate display interface can be as shown in Figure 6.
  • the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen.
  • the association intention of the content on the screen can be determined, and the character type of the user may continue to be on the screen after the content of the screen has been determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input.
  • the possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility of the association candidate.
  • FIG. 7 is a candidate association device according to an embodiment of the present disclosure.
  • the device includes a first determining module 701, a second determining module 702, a first obtaining module 703, and a Lenovo module 704:
  • the first determining module 701 is configured to determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen;
  • the second determining module 702 is configured to determine a Lenovo intent for the content that has been on the screen;
  • the first obtaining module 703 is configured to acquire data corresponding to the association intention according to keywords in the uploaded content;
  • the association module 704 is configured to associate a candidate corresponding to the uploaded content according to the data.
  • the second determining module includes: a matching module and a first determining module:
  • the matching module is configured to match the content of the screen that has been on the screen with the intention determination condition
  • the first determining module is configured to determine that the uploaded content has the association intent corresponding to the intent determination condition, if the uploaded content satisfies the intent determination condition.
  • the intent judgment condition includes an intent keyword or an intent sentence pattern.
  • the association intention includes a association intent regarding the location distance.
  • the keyword includes a first location
  • the first acquiring module is further configured to determine the first location according to the first location and a second location corresponding to when the upper screen content is on the screen
  • the first distance information between the second positions, and the first distance information is used as the data corresponding to the association intention of the position distance.
  • the Lenovo module is further configured to use the first distance information as a candidate corresponding to the screened content.
  • the association is intended to include a association intention with respect to a location distance
  • the apparatus further includes: a second acquisition module, a third determination module, and a fourth determination module:
  • the second acquiring module is configured to acquire historical on-screen content including location information and distance information;
  • the third determining module is configured to determine the second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen;
  • the fourth determining module is configured to: if the second distance information and the distance information included in the history of the on-screen content meet the preset threshold, determine, according to the history, the content of the upper screen, The intent of the association's intention to judge the condition.
  • the fourth determining module includes: a removing module and a second determining module:
  • the removing module is configured to remove location information and distance information included in the historical screen content
  • the second determining module is configured to determine an intent keyword or an intended sentence according to the remaining characters in the history of the upper screen content, and use the intent keyword or the intention sentence as the target distance The intention of the association's intention to judge the condition.
  • the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen.
  • the association intention of the content on the screen can be determined, and the content of the user may continue to be on the screen after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input.
  • the possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility and accuracy of the association candidate.
  • FIG. 8 is a block diagram of an apparatus 800 for speech synthesis, according to an exemplary embodiment.
  • device 800 can be a robot, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 820 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 and the user that provides an output interface.
  • 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 the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 8G, or a combination thereof.
  • communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • 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.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 800 may 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 A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 804 comprising instructions executable by processor 820 of apparatus 800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a candidate association method, the method comprising: determining that the association to be associated The upper screen content, the content of the last screen includes the content of the last screen; determining the association intention for the content of the screen; and obtaining the correspondence corresponding to the association intention according to the keyword in the screen content Data; based on the data, a candidate corresponding to the already-online content is associated.
  • the server 900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 922 (eg, one or more processors) and memory 932, one or one
  • the storage medium 930 storing the application 942 or the data 944 (for example, one or one storage device in Shanghai).
  • the memory 932 and the storage medium 930 may be short-term storage or persistent storage.
  • the program stored on storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • central processor 922 can be configured to communicate with storage medium 930, executing a series of instruction operations in storage medium 930 on server 900.
  • Server 900 may also include one or more power supplies 924, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, one or more keyboards 954, and/or one or more operating systems 941.
  • one or more power supplies 924 for example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

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)
  • User Interface Of Digital Computer (AREA)
  • Machine Translation (AREA)

Abstract

Disclosed in embodiments of the present application are a candidate word prediction method and device. In the method, according to content most recently input on the screen, on-screen content requiring word prediction can be determined; since a word prediction intention can reflect, to a large extent, a user's actual input intention for the on-screen content, if the word prediction intention of the on-screen content can be determined, content that may be continuously input on the screen by the user after the on-screen content can be determined according to the word prediction intention. Therefore, when data corresponding to the word prediction intention is obtained according to a keyword in the on-screen content, and a candidate corresponding to the on-screen content is predicted according to the data, the candidate determined according to the data is more likely to meet the user's input intention. Thus, the input convenience for the user is improved. Moreover, the determined candidate does not need to be generated on the basis of the past input data of the user, and thus, the likelihood and accuracy of the predicted candidate are improved.

Description

一种候选项联想方法和装置Candidate association method and device
本申请要求在2017年11月16日提交中国专利局、申请号为201711139060.1、发明名称为“一种候选项联想方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, filed on Nov. 16, 2017, the application Serial No. in.
技术领域Technical field
本申请涉及输入法领域,特别是涉及一种候选项联想方法和装置。The present application relates to the field of input methods, and in particular to a candidate association method and apparatus.
背景技术Background technique
在使用输入法进行的输入过程中,输入法可以根据用户通过输入法已输入的内容、或者当前光标所在位置的上下文内容,通过联想的方式为用户提供可能与该内容或者该上下文内容相关联的联想候选项,节省用户的输入成本从而提高输入效率。例如,在用户上屏“搜狗”后,可以提供“输入法”、“搜索”等联想候选项。In the input process using the input method, the input method may provide the user with the content that may be associated with the content or the context content in a Lenovo manner according to the content that the user has input through the input method or the context content of the current cursor position. Lenovo candidates save user input costs and increase input efficiency. For example, after the user clicks on the "search dog", it can provide association candidates such as "input method" and "search".
传统的联想方法通常将历史数据作为联想候选项的确定依据,例如,若历史数据中包括:用户输入过的“搜狗输入法”,则在用户上屏“搜狗”后、向用户提供联想候选项“输入法”。换言之,针对上屏内容得到的联想候选项只能出自于历史数据,或者说只能基于历史数据生成。The traditional association method usually uses historical data as the basis for determining the candidate candidate. For example, if the historical data includes: the “sogou input method” input by the user, the user can provide the association candidate after the user “screens the dog”. "Input". In other words, the association candidate for the upper screen content can only be derived from historical data, or can only be generated based on historical data.
可见,传统的联想方法对联想候选项造成了局限,缩小了联想候选项的范围。It can be seen that the traditional association method has limited the candidate candidates and narrowed the scope of the Lenovo candidate.
发明内容Summary of the invention
为了解决上述技术问题,本申请提供了一种候选项联想方法和装置,提高了用户的输入便捷性,且确定出的候选项并不需要依据用户的历史输入数据产生,提高了联想候选项的可能。In order to solve the above technical problem, the present application provides a candidate association method and device, which improves the user's input convenience, and the determined candidate does not need to be generated according to the user's historical input data, thereby improving the association candidate. may.
本申请实施例公开了如下技术方案:The embodiment of the present application discloses the following technical solutions:
第一方面,本申请实施例提供了一种候选项联想方法,所述方法包括:In a first aspect, an embodiment of the present application provides a candidate association method, where the method includes:
确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen;
确定针对所述已上屏内容的联想意图;Determining a Lenovo intent for the content that has been on the screen;
根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;Acquiring data corresponding to the association intention according to keywords in the already-screened content;
根据所述数据联想出与所述已上屏内容对应的候选项。Based on the data, a candidate corresponding to the already-online content is associated.
第二方面,本申请实施例提供了一种候选项联想装置,所述装置包括第 一确定单元、第二确定单元、第一获取单元和联想单元:In a second aspect, an embodiment of the present application provides a candidate association device, where the device includes a first determining unit, a second determining unit, a first acquiring unit, and a Lenovo unit:
所述第一确定单元,用于确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;The first determining unit is configured to determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen;
所述第二确定单元,用于确定针对所述已上屏内容的联想意图;The second determining unit is configured to determine a association intention for the content that has been on the screen;
所述第一获取单元,用于根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;The first acquiring unit is configured to acquire data corresponding to the association intention according to a keyword in the uploaded content;
所述联想单元,用于根据所述数据联想出与所述已上屏内容对应的候选项。The association unit is configured to associate a candidate corresponding to the screened content according to the data.
第三方面,本申请实施例提供了一种用于候选项联想的处理设备,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In a third aspect, an embodiment of the present application provides a processing device for candidate association, including a memory, and one or more programs, where one or more programs are stored in a memory and configured to be Or the one or more processors executing the one or more programs include instructions for performing the following operations:
确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen;
确定针对所述已上屏内容的联想意图;Determining a Lenovo intent for the content that has been on the screen;
根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;Acquiring data corresponding to the association intention according to keywords in the already-screened content;
根据所述数据联想出与所述已上屏内容对应的候选项。Based on the data, a candidate corresponding to the already-online content is associated.
第四方面,本申请实施例提供了一种机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如第一方面中的候选项联想方法。In a fourth aspect, an embodiment of the present application provides a machine readable medium having stored thereon instructions that, when executed by one or more processors, cause a device to perform a candidate association method as in the first aspect.
由上述技术方案可以看出,根据最近一次上屏的内容,可以确定出待联想的已上屏内容,由于联想意图可以较大程度上体现出用户针对该已上屏内容的实际输入意图,若能确定该已上屏内容的联想意图,则可以根据该联想意图确定出用户在该已上屏内容后可能会继续上屏的内容。故当根据该已上屏内容中的关键词获取与该联想意图对应的数据,并根据该数据联想出与该已上屏内容对应的候选项时,由该数据确定出的候选项符合用户输入意图的可能性较大,提高了用户的输入便捷性,且确定出的候选项并不需要依据用户的历史输入数据产生,提高了联想候选项的可能和准确度。It can be seen from the above technical solution that, according to the content of the last screen, the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen. The association intention of the content on the screen can be determined, and the content of the user may continue to be on the screen after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input. The possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility and accuracy of the association candidate.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative labor for those skilled in the art.
图1为一种已上屏内容和候选项在移动终端设备上的展示界面;1 is a display interface of an on-screen content and a candidate on a mobile terminal device;
图2为本申请实施例提供的一种候选项联想方法的流程示意图;2 is a schematic flowchart of a candidate association method according to an embodiment of the present application;
图3a为本申请实施例提供的已上屏内容对应的候选项的展示界面;FIG. 3a is a display interface of a candidate corresponding to the upper screen content provided by the embodiment of the present application;
图3b为本申请实施例提供的已上屏内容对应的候选项的展示界面;FIG. 3b is a display interface of a candidate corresponding to the upper screen content provided by the embodiment of the present application;
图4为本申请实施例提供的一种意图判断条件的确定方法的流程示意图;4 is a schematic flowchart of a method for determining an intention determination condition according to an embodiment of the present application;
图5为本申请实施例提供的一种基于意图句式的候选项联想方法的流程示意图;FIG. 5 is a schematic flowchart diagram of a candidate association method based on an intention sentence pattern according to an embodiment of the present application;
图6为本申请实施例提供的已上屏内容对应的候选项展示界面;FIG. 6 is a candidate display interface corresponding to the content of the upper screen provided by the embodiment of the present application;
图7为本申请实施例提供的一种候选项联想装置的装置结构图;FIG. 7 is a structural diagram of a device of a candidate association device according to an embodiment of the present application;
图8为本申请实施例提供的一种用于候选项联想的装置的框图;FIG. 8 is a block diagram of an apparatus for candidate association according to an embodiment of the present application;
图9为本申请实施例提供的一种用于候选项联想的服务器的框图。FIG. 9 is a block diagram of a server for candidate association according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图,对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
在屏幕上显示已上屏内容后,用户往往希望输入法可以为用户联想出可能与该已上屏内容相关联的候选项,以便直接在候选项中选择欲上屏内容,提高用户的输入效率。After displaying the content on the screen, the user often hopes that the input method can associate the candidate with the candidate that may be associated with the screened content, so as to directly select the content to be screened in the candidate, thereby improving the input efficiency of the user. .
传统的联想方法通常只能以历史数据作为联想出哪些候选项的依据,并不能也不会确定已上屏内容的联想意图,换言之,传统的联想方法一般通过比对已上屏内容是否存在于历史数据中,若已上屏内容存在于历史数据中,才有可能从历史数据中得到与已上屏内容相对应的候选项。例如当历史数据中包括用户输入过的“搜狗输入法”时,才有可能在已上屏内容为“搜狗”时联想出“输入法”。对于用户未曾输入过的内容,输入法难以根据已上屏内容进行联想而给出候选项,用户只能通过输入法输入欲上屏内容。The traditional association method can only use historical data as the basis for deciding which candidates, and can not and will not determine the association intention of the content on the screen. In other words, the traditional association method generally compares whether the content already on the screen exists. In the historical data, if the content of the upper screen exists in the historical data, it is possible to obtain the candidate corresponding to the content of the upper screen from the historical data. For example, when the historical data includes the "sogou input method" input by the user, it is possible to associate the "input method" when the content of the upper screen is "sogou". For content that has not been input by the user, the input method is difficult to give a candidate based on the association of the content on the screen, and the user can only input the content to be screened by the input method.
作为一种示例,历史数据中包括用户输入过的“搜狗输入法”、“搜狗拼音”、“搜狗浏览器”和“搜狗搜索”,如果已上屏内容为“搜狗”,那么则会从历史数据中提取相应的候选项,具体地,可以参见图1,图1为已上屏内容和候选项在移动终端设备上的展示界面。当在上屏区域102显示“搜狗”时,其中“搜狗”作为已上屏内容101,采用传统的联想方法,可以根据历史数据在候选项显示区域103生成候选项104,其中,候选项104可以包括“输入法”、“拼音”、“浏览器”和“搜索”,候选项104必须全部出自于历史数据,不会出现历史数据中不存在的内容,例如,当历史数据中并不包括“搜狗地图”时,候选项中将不会包括“地图”。如果已上屏内容为“我这里离清华大学有”,由于历史数据中并不包括该内容,那么输入法难以根据已上屏内容进行联想 而给出候选项,用户只能通过输入法输入欲上屏内容。As an example, the historical data includes the "sogou input method", "sogou pinyin", "sogou browser" and "sogou search" that the user has input. If the content of the upper screen is "sogou", then it will be from history. The corresponding candidates are extracted from the data. Specifically, refer to FIG. 1. FIG. 1 is a display interface of the uploaded content and the candidate on the mobile terminal device. When the "search dog" is displayed in the upper screen area 102, wherein the "search dog" is the upper screen content 101, the candidate association 104 can be generated in the candidate display area 103 according to the historical data by using the conventional association method, wherein the candidate 104 can be Including "Input Method", "Pinyin", "Browser" and "Search", the candidate 104 must all come from historical data, and there will be no content that does not exist in the historical data, for example, when the historical data does not include " When you search for a dog map, the map will not be included in the candidate. If the content of the screen is "I am from Tsinghua University", since the content is not included in the historical data, it is difficult for the input method to give a candidate based on the association of the content on the screen. The user can only input the input method. Upper screen content.
针对联想候选项局限于历史数据的问题,本申请实施例提供了一种针对上述候选项联想情况的解决方式,以希望可以通过已上屏内容确定该已上屏内容的联想意图,从而确定出于该联想意图对应的候选项,可以在不依赖用户的历史数据的情况下得到候选项,可以提高用户的输入便捷性,且可以增加联想候选项的范围。For the problem that the association candidate is limited to the historical data, the embodiment of the present application provides a solution to the above-mentioned candidate association situation, so as to determine that the association intention of the already-on-screen content can be determined by the content of the upper screen, thereby determining In the candidate corresponding to the association intention, the candidate can be obtained without relying on the user's historical data, the user's input convenience can be improved, and the range of the association candidate can be increased.
以已上屏内容为用户输入的“我这里离清华大学有”的场景为例,本实施例的方法首先可以根据已上屏内容确定针对该已上屏内容的联想意图,得出已上屏内容“我这里离清华大学有”的联想意图可能为关于位置距离的联想意图,由此可以根据该联想意图确定出用户在输入了“我这里离清华大学有”后可能会继续上屏的字符类型可以为包括距离信息的字符。然后根据“我这里离清华大学有”中的关键词获取与该联想意图对应的数据,所述关键词可以是“清华大学”,从而根据该数据联想出与“我这里离清华大学有”对应的候选项,所述候选项可以表示“我”和“清华大学”位置之间的距离信息。Taking the scene of "I am here from Tsinghua University" input by the user on the screen as an example, the method of this embodiment can first determine the association intention of the content on the screen based on the content of the screen, and obtain the screen. The association intention of the content "I am here from Tsinghua University" may be the association intention of the location distance, and thus the character of the user may be determined according to the association's intention to enter the screen after "I am here from Tsinghua University". The type can be a character that includes distance information. Then, according to the keyword in "I am here from Tsinghua University", the data corresponding to the association intention is obtained. The keyword may be "Tsinghua University", and according to the data, it is associated with "I am from Tsinghua University". The candidate can represent the distance information between the "I" and "Tsinghua University" locations.
本申请实施例中所提到的输入法可以是一种为了将各种符号输入到如计算机、手机等电子设备而采用的编码方法,用户可以使用输入法便利的将用户需要的字符或者字符串输入电子设备。需要注意的是,本申请实施例中的输入法除了可以包括常见的中文输入法(比如拼音输入法、五笔输入法、注音输入法等)以外,也可以包括其他语种的输入法(比如日文平假名输入法、韩文输入法等),在此不对输入法以及输入法对应的语言种类做任何限定。The input method mentioned in the embodiment of the present application may be an encoding method adopted for inputting various symbols into an electronic device such as a computer or a mobile phone, and the user may conveniently use the input method to conveniently use a character or a string required by the user. Enter the electronic device. It should be noted that the input method in the embodiment of the present application may include other Chinese input methods (such as pinyin input method, five-stroke input method, phonetic input method, etc.), and may also include input methods in other languages (such as Japanese language). The kana input method, the Korean input method, etc.) do not limit the language of the input method and the input method.
在本申请实施例中,已上屏内容中可以包括最近一次上屏的内容。在已上屏内容中包括最近一次上屏的内容的情况下,所述已上屏内容可以是用户通过输入法输入并选择上屏的内容,还可以是通信对端发送过来而上屏的内容,还可以是输入光标所在位置的上下文内容。本申请实施例对于所述已上屏内容的格式不加以限制,所述已上屏内容的格式可以包括:文字、图片、语音等。In the embodiment of the present application, the content of the last screen may be included in the content already on the screen. In the case that the content of the last screen is included in the content of the screen, the content of the screen may be the content input by the user through the input method and the content of the screen, or the content of the screen sent by the communication peer. It can also be the context content of the location where the cursor is located. The format of the content on the screen is not limited in the embodiment of the present application, and the format of the content on the screen may include: text, picture, voice, and the like.
若已上屏内容是用户通过输入法输入并选择上屏的内容,已上屏内容可以包括最近一次通过输入法选择上屏的字符和最近一次通过输入法选择上屏的字符之前一系列连续的字符,所述连续可以是指字符之间不存在表示间断的标点、空格等符号。已上屏内容的确定将在后续进行详细介绍。If the content of the upper screen is input by the user through the input method and the content of the upper screen is selected, the content of the upper screen may include the last time the character of the upper screen is selected by the input method and the series of consecutive characters before the character of the upper screen is selected by the input method last time. A character, the continuation may mean that there are no symbols such as punctuation or spaces indicating discontinuity between characters. The determination of the content already on the screen will be described in detail later.
联想意图可以在一定程度上反映用户针对该已上屏内容的实际输入意图。根据联想意图可以体现出用户在输入了该已上屏内容后可能会继续上屏的内容属于什么类型。以已上屏内容为“我这里离清华大学有”为例,一般来说,在输入“我这里离清华大学有”之后,接下来需要输入的内容用于表示距离信息 的内容,即该已上屏内容具有计算距离的意图。因此,根据该已上屏内容可以确定联想意图为关于位置距离的联想意图。当然,所述联想意图也可以是关于地点等的联想意图。Lenovo's intent can reflect to some extent the user's actual input intent for the content on the screen. According to Lenovo's intention, it can reflect what type of content the user may continue to play after inputting the content on the screen. Take the content of the screen as "I am from Tsinghua University" as an example. Generally speaking, after inputting "I am from Tsinghua University", the content that needs to be input is used to indicate the content of the distance information, that is, the The upper screen content has an intent to calculate the distance. Therefore, based on the already-online content, it is possible to determine that the association intention is a association intention with respect to the position distance. Of course, the association intention may also be a association intention regarding a place or the like.
候选项可以是输入法根据联想意图确定的在已上屏内容后可能会继续上屏的内容,即欲上屏内容。所述欲上屏内容可以是字符串。比如,当已上屏内容为“我这里离清华大学有”,所述候选项可以为“500米”。由于本申请实施例对输入法的语言种类不做具体限定,那么对输入法生成的候选项对应的语言种类也不做具体限定。The candidate may be the content that the input method may continue to be on the screen after the content has been determined according to the association intention, that is, the content to be on the screen. The content to be on the screen may be a character string. For example, when the content of the screen is "I am from Tsinghua University," the candidate can be "500 meters." Since the language of the input method is not specifically limited in the embodiment of the present application, the language type corresponding to the candidate generated by the input method is not specifically limited.
下面结合附图,详细说明本申请实施例的各种非限制性实施方式。Various non-limiting embodiments of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
参见图2,图2示出了本申请实施例提供的一种候选项联想方法的流程示意图,该方法可以包括如下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a candidate association method according to an embodiment of the present application. The method may include the following steps:
S201、确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容。S201. Determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen.
由于屏幕上的内容可能有很多,屏幕上的内容可能全部都可以作为已上屏内容,也可能部分可以作为已上屏内容,为了合理的确定可以作为已上屏内容,所述已上屏内容中包括最近一次上屏的内容。Since there may be a lot of content on the screen, the content on the screen may all be used as the content already on the screen, or may be partially used as the content already on the screen. For the reasonable determination, it may be used as the content already on the screen. It includes the last time the screen was uploaded.
以已上屏内容为用户通过输入法输入并选择上屏的内容为例,用户可以通过输入法选择显示在屏幕上的字符串,所述字符串可以包括一个字符,也可以包括多个字符。当所述字符串包括一个字符时,所述已上屏内容即为显示在屏幕上的字符;当所述字符串包括多个字符时,且所述字符串中所有字符是连续的,即所述字符串都是文字,不包括标点等符号,那么,所述已上屏内容即为显示在屏幕上的字符串;当所述字符串包括多个字符时,且所述字符串中包括标点等符号,那么,所述已上屏内容即为包括最近一次通过输入法选择上屏的字符和最近一次通过输入法选择上屏的字符之前一系列连续的字符。For example, if the content of the screen has been input by the user through the input method and the content of the upper screen is selected, the user can select a character string displayed on the screen by using an input method, and the character string may include one character or multiple characters. When the character string includes one character, the screened content is a character displayed on the screen; when the character string includes a plurality of characters, and all the characters in the character string are continuous, that is, The character string is a character, and does not include a symbol such as a punctuation. Then, the screened content is a character string displayed on the screen; when the character string includes a plurality of characters, and the character string includes punctuation And the like, then, the on-screen content is a series of consecutive characters including the character that selected the upper screen by the input method last time and the character that selected the upper screen by the input method last time.
例如,已经通过输入法选择显示在屏幕上的字符串为“我这里离清华大学有”时,其中,“有”为最近一次通过输入法选择上屏的字符,由于“我这里离清华大学有”中字符是连续的,因此,可以将“我这里离清华大学有”作为已上屏内容,所述已上屏内容即为显示在屏幕上的字符串“我这里离清华大学有”,包括了“我这里离清华大学有”中的所有字符。For example, the input string has been selected to display the string displayed on the screen as "I am from Tsinghua University", where "Yes" is the last character selected by the input method on the screen, because "I am from Tsinghua University here. "The Chinese characters are continuous. Therefore, "I have a place from Tsinghua University" can be used as the content on the screen. The above-mentioned content on the screen is the string "I am here from Tsinghua University", including All the characters in "I am from Tsinghua University".
又如,已经通过输入法选择显示在屏幕上的所有字符为“今天天气很好,我正在去清华大学的路上,我这里离清华大学有”时,其中,“有”为最近一次通过输入法选择上屏的字符,由于“今天天气很好,我正在去清华大学的 路上,我这里离清华大学有”中字符很多,且在字符“好”和“我”之间存在一个逗号,在“上”和“我”之间存在一个逗号,在这种情况下,选择最近一次通过输入法选择上屏的字符“有”以及“有”之前直到出现逗号为止的所有连续字符作为已上屏内容,所述已上屏内容即为“我这里离清华大学有”,所述已上屏内容包括了“今天天气很好,我正在去清华大学的路上,我这里离清华大学有”中的部分字符。In another example, all the characters displayed on the screen have been selected by the input method as "the weather is very good today, I am on the way to Tsinghua University, I am from Tsinghua University", among them, "Yes" is the most recent input method. Choosing the characters on the screen, because "the weather is very good today, I am on the way to Tsinghua University, I have a lot of characters from Tsinghua University here, and there is a comma between the characters "good" and "I", in " There is a comma between "Up" and "I". In this case, select the last character that has been selected by the input method last time to select the upper screen characters "Yes" and "Yes" until the comma appears. The content of the above screen is "I am from Tsinghua University", and the content on the screen includes "The weather is very good today, I am on the way to Tsinghua University, I am from Tsinghua University" character.
在本申请实施例中,屏幕可以认为是移动终端等电子设备的显示屏,是字符串等内容显示的一个载体,输入法面板也可以显示于屏幕上。In the embodiment of the present application, the screen can be regarded as a display screen of an electronic device such as a mobile terminal, and is a carrier for content display such as a character string, and the input method panel can also be displayed on the screen.
S202、确定针对所述已上屏内容的联想意图。S202. Determine a association intention for the content that has been on the screen.
根据已上屏内容,可以确定出针对该已上屏内容的联想意图。所述联想意图可以反映用户在输入已上屏内容后,接下来可能会输入的内容,即欲上屏内容。Based on the content of the screen already on, the association intention for the content of the screen can be determined. The association intention may reflect the content that the user may input after inputting the content on the screen, that is, the content to be on the screen.
联想意图可以为关于位置距离的联想意图。例如,已上屏内容为“我这里离清华大学有”,一般情况下,该已上屏内容后,接下来可能输入的内容为表示“清华大学”和已上屏内容上屏时“我”所在位置之间距离信息,那么,根据该已上屏内容确定的联想意图为关于位置距离的联想意图。Lenovo's intent can be a association intent with respect to positional distance. For example, the content on the screen is “I am from Tsinghua University.” In general, after the content has been uploaded, the next possible input is “Tsinghua University” and “I” when the screen is on the screen. The distance information between the locations, then the association intention determined according to the already-screened content is the associative intent regarding the location distance.
联想意图可以为关于地点的联想意图。例如,已上屏内容为“我在”,一般情况下,该已上屏内容后,接下来可能输入的内容为表示已上屏内容上屏时“我”所在地点,那么,根据该已上屏内容确定的联想意图为关于地点的联想意图。Lenovo's intent can be a Lenovo intent about the place. For example, the content of the screen has been "I am". In general, after the content has been uploaded, the next possible input content is the location of the "I" when the screen content has been screened, then, according to the above The association intention determined by the screen content is the association intention of the place.
在确定针对所述已上屏内容的联想意图时,一种实现方式是根据意图判断条件确定联想意图,当已上屏内容满足不同的意图判断条件时,所述已上屏内容具有不同的联想意图。具体可以为:将所述已上屏内容与意图判断条件进行匹配,若所述已上屏内容满足所述意图判断条件,则可以确定所述已上屏内容具有与所述意图判断条件对应的联想意图。其中,意图判断条件,以及意图判断条件和联想意图间的对应关系可以是预先确定好的,不同的意图判断条件可以对应不同的联想意图,同一个联想意图可以对应多个意图判断条件。当联想意图为关于位置距离的联想意图时,所述意图判断条件确定方法将在后续进行详细介绍。In determining the association intention for the already-on-screen content, one implementation is to determine the association intention according to the intention determination condition, and the on-screen content has different associations when the upper screen content satisfies different intent determination conditions. intention. Specifically, the content of the upper screen is matched with the intention determination condition. If the content of the upper screen meets the intention determination condition, it may be determined that the content of the upper screen has a corresponding content corresponding to the intention determination condition. Lenovo's intentions. The intention judgment condition, and the correspondence relationship between the intention judgment condition and the association intention may be predetermined, different intention judgment conditions may correspond to different association intentions, and the same association intention may correspond to a plurality of intention judgment conditions. When the association is intended to be a association intention with respect to the positional distance, the intention determination condition determination method will be described in detail later.
需要说明的是,所述意图判断条件可以包括意图关键词或意图句式。It should be noted that the intent determination condition may include an intent keyword or an intent sentence pattern.
其中,所述意图关键词可以为能够反映用户接下来的输入意图的文字。当根据意图关键词确定联想意图时,可以将已上屏内容与意图关键词进行匹配,例如可以查看已上屏内容中是否包括该意图关键词或与该意图关键词类似的文字,若已上屏内容中包括该意图关键词或与该意图关键词类似的文字, 则可以确定所述已上屏内容具有与所述意图关键词对应的联想意图。The intent keyword may be a text that reflects the user's next input intention. When the association intention is determined according to the intent keyword, the on-screen content may be matched with the intent keyword, for example, whether the in-the-top keyword or the text similar to the intent keyword is included in the upper screen content, if The screen content includes the intent keyword or a text similar to the intent keyword, and it may be determined that the uploaded content has a association intent corresponding to the intent keyword.
例如,意图关键词包括“离”和“有”,该意图关键词反映用户接下来的输入意图是输入表示距离信息的文字,已上屏内容为“我这里离清华大学有”,将已上屏内容与意图关键词进行匹配,由于已上屏内容中包括意图关键词“离”和“有”,因此,该已上屏内容满足意图关键词,则可以确定所述已上屏内容满足该意图判断条件,所述已上屏内容具有与该意图关键词对应的联想意图,即用户接下来输入意图为输入表示距离信息的文字。For example, the intent keyword includes "off" and "yes", and the intent keyword reflects that the user's next input intention is to input the text indicating the distance information, and the content of the screen has been "I am from Tsinghua University" and will be on the screen. The screen content is matched with the intent keyword. Since the on-screen content includes the intent keywords "off" and "yes", the on-screen content satisfies the intent keyword, and then the screened content can be determined to satisfy the The intention determination condition that the on-screen content has a association intention corresponding to the intent keyword, that is, the user next inputs a text intended to input distance information.
而所述意图句式可以为一个句子按照一定的模式来组织从而反映用户的输入意图,这个模式称为意图句式。例如,“我这里离......有”为一个意图句式,其中“......”可以指代某个地点,该意图句式采用“我这里离......有”的模式来反映用户的输入意图是输入“我”的位置与某个地点之间的距离信息。再如“我在......”为一个意图句式,其中“......”可以指代某个地点,该意图句式采用“我在......”的模式来反映用户的输入意图是输入“我”所在的地点。当根据意图句式确定联想意图时,可以将已上屏内容与意图句式进行匹配,例如可以查看已上屏内容的句式是否与该意图句式一致或相似,若一致或相似,则可以确定所述已上屏内容满足所述意图句式,具有与所述意图句式对应的联想意图。The intent sentence can be organized into a sentence according to a certain pattern to reflect the user's input intention. This mode is called an intent sentence. For example, "I am here from ..." is an intent sentence, where "..." can refer to a place, and the intention sentence adopts "I am here..... There is a "model" to reflect the user's input intent is to enter the distance information between the location of "I" and a certain location. Another example is "I am..." is an intent sentence, where "..." can refer to a place, and the intention sentence adopts "I am..." The pattern reflects the user's input intent is to enter the location where "I" is located. When the association intention is determined according to the intent sentence pattern, the content of the screen can be matched with the intention sentence pattern, for example, whether the sentence pattern of the screen content is consistent or similar to the intention sentence pattern, if they are consistent or similar, Determining that the on-screen content satisfies the intent sentence pattern, having a association intent corresponding to the intent sentence pattern.
例如,意图句式包括“我这里离......有”,已上屏内容为“我这里离清华大学有”,将该已上屏内容与该意图句式进行匹配,由于已上屏内容的句式也是“我这里离......有”,与意图句式一致,则所述已上屏内容满足所述意图句式,具有与所述意图句式对应的联想意图。For example, the intent sentence includes "I am here from ...", and the content on the screen is "I am from Tsinghua University", and the content of the screen has been matched with the intent sentence. The sentence form of the screen content is also "I am here from ...", consistent with the intent sentence pattern, then the already-on-screen content satisfies the intent sentence pattern, and has a Lenovo intent corresponding to the intent sentence pattern. .
S203、根据所述已上屏内容中的关键词获取与所述联想意图对应的数据。S203. Acquire data corresponding to the association intention according to keywords in the already-screened content.
所述关键词可以为在已上屏内容中表示用户所关注的对象的文字。以已上屏内容为“我这里离清华大学有”为例,其中,用户所关注的对象为“清华大学”,那么,“清华大学”可以为已上屏内容“我这里离清华大学有”的关键词。The keyword may be a text indicating an object of interest to the user in the already-screened content. Take the content of the screen as "I am here from Tsinghua University". The user's concern is "Tsinghua University". Then, "Tsinghua University" can be the content of the screen. "I have a place from Tsinghua University." Keywords.
当所述联想意图为关于位置距离的联想意图时,所述关键词包括了第一位置,第一位置可以标识所述关键词所指代位置的位置信息,例如当关键词为清华大学时,那么该关键词所包括的第一位置可以为清华大学的位置信息,如GPS(全球定位系统,Global Positioning System)坐标。这样,可以根据第一位置和已上屏内容上屏时对应的第二位置确定所述第一位置和所述第二位置间的第一距离信息,并将所述第一距离信息作为所述与所述关于位置距离的联想意图对应的数据。其中,所述第二位置可以为用户在通过字符输入设备将已上屏内容上屏时用户所在的位置。When the association is intended to be a association intention with respect to a position distance, the keyword includes a first location, and the first location may identify location information of a location indicated by the keyword, for example, when the keyword is Tsinghua University, Then, the first position included in the keyword may be location information of Tsinghua University, such as GPS (Global Positioning System) coordinates. In this way, the first distance information between the first position and the second position may be determined according to the first position and the second position corresponding to when the upper screen content is on the screen, and the first distance information is used as the Data corresponding to the associative intent of the positional distance. The second location may be a location where the user is located when the user has put the upper screen content on the screen through the character input device.
需要说明的是,在确定关于位置距离的联想意图对应的数据时,可以依据第三方数据接口计算得到第一位置和第二位置间的第一距离信息,所述第三方数据接口例如可以是地图接口。具体地,已上屏内容上屏时,可以利用GPS得到已上屏内容上屏时用户所在的位置,即已上屏内容上屏时对应的第二位置。当输入法确定已上屏内容的联想意图为关于位置距离的联想意图时,输入法可以确定根据已上屏内容中的关键词确定出标识该关键词所指代位置的第一位置,并根据第一位置和已上屏内容上屏时对应的第二位置,从地图接口中获取所述第一位置和所述第二位置间的第一距离信息,作为与所述关于位置距离的联想意图对应的数据。It should be noted that, when determining data corresponding to the association intent of the location distance, the first distance information between the first location and the second location may be calculated according to the third-party data interface, where the third-party data interface may be, for example, a map. interface. Specifically, when the upper screen content is on the screen, the position of the user when the upper screen content is on the screen can be obtained by using the GPS, that is, the second position corresponding to the upper screen content when the screen is on the screen. When the input method determines that the association intention of the content of the upper screen is a association intention with respect to the position distance, the input method may determine that the first position identifying the position indicated by the keyword is determined according to the keyword in the content of the upper screen, and according to The first location and the second location corresponding to when the upper screen content is on the screen, the first distance information between the first location and the second location is obtained from the map interface as a association intention with the location distance Corresponding data.
以已上屏内容为“我这里离清华大学有”为例,已上屏内容上屏时,GPS模块可以将得到已上屏内容上屏时用户所在的位置作为所述第二位置。输入法若确定已上屏内容的联想意图为关于位置距离的联想意图,输入法可以从“我这里离清华大学有”中确定“清华大学”为表示第一位置的关键词,并自动的根据“清华大学”和已上屏内容上屏时用户所在的位置,从地图接口中获取“清华大学”和已上屏内容上屏时用户所在的位置间的第一距离信息,作为与所述关于位置距离的联想意图对应的数据。Taking the content of the screen as "I am from Tsinghua University" as an example, when the upper screen content is on the screen, the GPS module can obtain the position where the user is located when the upper screen content is on the screen as the second position. If the input method determines that the association intention of the content on the screen is the association intention of the position distance, the input method can determine "Tsinghua University" as the keyword indicating the first position from "I am from Tsinghua University", and automatically based on "Tsinghua University" and the location where the user has been on the screen when the screen is on the screen, and obtain the first distance information between the location of the user and the location where the user has been on the screen when the screen content is on the screen interface. The data corresponding to the association intent of the position distance.
其中,所述第一距离信息可以用距离形式表示,例如“500米”;也可以用时间形式表示,例如“5分钟的路程”。The first distance information may be expressed in the form of a distance, for example, “500 meters”; or may be expressed in a time form, for example, “a distance of 5 minutes”.
S204、根据所述数据联想出与所述已上屏内容对应的候选项。S204. Associate a candidate corresponding to the uploaded content according to the data.
在本申请实施例中,可以直接将所述数据作为与已上屏内容对应的候选项。若第一距离信息作为与所述关于位置距离的联想意图对应的数据,则输入法可以将所述第一距离信息作为与所述已上屏内容对应的候选项。也可以将所述数据加工后得出对应已上屏内容的候选项。In the embodiment of the present application, the data may be directly used as a candidate corresponding to the content already on the screen. If the first distance information is data corresponding to the association intention with respect to the position distance, the input method may use the first distance information as a candidate corresponding to the already-screened content. It is also possible to process the data to obtain candidates corresponding to the content of the upper screen.
继续以前述已上屏内容为“我这里离清华大学有”,联想意图为关于位置距离的联想意图为例,输入法获取所“清华大学”和已上屏内容上屏时用户所在的位置间的第一距离信息距离为500米,则“500米”可以作为所述已上屏内容对应的候选项。Continue to use the above-mentioned content on the screen as "I am from Tsinghua University". Lenovo intends to use the association intention of the location distance as an example. The input method obtains the position between the user of Tsinghua University and the user who has already screened the screen. The distance of the first distance information is 500 meters, and "500 meters" can be used as a candidate corresponding to the content already on the screen.
其中,所述第一距离信息除了使用例如“500米”的距离形式表示,还可以使用时间形式表示,例如“5分钟的路程”,那么,“5分钟的路程”可以作为所述已上屏内容对应的候选项。当然也可以使用“500米”和“5分钟的路程”同时作为所述已上屏内容对应的候选项,以供用户选择上屏。图3a,示出了本实施例中已上屏内容对应的候选项的展示界面。Wherein, the first distance information is represented by a distance form such as “500 meters”, and may also be expressed in a time form, for example “5 minutes distance”, then “5 minutes distance” may be used as the above-mentioned screen The candidate corresponding to the content. Of course, it is also possible to use "500 meters" and "5 minutes of distance" as candidates for the above-mentioned upper screen content, so that the user can select the upper screen. FIG. 3a shows a display interface of candidates corresponding to the content of the upper screen in the embodiment.
在图3a中,“我这里离清华大学有”为已上屏内容301,对应于图1中的101,“500米”和“5分钟的路程”为候选项302,对应于图1中的104。In Figure 3a, "I am from Tsinghua University" is the on-screen content 301, corresponding to 101 in Figure 1, "500 meters" and "5 minutes of distance" are candidates 302, corresponding to Figure 1 104.
由上述技术方案可以看出,根据最近一次上屏的内容,,可以确定出待联想的已上屏内容,由于联想意图可以较大程度上体现出用户针对该已上屏内容的实际输入意图,若能确定该已上屏内容的联想意图,则可以根据该联想意图确定出用户在该已上屏内容后可能会继续上屏的内容。故当根据该已上屏内容中的关键词获取与该联想意图对应的数据,并根据该数据联想出与该已上屏内容对应的候选项时,由该数据确定出的候选项符合用户输入意图的可能性较大,提高了用户的输入便捷性,且确定出的候选项并不需要依据用户的历史输入数据产生,提高了联想候选项的可能。It can be seen from the above technical solution that, according to the content of the last screen, the on-screen content to be associated can be determined, and the Lenovo's intention can largely reflect the user's actual input intention for the already-screened content. If the association intention of the content on the screen is determined, the content of the user may continue to be uploaded after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input. The possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility of the association candidate.
可以理解的是,在输入法展示候选项时,所述候选项除了包括S204获得的根据所述数据联想出与所述已上屏内容对应的候选项之外,还可以包括通过传统方法获得的其他候选项,可选地,可以将S204获得的根据所述数据联想出与所述已上屏内容对应的候选项作为输入法展示的候选项中的优选候选项,展示在其他候选项之前。It can be understood that, when the input method displays the candidate, the candidate may include, according to the data obtained by S204, the candidate corresponding to the uploaded content according to the data, and may also include the traditional method. Alternatively, the candidate candidates obtained by S204 associating the candidate corresponding to the uploaded content according to the data as the input candidate may be displayed before other candidates.
也就是说,图3a中的候选项302中除了包括“500米”和“5分钟的路程”两个候选项外,还可以包括通过传统方法获得的其他候选项,所述其他候选项,例如根据历史已上屏内容生成的候选项。例如历史已上屏内容为“我这里离清华大学有很远的路程”,那么,历史已上屏内容为“我这里离清华大学有很远的路程”可以生成候选项“很远的路程”,则候选项的展示界面如图3b所示。That is to say, in addition to the two candidates including "500 meters" and "5 minutes of distance", the candidate 302 in FIG. 3a may include other candidates obtained by a conventional method, such as other candidates, for example, A candidate generated based on the history of the previous screen content. For example, the history has been on the screen as "I am far away from Tsinghua University", then the history has been on the screen as "I am far away from Tsinghua University" can generate candidates "very far away" , the candidate display interface is shown in Figure 3b.
在图3b中,“我这里离清华大学有”为已上屏内容301,对应于图1中的101,“500米”、“5分钟的路程”和“很远的路程”为候选项302,对应于图1中的104。其中,候选项“500米”和“5分钟的路程”为根据本实施例的方法生成的,候选项“很远的路程”为依据传统的方法生成的。In Figure 3b, "I am from Tsinghua University" is the on-screen content 301, corresponding to 101 in Figure 1, "500 meters", "5 minutes away" and "very far away" as candidates 302 , corresponding to 104 in FIG. Among them, the candidates "500 meters" and "5 minutes of distance" are generated according to the method of the present embodiment, and the candidate "far away distance" is generated according to the conventional method.
由于输入法可以根据意图判断条件确定联想意图,当已上屏内容满足不同的意图判断条件时,所述已上屏内容可以具有不同的联想意图。因此,输入法可以首先确定意图判断条件,以便在确定针对所述已上屏内容的联想意图时,可以将已上屏内容与意图判断条件进行匹配,从而根据匹配情况确定针对已上屏内容的联想意图。Since the input method can determine the association intention according to the intention judgment condition, the on-screen content may have different associative intentions when the upper screen content satisfies different intent determination conditions. Therefore, the input method may first determine the intention determination condition, so that when the association intention for the already-screened content is determined, the already-screened content may be matched with the intention determination condition, thereby determining the content for the already-on-screen content according to the matching situation. Lenovo's intentions.
下面将结合附图,在联想意图为关于位置距离的联想意图的情况下,对意图判断条件的确定方式进行详细介绍。The manner in which the intent determination condition is determined will be described in detail below with reference to the accompanying drawings in the case where Lenovo intends to associate the intention with respect to the positional distance.
参见图4,图4示出了一种意图判断条件的确定方法的流程示意图,所述方法包括:Referring to FIG. 4, FIG. 4 is a schematic flowchart diagram of a method for determining an intent determination condition, where the method includes:
S401、获取包括了位置信息和距离信息的历史已上屏内容。S401. Acquire a history of the on-screen content including the location information and the distance information.
在本申请实施例中,确定意图判断条件时,可以依据用户的输入数据,所述输入数据可以包括用户曾经通过输入法选择上屏的已上屏内容,即历史已上屏内容。由于本申请实施例主要是确定关于位置距离的联想意图,故历史已上屏内容中需要包含与位置距离相关的信息,例如位置信息和距离信息,其中,位置信息可以为指代了明确位置的字符内容,例如“清华大学”、“搜狗总部”等。而距离信息可以为表示距离的字符内容,例如“500m”、“10分钟路程”等。In the embodiment of the present application, when determining the intent determination condition, the input data may include, according to the input data of the user, the user has selected the upper screen content of the upper screen through the input method, that is, the history has been on the screen. Since the embodiment of the present application mainly determines the association intention with respect to the position distance, the history has already included information related to the position distance, such as location information and distance information, wherein the location information may refer to a clear location. Character content, such as "Tsinghua University", "Sogou headquarters" and so on. The distance information may be a character content indicating a distance, such as "500m", "10 minutes away", and the like.
S401中获取的历史已上屏内容可以为一个或多个,其中每个历史已上屏内容可能包括了至少一种信息,所述至少一种信息中的每一种信息可以是位置信息、距离信息、时间信息、天气信息等等。由于,本实施例中的联想意图为关于位置距离的联想意图,因此,为了得到可以对该联想意图进行确定的意图判断条件,可以从历史已上屏内容中获取关于位置距离的历史已上屏内容,即获取的历史已上屏内容可以为包括了位置信息和距离信息的历史已上屏内容。The history of the on-screen content acquired in S401 may be one or more, wherein each history-on-screen content may include at least one type of information, and each of the at least one type of information may be location information, distance Information, time information, weather information, and more. Since the association in the present embodiment is intended to be a association intention with respect to the positional distance, in order to obtain an intention determination condition that can determine the association intention, the history regarding the positional distance can be obtained from the history of the upper screen content. The content, that is, the history of the acquired screen content may be the history of the screen content including the location information and the distance information.
例如,历史已上屏内容包括:“我这里离清华大学有500米”、“我这里离北京大学有5分钟的路程”、“清华大学的教学楼高度为50米”、“现在是北京时间5点”,从上述历史已上屏内容选择出包括了位置信息和距离信息的历史已上屏内容,为:“我这里距离清华大学有500米”、“我这里距离北京大学有5分钟的路程”和“清华大学的教学楼高度为50米”。For example, history has been screened including: "I am 500 meters away from Tsinghua University", "I am 5 minutes away from Peking University", "Tsinghua University's teaching building is 50 meters high", "now Beijing time 5 o'clock, from the above history, the content of the screen has been selected to include the location information and distance information. The history of the screen has been: "I am 500 meters away from Tsinghua University", "I am 5 minutes away from Peking University." “Tour distance” and “Tsinghua University’s teaching building is 50 meters high”.
通过S401可以获得包括了位置信息和距离信息的历史已上屏内容,但是,可能存在一种情况:历史已上屏内容中虽然包括了位置信息和距离信息,但是该历史已上屏内容与关于位置距离的联想意图可能并不相关,在这种情况下,可以将与关于位置距离的联想意图并不相关的历史已上屏内容剔除,以得到关于位置距离的联想意图的意图判断条件,从而提高关于位置距离的联想意图的意图判断条件的准确性。其剔除方法可以参照S402-S403。The history-over screen content including the location information and the distance information may be obtained through S401, but there may be a case where the history has been on the screen content although the location information and the distance information are included, but the history has been on the screen content and about The associative intent of the positional distance may not be relevant, in which case the historically screened content that is not related to the associative intent of the positional distance may be eliminated to obtain an intent judgment condition regarding the associative intention of the positional distance, thereby Improve the accuracy of the intent to judge the condition of the association intention of the position distance. For the culling method, refer to S402-S403.
例如,包括了位置信息和距离信息的历史已上屏内容为“清华大学的教学楼高度为50米”,“清华大学的教学楼高度为50米”中虽然包括了位置信息“清华大学”、“教学楼”和距离信息“50米”,但是“清华大学的教学楼高度为50米”只是体现一个建筑物的高度,并没有体现出关于位置距离的联想意图,即历史已上屏内容“清华大学的教学楼高度为50米”与关于位置距离的联想意图并不相关,并不能用来确定关于位置距离的联想意图的意图判断条件,因此,需要将其从S401中获得包括了位置信息和距离信息的历史已上屏内容中剔除。For example, the history of the location information and the distance information has been on the screen. The height of the teaching building of Tsinghua University is 50 meters. The height of the teaching building of Tsinghua University is 50 meters, although the location information "Tsinghua University" is included. "Teaching Building" and distance information "50 meters", but "Tsinghua University's teaching building height is 50 meters" just reflects the height of a building, and does not reflect the Lenovo's intention of the distance of location, that is, the history has been on the screen " The height of the teaching building of Tsinghua University is 50 meters. It is not related to the association intention of the distance of the position. It cannot be used to determine the intent judgment condition of the association intention of the position distance. Therefore, it needs to be obtained from S401 and includes the position information. And the history of distance information has been removed from the screen content.
S402、根据所述历史已上屏内容包括的位置信息和所述历史已上屏内容 上屏时对应的位置信息确定第二距离信息。S402. Determine second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen.
可以理解的是,联想意图为关于位置距离的联想意图时,联想意图对应的数据可以根据第一位置和已上屏内容上屏时对应的第二位置进行确定的,这样,若包括了位置信息和距离信息的历史已上屏内容与待联想的已上屏内容联想意图相关,相应的,包括了位置信息和距离信息的历史已上屏内容中出现的距离信息也可以根据历史已上屏内容包括的位置信息和历史已上屏内容上屏时对应的位置信息进行确定。也就是说,若根据所述历史已上屏内容包括的位置信息和所述历史已上屏内容上屏时对应的位置信息确定第二距离信息与所述历史已上屏内容包括的距离信息相同或者相近,那么,可以认为所述历史已上屏内容与待联想的已上屏内容联想意图相关,所述历史已上屏内容可以作为确定关于位置距离的联想意图的意图判断条件的依据。It can be understood that when the association is intended to be a association intention with respect to the position distance, the data corresponding to the association intention may be determined according to the first position and the second position corresponding to when the upper screen content is on the screen, so that the location information is included. And the history of the distance information has been related to the association intention of the on-screen content to be associated with the association, and correspondingly, the distance information including the position information and the distance information has been displayed in the upper screen content, and the content may be on the screen according to the history. The included location information and the location information corresponding to the history when the upper screen content is on the screen are determined. In other words, if the location information included in the upper screen content of the history and the location information corresponding to the screen when the history has been on the screen is determined, the second distance information is the same as the distance information included in the historical screen content. Or similar, then, it can be considered that the history of the on-screen content is related to the associative intention of the on-screen content to be associated, and the history of the on-screen content can be used as the basis for determining the intent judgment condition regarding the association intention of the position distance.
所述第二距离信息可以是距离形式,例如“500米”,也可以是时间形式,例如“5分钟的路程”。The second distance information may be in the form of a distance, such as "500 meters", or may be in the form of time, such as "5 minutes of travel."
S403、若所述第二距离信息与所述历史已上屏内容所包括的距离信息满足预设阈值,根据所述历史已上屏内容确定出针对所述关于位置距离的联想意图的意图判断条件。S403. If the second distance information and the distance information included in the history of the on-screen content meet the preset threshold, determine an intent determination condition for the association intention of the position distance according to the history of the upper screen content. .
在本实施例中为了确定第二距离信息与所述历史已上屏内容包括的距离信息是否相同或者相近,可以通过预设阈值来实现。其中,所述预设阈值可以是人为设定的。In this embodiment, in order to determine whether the second distance information and the distance information included in the history of the upper screen content are the same or similar, the threshold value may be implemented by using a preset threshold. The preset threshold may be manually set.
若所述第二距离信息与所述历史已上屏内容所包括的距离信息满足预设阈值,可以认为第二距离信息与所述历史已上屏内容所包括的距离信息比较接近,根据所述历史已上屏内容可以确定出针对所述关于位置距离的联想意图的意图判断条件。其中,满足预设阈值例如可以是第二距离信息与所述历史已上屏内容所包括的距离信息相差10%以内。若所述第二距离信息与所述历史已上屏内容所包括的距离信息不满足预设阈值,可以认为第二距离信息与所述历史已上屏内容所包括的距离信息相差比较大,根据所述历史已上屏内容无法确定出针对所述关于位置距离的联想意图的意图判断条件,可以将该历史已上屏内容从S401所获取的历史已上屏内容中剔除。If the second distance information and the distance information included in the history of the upper screen content meet the preset threshold, the second distance information may be considered to be relatively close to the distance information included in the historical screen content. The history-over-screen content can determine an intent judgment condition for the association intention regarding the position distance. The satisfying the preset threshold may be, for example, that the second distance information is within 10% of the distance information included in the historical screen content. If the second distance information and the distance information included in the historical screen content do not satisfy the preset threshold, the second distance information may be considered to be different from the distance information included in the historical screen content. The history-over-screen content cannot determine the intent determination condition for the association intention of the location distance, and the history-over-screen content may be excluded from the history-over-screen content acquired by S401.
例如,该历史已上屏内容为“清华大学的教学楼高度为50米”,预设阈值为10%,其中,位置信息为“清华大学”,距离信息为“50米”。根据位置信息“清华大学”和“清华大学的教学楼高度为50米”上屏时对应的位置信息确定第二距离信息,该第二距离信息为500米,此时,第二距离信息“500米”与距离信息“50米”相差超出10%,可以认为第二距离信息与所述历史已上屏内容所包括的距离信息相差比较大,根据所述历史已上屏内容无法确 定出针对所述关于位置距离的联想意图的意图判断条件,可以将该历史已上屏内容从包括了位置信息和距离信息的历史已上屏内容中剔除。For example, the history has been on the screen as “the height of the teaching building of Tsinghua University is 50 meters”, and the preset threshold is 10%. The location information is “Tsinghua University” and the distance information is “50 meters”. The second distance information is determined according to the position information corresponding to the location information "Tsinghua University" and "the height of the teaching building of Tsinghua University is 50 meters", and the second distance information is 500 meters. At this time, the second distance information "500" "M" is different from the distance information "50 meters" by more than 10%. It can be considered that the second distance information is different from the distance information included in the history of the upper screen content, and the content of the screen cannot be determined according to the history. The intent determination condition regarding the association intention of the position distance may be removed from the historical on-screen content including the position information and the distance information.
再如,该历史已上屏内容为“我这里离清华大学有500米”,预设阈值为10%,其中,位置信息为“清华大学”,距离信息为“500米”。根据位置信息“清华大学”和“我这里离清华大学有500米”上屏时对应的位置信息确定第二距离信息,该第二距离信息为500米,此时,第二距离信息“500米”与距离信息“500米”相同,即相差在10%以内,可以认为根据所述历史已上屏内容可以确定出针对所述关于位置距离的联想意图的意图判断条件。For another example, the history has been screened as “I am 500 meters away from Tsinghua University” and the default threshold is 10%. The location information is “Tsinghua University” and the distance information is “500 meters”. The second distance information is determined according to the location information corresponding to the location information "Tsinghua University" and "I am 500 meters away from Tsinghua University", and the second distance information is 500 meters. At this time, the second distance information is "500 meters. The same as the distance information "500 meters", that is, within 10% of the difference, it can be considered that the intention determination condition for the associative intention regarding the position distance can be determined based on the history of the upper screen content.
在本实施例中,从包括了位置信息和距离信息的历史已上屏内容中判定出与关于位置距离的联想意图相关的历史已上屏内容后,可以对所述历史已上屏内容进行处理,得到关于位置距离的联想意图的意图判断条件。In this embodiment, after the historical on-screen content related to the association intention regarding the position distance is determined from the history-over-screen content including the position information and the distance information, the history-on-screen content may be processed. , to obtain an intent judgment condition regarding the association intention of the position distance.
因此,在得到所述历史已上屏内容之后,可以除去所述历史已上屏内容中包括的位置信息和距离信息,然后根据所述历史已上屏内容中剩余的字符确定出意图关键词或意图句式,并将所述意图关键词或意图句式作为针对所述关于位置距离的联想意图的意图判断条件,用于确定针对所述已上屏内容的联想意图。Therefore, after the history-on-screen content is obtained, the location information and the distance information included in the history-on-screen content may be removed, and then the intent keyword or the identifier may be determined according to the remaining characters in the history-upper screen content. An intent sentence pattern, and the intent keyword or the intent sentence sentence is used as an intent judgment condition for the associative intention regarding the position distance, for determining a association intention for the already-screened content.
需要说明的是,除去所述历史已上屏内容中包括的位置信息和距离信息后,意图关键词可以包括剩余的字符中的部分字符。例如,所述历史已上屏内容为“我这里离清华大学有500米”,其中,位置信息为“清华大学”,距离信息为“500米”。除去所述历史已上屏内容中包括的位置信息和距离信息后,得到剩余的字符“我这里离有”,其中“离”和“有”可以作为意图关键词,用于确定所述已上屏内容的联想意图。It should be noted that, after the location information and the distance information included in the history of the upper screen content are removed, the intent keyword may include some of the remaining characters. For example, the history has been screened as "I am 500 meters away from Tsinghua University", in which the location information is "Tsinghua University" and the distance information is "500 meters". After removing the location information and the distance information included in the history of the upper screen content, the remaining characters "I am away from here" are obtained, wherein "off" and "yes" can be used as intent keywords for determining that the above is on The association intent of the screen content.
需要说明的是,为了确定出意图句式,其中,除去所述历史已上屏内容中包括的位置信息可以是将位置信息替换成通用符号,从而得到意图句式,所述通用符号例如可以是“###”、“......”等符号。It should be noted that, in order to determine the intent sentence pattern, the location information included in the content of the upper screen may be replaced by replacing the location information with a common symbol, thereby obtaining an intended sentence pattern, for example, the general symbol may be "###", "..." and other symbols.
以前述历史已上屏内容为“我这里离清华大学有500米”,按照该方法除去所述历史已上屏内容中包括的位置信息和距离信息后,得到“我这里离###有”,形成意图句式,用于确定针对所述已上屏内容的联想意图。According to the above history, the content of the screen is "I am 500 meters away from Tsinghua University". According to this method, after removing the location information and distance information included in the history of the screen, I get "I am here ###有有" Forming an intent sentence for determining a association intent for the content that has been on the screen.
下面以所述意图判断条件为意图句式,意图句式中包括“我这里离###有”,意图句式所对应的联想意图为关于位置距离的联想意图,所述已上屏内容为“我这里离搜狐网络大厦有”为例,介绍如何利用意图句式确定候选项。其中,位置信息为“搜狐网络大厦”。In the following, the intent judgment condition is an intentional sentence formula, and the intention sentence sentence includes "I am here from ###有", and the association intention corresponding to the intention sentence pattern is a association intention regarding the position distance, and the content of the upper screen is "I am here from the Sohu Network Building" as an example, how to use the intentional sentence to determine the candidate. Among them, the location information is "Sohu Network Building".
参见图5,图5示出了一种基于意图句式的候选项联想方法的流程示意图, 所述方法包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart diagram of a candidate association method based on an intentional sentence pattern, where the method includes:
S501、确定已上屏内容为“我这里离搜狐网络大厦有”。S501. Determine that the content on the screen is "I am from the Sohu Network Building."
S502、将已上屏内容“我这里离搜狐网络大厦有”进行处理,得到已上屏内容对应的句式。S502, processing the content of the screen "I am away from Sohu Network Building", and obtaining the sentence pattern corresponding to the content of the upper screen.
所述处理例如可以将已上屏内容中的位置信息“搜狐网络大厦”用通用符号替换,通用符号例如可以是“###”,从而得到已上屏内容对应的“我这里离###有”的句式。For example, the location information “Sohu Network Building” in the content of the upper screen can be replaced by a universal symbol, and the universal symbol can be “###”, for example, so that “I am away from ###” corresponding to the content of the upper screen. There are "sentences."
S503、将已上屏内容对应的句式与意图句式进行匹配,若所述已上屏内容对应的句式满足所述意图句式,确定所述已上屏内容具有所述意图句式对应的所述联想意图。S503. Match a sentence pattern corresponding to the content of the upper screen to the intent sentence pattern, and if the sentence pattern corresponding to the content of the upper screen satisfies the intention sentence pattern, determine that the content of the upper screen has the meaning sentence corresponding to The stated intent of the association.
通过将已上屏内容对应的句式与意图句式进行匹配,知晓已上屏内容对应的句式恰好是前述得到的意图句式中出现过的句式“我这里离###有”,据此,确定已上屏内容“我这里离搜狐网络大厦有”的联想意图为关于位置距离的联想意图,即接下来需要选择上屏的是包括位置距离联想意图的内容。By matching the sentence pattern corresponding to the content of the upper screen with the intention sentence pattern, it is known that the sentence pattern corresponding to the content of the upper screen happens to be the sentence pattern "I am here from ###有" which appears in the aforementioned intention sentence pattern. According to this, it is determined that the association content of the content of the screen "I am from the Sohu Network Building" is the association intention of the position distance, that is, the content that needs to select the upper screen is the content including the location distance association intention.
S504、输入法可以根据已上屏内容中的关键词“搜狐网络大厦”与已上屏内容上屏时对应的第二位置,通过地图接口得到“搜狐网络大厦”与所述第二位置的第一距离信息850米和10分钟路程。S504. The input method may obtain the “Sohu Network Building” and the second location by using a map interface according to a keyword “Sohu Network Building” in the content of the upper screen and a second position corresponding to when the upper screen content is on the screen. One distance information is 850 meters and 10 minutes away.
其中,已上屏内容上屏时对应的第二位置可以为已上屏内容上屏时用户所在的位置。The second position corresponding to the upper screen content on the screen may be the location of the user when the upper screen content is on the screen.
例如,地图接口得到“搜狐网络大厦”与所述第二位置间的距离为850米,且地图接口判定“搜狐网络大厦”与所述第二位置间为10分钟路程,则所述第一距离信息可以包括850米和10分钟路程。For example, the map interface is 850 meters away from the "Sohu Network Building" and the second location, and the map interface determines that the "Sohu Network Building" is 10 minutes away from the second location, then the first distance Information can be 850 meters and 10 minutes away.
S505、将第一距离信息850米和10分钟路程作为“我这里离搜狐网络大厦有”的候选项。S505. The first distance information is 850 meters and 10 minutes as the candidate for "I am from Sohu Network Building".
根据S501-S505得到“我这里离搜狐网络大厦有”的候选项为850米和10分钟路程,其候选项展示界面可以如图6所示。According to S501-S505, the candidate for "I have a place from Sohu.com" is 850 meters and 10 minutes. The candidate display interface can be as shown in Figure 6.
在图6中,“我这里离搜狐网络大厦有”为已上屏内容601,对应于图1中的101,“850米”和“10分钟的路程”为候选项602,对应于图1中的104。In Figure 6, "I am from Sohu Network Building" is the upper screen content 601, corresponding to 101 in Figure 1, "850 meters" and "10 minutes of distance" as candidate 602, corresponding to Figure 1 104.
由上述技术方案可以看出,根据最近一次上屏的内容,可以确定出待联想的已上屏内容,由于联想意图可以较大程度上体现出用户针对该已上屏内容的实际输入意图,若能确定该已上屏内容的联想意图,则可以根据该联想意图确定出用户在已上屏内容后可能会继续上屏的字符类型。故当根据该已上屏内容中的关键词获取与该联想意图对应的数据,并根据该数据联想出与 该已上屏内容对应的候选项时,由该数据确定出的候选项符合用户输入意图的可能性较大,提高了用户的输入便捷性,且确定出的候选项并不需要依据用户的历史输入数据产生,提高了联想候选项的可能。It can be seen from the above technical solution that, according to the content of the last screen, the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen. The association intention of the content on the screen can be determined, and the character type of the user may continue to be on the screen after the content of the screen has been determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input. The possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility of the association candidate.
图7为本申请实施例提供的一种候选项联想装置,所述装置包括第一确定模块701、第二确定模块702、第一获取模块703和联想模块704:FIG. 7 is a candidate association device according to an embodiment of the present disclosure. The device includes a first determining module 701, a second determining module 702, a first obtaining module 703, and a Lenovo module 704:
所述第一确定模块701,用于确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;The first determining module 701 is configured to determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen;
所述第二确定模块702,用于确定针对所述已上屏内容的联想意图;The second determining module 702 is configured to determine a Lenovo intent for the content that has been on the screen;
所述第一获取模块703,用于根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;The first obtaining module 703 is configured to acquire data corresponding to the association intention according to keywords in the uploaded content;
所述联想模块704,用于根据所述数据联想出与所述已上屏内容对应的候选项。The association module 704 is configured to associate a candidate corresponding to the uploaded content according to the data.
可选的,所述第二确定模块,包括:匹配模块和第一确定模块:Optionally, the second determining module includes: a matching module and a first determining module:
所述匹配模块,用于将所述已上屏内容与意图判断条件进行匹配;The matching module is configured to match the content of the screen that has been on the screen with the intention determination condition;
所述第一确定模块,用于若所述已上屏内容满足所述意图判断条件,确定所述已上屏内容具有所述意图判断条件对应的所述联想意图。The first determining module is configured to determine that the uploaded content has the association intent corresponding to the intent determination condition, if the uploaded content satisfies the intent determination condition.
可选的,所述意图判断条件包括意图关键词或意图句式。Optionally, the intent judgment condition includes an intent keyword or an intent sentence pattern.
可选的,所述联想意图包括关于位置距离的联想意图。Optionally, the association intention includes a association intent regarding the location distance.
可选的,所述关键词包括第一位置,所述第一获取模块还用于根据所述第一位置和所述已上屏内容上屏时对应的第二位置确定所述第一位置和所述第二位置间的第一距离信息,并将所述第一距离信息作为所述与所述关于位置距离的联想意图对应的数据。Optionally, the keyword includes a first location, and the first acquiring module is further configured to determine the first location according to the first location and a second location corresponding to when the upper screen content is on the screen The first distance information between the second positions, and the first distance information is used as the data corresponding to the association intention of the position distance.
可选的,所述联想模块还用于将所述第一距离信息作为与所述已上屏内容对应的候选项。Optionally, the Lenovo module is further configured to use the first distance information as a candidate corresponding to the screened content.
可选的,所述联想意图包括关于位置距离的联想意图,所述装置还包括:第二获取模块、第三确定模块和第四确定模块:Optionally, the association is intended to include a association intention with respect to a location distance, and the apparatus further includes: a second acquisition module, a third determination module, and a fourth determination module:
所述第二获取模块,用于获取包括了位置信息和距离信息的历史已上屏内容;The second acquiring module is configured to acquire historical on-screen content including location information and distance information;
所述第三确定模块,用于根据所述历史已上屏内容包括的位置信息和所述历史已上屏内容上屏时对应的位置信息确定第二距离信息;The third determining module is configured to determine the second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen;
所述第四确定模块,用于若所述第二距离信息与所述历史已上屏内容所包括的距离信息满足预设阈值,根据所述历史已上屏内容确定出针对所述关于位置距离的联想意图的意图判断条件。The fourth determining module is configured to: if the second distance information and the distance information included in the history of the on-screen content meet the preset threshold, determine, according to the history, the content of the upper screen, The intent of the association's intention to judge the condition.
可选的,所述第四确定模块包括:除去模块和第二确定模块:Optionally, the fourth determining module includes: a removing module and a second determining module:
所述除去模块,用于除去所述历史已上屏内容中包括的位置信息和距离信息;The removing module is configured to remove location information and distance information included in the historical screen content;
所述第二确定模块,用于根据所述历史已上屏内容中剩余的字符确定出意图关键词或意图句式,并将所述意图关键词或意图句式作为针对所述关于位置距离的联想意图的意图判断条件。The second determining module is configured to determine an intent keyword or an intended sentence according to the remaining characters in the history of the upper screen content, and use the intent keyword or the intention sentence as the target distance The intention of the association's intention to judge the condition.
由上述技术方案可以看出,根据最近一次上屏的内容,可以确定出待联想的已上屏内容,由于联想意图可以较大程度上体现出用户针对该已上屏内容的实际输入意图,若能确定该已上屏内容的联想意图,则可以根据该联想意图确定出用户在该已上屏内容后可能会继续上屏的内容。故当根据该已上屏内容中的关键词获取与该联想意图对应的数据,并根据该数据联想出与该已上屏内容对应的候选项时,由该数据确定出的候选项符合用户输入意图的可能性较大,提高了用户的输入便捷性,且确定出的候选项并不需要依据用户的历史输入数据产生,提高了联想候选项的可能和准确度。It can be seen from the above technical solution that, according to the content of the last screen, the on-screen content to be associated can be determined, and the association intention can largely reflect the actual input intention of the user for the content on the screen. The association intention of the content on the screen can be determined, and the content of the user may continue to be on the screen after the content of the screen is determined according to the association intention. Therefore, when the data corresponding to the association intention is acquired according to the keyword in the content of the upper screen, and the candidate corresponding to the content of the upper screen is associated according to the data, the candidate determined by the data conforms to the user input. The possibility of intention is large, the user's input convenience is improved, and the determined candidate does not need to be generated according to the user's historical input data, which improves the possibility and accuracy of the association candidate.
图8是根据一示例性实施例示出的一种用于语音合成的装置800的框图。例如,装置800可以是机器人,移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 8 is a block diagram of an apparatus 800 for speech synthesis, according to an exemplary embodiment. For example, device 800 can be a robot, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图8,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to Figure 8, device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理部件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。 Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 802 can include one or more processors 820 to execute instructions to perform all or part of the steps of the above described methods. Moreover, processing component 802 can include one or more modules to facilitate interaction between component 802 and other components. For example, processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在装置800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device, 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 Memory, Flash Memory, Disk or Optical Disk.
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。 Power component 806 provides power to various components of device 800. Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当装置800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. 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 the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input an audio signal. For example, the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting an audio signal.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到装置800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects. For example, sensor assembly 814 can detect an open/closed state of device 800, relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800. Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或8G,或它们的组合。在一个示例性实施例中,通信部件816经由广播信道接收来自 外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 8G, or a combination thereof. In an exemplary embodiment, communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also 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.
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, device 800 may 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 A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 804 comprising instructions executable by processor 820 of apparatus 800 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种候选项联想方法,所述方法包括:确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;确定针对所述已上屏内容的联想意图;根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;根据所述数据联想出与所述已上屏内容对应的候选项。A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a candidate association method, the method comprising: determining that the association to be associated The upper screen content, the content of the last screen includes the content of the last screen; determining the association intention for the content of the screen; and obtaining the correspondence corresponding to the association intention according to the keyword in the screen content Data; based on the data, a candidate corresponding to the already-online content is associated.
图9是本申请的一些实施例中服务器的结构示意图。该服务器900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)922(例如,一个或一个以上处理器)和存储器932,一个或一个以上存储应用程序942或数据944的存储介质930(例如一个或一个以上海量存储设备)。其中,存储器932和存储介质930可以是短暂存储或持久存储。存储在存储介质930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器922可以设置为与存储介质930通信,在服务器900上执行存储介质930中的一系列指令操作。9 is a schematic structural diagram of a server in some embodiments of the present application. The server 900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 922 (eg, one or more processors) and memory 932, one or one The storage medium 930 storing the application 942 or the data 944 (for example, one or one storage device in Shanghai). Among them, the memory 932 and the storage medium 930 may be short-term storage or persistent storage. The program stored on storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 922 can be configured to communicate with storage medium 930, executing a series of instruction operations in storage medium 930 on server 900.
服务器900还可以包括一个或一个以上电源924,一个或一个以上有线或无线网络接口950,一个或一个以上输入输出接口958,一个或一个以上键盘954,和/或,一个或一个以上操作系统941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。 Server 900 may also include one or more power supplies 924, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, one or more keyboards 954, and/or one or more operating systems 941. For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其 他实施例的不同之处。尤其,对于设备及系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It is to be noted that the various embodiments in the present specification are described in a progressive manner, and the same similar parts between the various embodiments may be referred to each other, and each embodiment focuses on different embodiments from other embodiments. At the office. In particular, for the device and the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The apparatus and system embodiments described above are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
以上所述,仅为本申请的一种具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The foregoing is only one specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed in the present application. Replacement should be covered by the scope of this application. Therefore, the scope of protection of the present application should be determined by the scope of protection of the claims.

Claims (18)

  1. 一种候选项联想方法,其特征在于,所述方法包括:A candidate association method, characterized in that the method comprises:
    确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen;
    确定针对所述已上屏内容的联想意图;Determining a Lenovo intent for the content that has been on the screen;
    根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;Acquiring data corresponding to the association intention according to keywords in the already-screened content;
    根据所述数据联想出与所述已上屏内容对应的候选项。Based on the data, a candidate corresponding to the already-online content is associated.
  2. 根据权利要求1所述的方法,其特征在于,所述确定针对所述已上屏内容的联想意图,包括:The method according to claim 1, wherein said determining a association intention for said on-screen content comprises:
    将所述已上屏内容与意图判断条件进行匹配;Matching the already-screened content with the intent determination condition;
    若所述已上屏内容满足所述意图判断条件,确定所述已上屏内容具有所述意图判断条件对应的所述联想意图。And if the content of the on-screen content satisfies the intention determination condition, determining that the content of the upper screen has the association intention corresponding to the intention determination condition.
  3. 根据权利要求2所述的方法,其特征在于,所述意图判断条件包括意图关键词或意图句式。The method of claim 2, wherein the intent determination condition comprises an intent keyword or an intent sentence pattern.
  4. 根据权利要求1至3任意一项所述的方法,其特征在于,所述联想意图包括关于位置距离的联想意图。The method according to any one of claims 1 to 3, characterized in that the associative intent comprises a association intent with respect to a positional distance.
  5. 根据权利要求4所述的方法,其特征在于,所述关键词包括第一位置,所述根据所述已上屏内容中的关键词获取与所述联想意图对应的数据,包括:The method according to claim 4, wherein the keyword includes a first location, and the acquiring data corresponding to the association intent according to a keyword in the uploaded content includes:
    根据所述第一位置和所述已上屏内容上屏时对应的第二位置确定所述第一位置和所述第二位置间的第一距离信息,并将所述第一距离信息作为所述与所述关于位置距离的联想意图对应的数据。Determining first distance information between the first location and the second location according to the first location and a second location corresponding to when the upper screen content is on the screen, and using the first distance information as a location The data corresponding to the associative intent of the positional distance is described.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述数据联想出与所述已上屏内容对应的候选项,包括:The method according to claim 5, wherein the associating the candidate corresponding to the uploaded content according to the data comprises:
    将所述第一距离信息作为与所述已上屏内容对应的候选项。The first distance information is used as a candidate corresponding to the already-screened content.
  7. 根据权利要求2所述的方法,其特征在于,所述联想意图包括关于位置距离的联想意图,所述方法还包括:The method of claim 2, wherein the associative intent comprises a association intent with respect to a location distance, the method further comprising:
    获取包括了位置信息和距离信息的历史已上屏内容;Obtaining the history of the screen that includes location information and distance information;
    根据所述历史已上屏内容包括的位置信息和所述历史已上屏内容上屏时对应的位置信息确定第二距离信息;Determining the second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen;
    若所述第二距离信息与所述历史已上屏内容所包括的距离信息满足预设阈值,根据所述历史已上屏内容确定出针对所述关于位置距离的联想意图的 意图判断条件。And if the distance information included in the second distance information and the history-over screen content meets a preset threshold, determining an intent determination condition for the association intention regarding the position distance according to the history-over screen content.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述历史已上屏内容确定出针对所述关于位置距离的联想意图的意图判断条件,包括:The method according to claim 7, wherein the determining the intent determination condition for the association intention regarding the position distance according to the history of the on-screen content comprises:
    除去所述历史已上屏内容中包括的位置信息和距离信息;Removing location information and distance information included in the history of the upper screen content;
    根据所述历史已上屏内容中剩余的字符确定出意图关键词或意图句式,并将所述意图关键词或意图句式作为针对所述关于位置距离的联想意图的意图判断条件。The intent keyword or the intention sentence pattern is determined based on the remaining characters in the history of the upper screen content, and the intention keyword or the intention sentence sentence is used as an intention judgment condition for the associative intention regarding the position distance.
  9. 一种候选项联想装置,其特征在于,所述装置包括第一确定模块、第二确定模块、第一获取模块和联想模块:A candidate association device, characterized in that the device comprises a first determining module, a second determining module, a first obtaining module and a Lenovo module:
    所述第一确定模块,用于确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;The first determining module is configured to determine the content of the upper screen to be associated, and the content of the last screen includes the content of the last screen;
    所述第二确定模块,用于确定针对所述已上屏内容的联想意图;The second determining module is configured to determine a Lenovo intent for the content that has been on the screen;
    所述第一获取模块,用于根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;The first obtaining module is configured to acquire data corresponding to the association intention according to a keyword in the screened content;
    所述联想模块,用于根据所述数据联想出与所述已上屏内容对应的候选项。The association module is configured to associate a candidate corresponding to the uploaded content according to the data.
  10. 根据权利要求9所述的装置,其特征在于,所述第二确定模块,包括:匹配模块和第一确定模块:The apparatus according to claim 9, wherein the second determining module comprises: a matching module and a first determining module:
    所述匹配模块,用于将所述已上屏内容与意图判断条件进行匹配;The matching module is configured to match the content of the screen that has been on the screen with the intention determination condition;
    所述第一确定模块,用于若所述已上屏内容满足所述意图判断条件,确定所述已上屏内容具有所述意图判断条件对应的所述联想意图。The first determining module is configured to determine that the uploaded content has the association intent corresponding to the intent determination condition, if the uploaded content satisfies the intent determination condition.
  11. 根据权利要求10所述的装置,其特征在于,所述意图判断条件包括意图关键词或意图句式。The apparatus according to claim 10, wherein said intention determination condition comprises an intention keyword or an intention sentence pattern.
  12. 根据权利要求9-11任意一项所述的装置,其特征在于,所述联想意图包括关于位置距离的联想意图。Apparatus according to any of claims 9-11, wherein the association intent comprises a association intent with respect to the location distance.
  13. 根据权利要求12所述的装置,其特征在于,所述关键词包括第一位置,所述第一获取模块还用于根据所述第一位置和所述已上屏内容上屏时对应的第二位置确定所述第一位置和所述第二位置间的第一距离信息,并将所述第一距离信息作为所述与所述关于位置距离的联想意图对应的数据。The device according to claim 12, wherein the keyword includes a first location, and the first obtaining module is further configured to: according to the first location and the corresponding content when the screen content is on the screen The second position determines first distance information between the first position and the second position, and uses the first distance information as data corresponding to the association intention with respect to the position distance.
  14. 根据权利要求13所述的装置,其特征在于,所述联想模块还用于将所述第一距离信息作为与所述已上屏内容对应的候选项。The device according to claim 13, wherein the association module is further configured to use the first distance information as a candidate corresponding to the screened content.
  15. 根据权利要求10所述的装置,其特征在于,所述联想意图包括关于位置距离的联想意图,所述装置还包括:第二获取模块、第三确定模块和第四确定模块:The apparatus according to claim 10, wherein the association intention comprises a association intention with respect to a position distance, the apparatus further comprising: a second acquisition module, a third determination module, and a fourth determination module:
    所述第二获取模块,用于获取包括了位置信息和距离信息的历史已上屏内容;The second acquiring module is configured to acquire historical on-screen content including location information and distance information;
    所述第三确定模块,用于根据所述历史已上屏内容包括的位置信息和所述历史已上屏内容上屏时对应的位置信息确定第二距离信息;The third determining module is configured to determine the second distance information according to the location information included in the history of the upper screen content and the location information corresponding to the history when the upper screen content is on the screen;
    所述第四确定模块,用于若所述第二距离信息与所述历史已上屏内容所包括的距离信息满足预设阈值,根据所述历史已上屏内容确定出针对所述关于位置距离的联想意图的意图判断条件。The fourth determining module is configured to: if the second distance information and the distance information included in the history of the on-screen content meet the preset threshold, determine, according to the history, the content of the upper screen, The intent of the association's intention to judge the condition.
  16. 根据权利要求15所述的装置,其特征在于,所述第四确定模块包括:除去模块和第二确定模块:The apparatus according to claim 15, wherein the fourth determining module comprises: a removing module and a second determining module:
    所述除去模块,用于除去所述历史已上屏内容中包括的位置信息和距离信息;The removing module is configured to remove location information and distance information included in the historical screen content;
    所述第二确定模块,用于根据所述历史已上屏内容中剩余的字符确定出意图关键词或意图句式,并将所述意图关键词或意图句式作为针对所述关于位置距离的联想意图的意图判断条件。The second determining module is configured to determine an intent keyword or an intended sentence according to the remaining characters in the history of the upper screen content, and use the intent keyword or the intention sentence as the target distance The intention of the association's intention to judge the condition.
  17. 一种用于候选项联想的处理设备,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:A processing device for candidate associations, comprising: a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors The one or more programs include instructions for performing the following operations:
    确定待联想的已上屏内容,所述已上屏内容中包括最近一次上屏的内容;Determining the on-screen content to be associated, the content of the last screen includes the content of the last screen;
    确定针对所述已上屏内容的联想意图;Determining a Lenovo intent for the content that has been on the screen;
    根据所述已上屏内容中的关键词获取与所述联想意图对应的数据;Acquiring data corresponding to the association intention according to keywords in the already-screened content;
    根据所述数据联想出与所述已上屏内容对应的候选项。Based on the data, a candidate corresponding to the already-online content is associated.
  18. 一种机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1至8中一个或多个所述的候选项联想方法。A machine readable medium having stored thereon instructions that, when executed by one or more processors, cause a device to perform the candidate association method of one or more of claims 1-8.
PCT/CN2018/091054 2017-11-16 2018-06-13 Candidate word prediction method and device WO2019095682A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711139060.1A CN109799916B (en) 2017-11-16 2017-11-16 Candidate item association method and device
CN201711139060.1 2017-11-16

Publications (1)

Publication Number Publication Date
WO2019095682A1 true WO2019095682A1 (en) 2019-05-23

Family

ID=66540021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/091054 WO2019095682A1 (en) 2017-11-16 2018-06-13 Candidate word prediction method and device

Country Status (2)

Country Link
CN (1) CN109799916B (en)
WO (1) WO2019095682A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015281A (en) * 2019-05-29 2020-12-01 北京搜狗科技发展有限公司 Cloud association method and related device
CN112083811B (en) * 2019-06-14 2024-01-30 北京搜狗科技发展有限公司 Candidate item display method and device
CN112181163A (en) * 2019-07-05 2021-01-05 北京搜狗科技发展有限公司 Input method, input device and input device
CN112306251A (en) * 2019-07-30 2021-02-02 北京搜狗科技发展有限公司 Input method, input device and input device
CN112667091A (en) * 2019-10-16 2021-04-16 北京搜狗科技发展有限公司 Cloud association method and related device
CN113031787A (en) * 2019-12-24 2021-06-25 北京搜狗科技发展有限公司 Input method, input device and input device
CN113805708B (en) * 2021-09-14 2024-01-23 维沃移动通信有限公司 Information display method, information display device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183787A (en) * 2015-03-24 2015-12-23 北京搜狗科技发展有限公司 Information input method and apparatus
US20160092434A1 (en) * 2014-09-29 2016-03-31 Apple Inc. Integrated word n-gram and class m-gram language models
CN106855748A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of data inputting method, device and intelligent terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714092A (en) * 2012-09-29 2014-04-09 北京百度网讯科技有限公司 Geographic position searching method and geographic position searching device
CN102937976B (en) * 2012-10-17 2015-12-09 北京奇虎科技有限公司 A kind of drop-down reminding method based on input prefix and device
CN104050168B (en) * 2013-03-12 2017-11-28 联想(北京)有限公司 Information processing method, electronic equipment and dictionary server
CN104516624B (en) * 2013-09-29 2018-12-28 腾讯科技(深圳)有限公司 A kind of method and device inputting account information
KR20160020903A (en) * 2014-08-14 2016-02-24 삼성전자주식회사 User terminal device, controlling method thereof and multimedia system
CN104298429B (en) * 2014-09-25 2018-05-04 北京搜狗科技发展有限公司 A kind of information displaying method and input method system based on input

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160092434A1 (en) * 2014-09-29 2016-03-31 Apple Inc. Integrated word n-gram and class m-gram language models
CN105183787A (en) * 2015-03-24 2015-12-23 北京搜狗科技发展有限公司 Information input method and apparatus
CN106855748A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of data inputting method, device and intelligent terminal

Also Published As

Publication number Publication date
CN109799916A (en) 2019-05-24
CN109799916B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
WO2019095682A1 (en) Candidate word prediction method and device
US10296201B2 (en) Method and apparatus for text selection
WO2017092198A1 (en) Recommendation method and device, and device for recommendation
WO2018171047A1 (en) Photographing guide method, device and system
US20160314164A1 (en) Methods and devices for sharing cloud-based business card
WO2016206295A1 (en) Character determination method and device
CN109783244B (en) Processing method and device for processing
CN107943317B (en) Input method and device
CN108573706B (en) Voice recognition method, device and equipment
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN109725736B (en) Candidate sorting method and device and electronic equipment
CN108573697B (en) Language model updating method, device and equipment
CN110968246A (en) Intelligent Chinese handwriting input recognition method and device
CN110648657A (en) Language model training method, language model construction method and language model construction device
CN107977089B (en) Input method and device and input device
CN109145151B (en) Video emotion classification acquisition method and device
CN111381685A (en) Sentence association method and device
CN107037887B (en) Method and device for Chinese character input and electronic equipment
CN112083811B (en) Candidate item display method and device
WO2017035985A1 (en) String storing method and device
CN109917927B (en) Candidate item determination method and device
CN108108356A (en) A kind of character translation method, apparatus and equipment
CN110019611B (en) Multi-destination query method and device
US10423706B2 (en) Method and device for selecting information
CN107870931B (en) Method and device for optimizing user lexicon and electronic equipment

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: 18879337

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: 18879337

Country of ref document: EP

Kind code of ref document: A1