摘要:
This disclosure provides a machine translation method and apparatus, and a storage medium, and belongs to the field of communications network technologies. The method includes: obtaining a to-be-translated source document, where the source document includes at least one character of a source language; converting the source document into a plurality of target documents respectively by using a plurality of machine translation apparatuses, where one machine translation apparatus is configured to translate the source document into one target document, the target document includes at least one character of a target language, and the source language is different from the target language; determining a feature value of each preset feature of each target document; determining a recommendation rating of each target document based on the feature value of each preset feature of each target document; and outputting a target document with a highest recommendation rating based on the recommendation rating of each target document. According to this disclosure, the target document is translated by using the plurality of machine translation apparatuses, and the target document is output based on the recommendation rating of each target document, thereby improving accuracy of machine translation.
摘要:
Embodiments of the present invention disclose a terminal, so as to resolve a problem in the prior art that costs for implementing pressure touch control are high, and to reduce the costs. The terminal includes a cover, a display module, and a metal middle frame, where the display module is located between the cover and the metal middle frame, and the metal middle frame is grounded. The terminal further includes a conducting layer, where the conducting layer is attached to a lower surface of the display module, and at least one gap exists between the conducting layer and the metal middle frame. The conducting layer, the metal middle frame, and the at least one gap form at least one capacitor, where a capacitance change of the at least one capacitor reflects a magnitude of at least one pressure acted on the cover.
摘要:
The present invention discloses a terminal, a touch control unit, a touchscreen, a screen protector, and an operation detection apparatus and method, and pertains to the field of terminal control. The terminal includes: a touchscreen, a controller connected to the touchscreen, and at least one touch control unit, where the touch control unit includes: a detection electrode, an induction electrode, and a conducting wire connecting the detection electrode and the induction electrode; the detection electrode is located outside a touch area of the touchscreen, the induction electrode is located in the touch area of the touchscreen, and the induction electrode is coupled to at least one capacitance node on the touchscreen. An existing capacitance node on the touchscreen is used to identify a touch operation performed by a user on the detection electrode disposed outside the touchscreen, and the terminal is controlled according to the touch operation. This may further increase a quantity of keys of the terminal and expand a control manner of the terminal with only a need to occupy quite small space and spend quite low costs. Therefore, user experience is improved.
摘要:
Embodiments of this application relate to the field of electronic technologies, and provide a touch operation method and a device, so that in a scenario in which an electronic device is held with one hand, response processing can be performed for a touch operation on a side edge of the electronic device, and a finger of a user does not need to reach a control in a middle region of a screen to perform an operation. Therefore, an operation amplitude of the finger can be shortened, a one-hand operation of the user can be facilitated, and user experience can be improved. A specific solution is as follows: The touch operation method is applied to an electronic device having a curved screen, where the curved screen includes a side edge of the electronic device. After detecting that the side edge is touched, the electronic device determines a target region, where the target region is a contact region of a user on the side edge in a holding mode. The electronic device prompts a location of the target region. After detecting a touch operation performed by the user on the target region, the electronic device performs a corresponding response operation for the touch operation. Embodiments of this application are applied to the touch operation.
摘要:
This application provides an SCL parallel decoding method and apparatus and a device. The method includes: after received data corresponds to P groups of to-be-decoded bits, obtaining L 1 first decoding paths of an (i-1) th group of to-be-decoded bits, where i is an integer, P is an integer greater than 1, 1 1 is a positive integer; determining L 3 third decoding paths for each first decoding path, where a quantity of information bits in an i th group of to-be-decoded bits is n, n is a positive integer greater than or equal to 1, L 3 is a positive integer, and L 3 n ; and determining at least one reserved decoding path of the i th group of to-be-decoded bits from L 1 × L 3 third decoding paths, where the at least one reserved decoding path includes a decoding result of the i th group of to-be-decoded bits. In this way, SCL parallel decoding efficiency is improved.
摘要:
Embodiments of the present invention disclose a question answering method, including: obtaining target question information; determining a candidate question and answer pair based on the target question information; calculating a confidence of answer information in the candidate question and answer pair, where the confidence is used to indicate a probability that question information in the candidate question and answer pair belongs to an answer database or an adversarial database, and the confidence is positively correlated to the probability that the question information in the candidate question and answer pair belongs to the answer database; determining whether the confidence is less than a first preset threshold; and when the confidence is less than the first preset threshold, outputting "incapable of answering". In this way, the candidate question and answer pair is determined in a knowledge base based on a matching degree, and then a confidence of each piece of answer information is calculated. If the confidence is relatively high, the answer information can be output, or if the confidence is relatively low, "incapable of answering" can be output, so as to avoid misleading a user, thereby improving answering accuracy.
摘要:
The present invention discloses a sequence conversion method and apparatus. The sequence conversion method includes: receiving a source sequence; converting the source sequence into a source vector representation sequence; obtaining at least two candidate target sequences and a translation probability value of each of the at least two candidate target sequences according to the source vector representation sequence; adjusting the translation probability value of each candidate target sequence; selecting an output target sequence from the at least two candidate target sequences according to an adjusted translation probability value of each candidate target sequence; and outputting the output target sequence. According to the present invention, loyalty of a target sequence to a source sequence can be improved during sequence conversion.
摘要:
The present invention discloses a terminal, and a terminal control apparatus and method, which pertains to the terminal control field. The terminal includes: a touchscreen, at least one touch control unit, a first controller, and a second controller, where the touch control unit includes: a detection electrode, an induction electrode, and a conducting wire that connects the detection electrode and the induction electrode, where the detection electrode is located outside a touch control area of the touchscreen, the induction electrode is located in the touch control area of the touchscreen, and the induction electrode is coupled to at least one capacitance node in the touchscreen; and the first controller is separately connected to the touchscreen and the second controller. A touch control operation performed by a user on the detection electrode disposed outside the touchscreen is identified by using an existing capacitance node in the touchscreen, and the terminal is controlled according to the touch control operation. Therefore, by merely occupying a very small space and spending very low costs, a manner in which a user controls a terminal may be further extended, and user experience may be improved.
摘要:
The present invention discloses an address search method and device, including: acquiring address search request information, and determining to-be-found destination address information included in the address search request information; splitting the destination address information into at least one piece of sub-address information, where the destination address information is formed by multiple pieces of sub-address information, and the multiple pieces of sub-address information respectively correspond to different address types; matching the at least one piece of sub-address information or the at least one piece of sub-address information and the destination address information with different address information included in an address database, where each piece of address information stored in the address database includes different sub-address information that forms the address information; and using address information that is obtained by the matching and whose match degree is greater than a set threshold as found destination address information for output. This improves correctness of extraction of destination address information, and effectively increases correctness of address matching and accuracy of address searching.