CN104391840A - Translation method and device - Google Patents

Translation method and device Download PDF

Info

Publication number
CN104391840A
CN104391840A CN201410681538.3A CN201410681538A CN104391840A CN 104391840 A CN104391840 A CN 104391840A CN 201410681538 A CN201410681538 A CN 201410681538A CN 104391840 A CN104391840 A CN 104391840A
Authority
CN
China
Prior art keywords
target language
translation
character string
translated
entry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410681538.3A
Other languages
Chinese (zh)
Inventor
陈玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI WIWIDE NETWORK TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI WIWIDE NETWORK TECHNOLOGY Co Ltd
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 SHANGHAI WIWIDE NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI WIWIDE NETWORK TECHNOLOGY Co Ltd
Priority to CN201410681538.3A priority Critical patent/CN104391840A/en
Publication of CN104391840A publication Critical patent/CN104391840A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)

Abstract

The invention discloses a translation method and device. The method includes the steps: acquiring a character string of a text to be translated; judging whether a source language used by the character string is a preset target language or not; determining the character string to be translated when the source language used by the character string is not the preset target language. By the scheme, translation efficiency can be improved.

Description

Interpretation method and device
Technical field
The present invention relates to translation technology field, particularly relate to a kind of interpretation method and device.
Background technology
Along with the intensification day by day of internationalization exchanges and cooperation, day by day deepening of economical globalization tendency and further developing of international capital market, transregional cross-border capital movement is frequent, and Regional Economic interdependency is deepened.Owing to there is the difference of used language between different countries, therefore, when carrying out exchanges and cooperation, usually need the text translation of different source language to be become target language translation, to promote carrying out smoothly of international exchanges and cooperation.
In prior art, during translation between the text carrying out different language, need artificial cognition to go out character string to be translated, and the general efficiency of the mode of the character string adopting artificial cognition to be translated is lower.Therefore, interpretation method of the prior art also exists the problem of inefficiency.
Summary of the invention
What the embodiment of the present invention solved is the efficiency how improving text translation.
For solving the problem, embodiments provide a kind of interpretation method, described method comprises:
Obtain the character string in text to be translated;
Judge whether the source language that described character string uses is the target language pre-set;
When determine source language that described character string uses non-described in pre-set target language time, determine that described character string is character string to be translated;
Described character string to be translated is converted to corresponding target language translation, and output display.
Alternatively, the described target language translation described character string to be translated being converted to correspondence, comprising:
Described string segmentation to be translated is become corresponding entry;
Target language translation corresponding to each entry is obtained from the database preset;
The translation of target language corresponding for described entry described in each is arranged according to the position sequence of described entry in described character string.
Alternatively, described method also comprises: when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
Alternatively, described text to be translated is loaded by browser page.
Alternatively, pre-set target language described in comprise: arranged by the plug-in unit select target language that pre-sets in described browser page.
The embodiment of the present invention additionally provides a kind of translating equipment, and described device comprises:
Acquiring unit, is suitable for obtaining the character string in text to be translated;
Judge recognition unit, be suitable for judging whether the source language that described character string uses is the target language pre-set; When determine source language that described character string uses non-described in pre-set target language time, determine that described character string is character string to be translated;
Translation unit, is suitable for described character string to be translated being converted to corresponding target language translation, and output display.
Alternatively, described translation unit comprises:
Segmentation subelement, is suitable for described string segmentation to be translated to become corresponding entry;
Obtain subelement, be suitable for obtaining target language translation corresponding to each entry from the database preset;
Arrangement subelement, is suitable for the translation of target language corresponding for described entry described in each to arrange according to the position sequence of described entry in described character string.
Alternatively, described device also comprises: creating unit, be suitable for when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
Alternatively, described text to be translated is loaded by browser page.
Alternatively, pre-set target language described in comprise: arranged by the plug-in unit select target language that pre-sets in described browser page.
Compared with prior art, the technical scheme of the embodiment of the present invention has following advantage:
Target language as required by arranging, after obtaining the character string in text to be translated, can automatically identify character string to be translated and translate, and translating character string to be translated without the need to artificial, therefore, can improve the efficiency of translation.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of interpretation method in the embodiment of the present invention;
Fig. 2 is the process flow diagram of the another kind of interpretation method in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of translating equipment in the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of translation unit in the embodiment of the present invention.
Embodiment
For solving the above-mentioned problems in the prior art, the technical scheme that the embodiment of the present invention adopts, by according to the target language pre-set, can automatically identify character string to be translated and translate, can improve the efficiency of translation.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
Fig. 1 shows the process flow diagram of a kind of interpretation method in the embodiment of the present invention.Interpretation method as shown in Figure 1, can comprise:
Step S101: obtain the character string in text to be translated.
In concrete enforcement, described text to be translated can be loaded by browser page, and obtain obtain character string in text to be translated.
Step S102: judge whether the source language that described character string uses is the target language pre-set.
In concrete enforcement, described target language can be arranged according to the needs of self by user.
In concrete enforcement, when judged result is no, step S103 can be performed.
Step S103: determine that described character string is character string to be translated.
In concrete enforcement, when the target language pre-set described in the source language that the character string determined in text to be translated uses is non-, can determine that described character string is character string to be translated.
Step S104: described character string to be translated is converted to corresponding target language translation, and output display.
In concrete enforcement, target language translation that can be corresponding by character string to be translated stores in advance, and obtains corresponding target language translation when needing, and carries out output display.
Fig. 2 shows the process flow diagram of the another kind of interpretation method in the embodiment of the present invention.Interpretation method as shown in Figure 2, can comprise:
Step S201: obtain the character string in text to be translated.
In concrete enforcement, when user needs to carry out automatic translation, text to be translated can be inputted at automatic translation interface, or the text to be translated that this locality stores is uploaded.
Step S202: judge whether the source language that described character string uses is the target language pre-set.
In concrete enforcement, described target language can arrange corresponding plug-in unit by user and chooses and arrange.Such as, user can first in cookie _ PRESERVE_COOKIE_KEY chooses target language.When user opens multilingual translation pattern at automatic translation interface, first can to obtain in cookie _ PRESERVE_COOKIE_KEY, and judge source language that the character string obtained uses whether with in cookie _ target language that PRESERVE_COOKIE_KEY is arranged is identical.
In concrete enforcement, when judged result is for being, step S203 can be performed; When judged result is no, need not obtain character string be translated.
Step S203: determine that described character string is character string to be translated.
In concrete enforcement, when determine source language that described character string uses non-described in pre-set target language time, then can determine that obtained character string is character string to be translated.
Step S204: described string segmentation to be translated is become corresponding entry, obtains target language translation corresponding to each entry from the database preset.
In concrete enforcement, in order to realize automatic translation, corresponding relation between entry to be translated and corresponding target language translation can be created in advance in a database by artificial mode.When translating, first obtained string segmentation to be translated can be become the entry of one or more, and by the described database of inquiry, obtain the target language translation that each entry is corresponding one by one.
Step S205: the translation of target language corresponding for described entry described in each is arranged according to the position sequence of described entry in described character string, and carries out output display.
In concrete enforcement, target language translation that can be corresponding by each obtained entry arranges according to splitting the position sequence of entry in described character string obtained, so that target translation corresponding for character string to be translated is carried out output display.
In concrete enforcement, the interpretation method in the embodiment of the present invention can also comprise:
Step S206: when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
In concrete enforcement, in order to improve the efficiency of translation further, when determining the target language translation that there is not entry and the correspondence split and obtain in a database, can adopt artificial mode that the word translation of correspondence is become target language translation, and the corresponding article created in the database between described entry with target language translation, to make the corresponding relation between the entry that stores in database and corresponding target language translation more perfect.
Fig. 3 shows the structural representation of a kind of translating equipment in the embodiment of the present invention.Translating equipment 300 as shown in Figure 3, can comprise acquiring unit 301, judge recognition unit 302 and translation unit 303, wherein:
Acquiring unit 301, is suitable for obtaining the character string in text to be translated.
Judge recognition unit 302, be suitable for judging whether the source language that described character string uses is the target language pre-set; When determine source language that described character string uses non-described in pre-set target language time, determine that described character string is character string to be translated.
Translation unit 303, is suitable for described character string to be translated being converted to corresponding target language translation, and output display.
In concrete enforcement, translating equipment 300 as shown in Figure 3 can also comprise creating unit 304, wherein:
Creating unit 304, be suitable for when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
Fig. 4 shows the structural representation of a kind of translation unit in the embodiment of the present invention.Translation unit 400 as shown in Figure 4, can comprise segmentation subelement 401, obtain subelement 402 and arrangement subelement 403, wherein:
Segmentation subelement 401, is suitable for described string segmentation to be translated to become corresponding entry.
Obtain subelement 402, be suitable for obtaining target language translation corresponding to each entry from the database preset.
Arrangement subelement 403, is suitable for the translation of target language corresponding for described entry described in each to arrange according to the position sequence of described entry in described character string.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.
Done detailed introduction to the method and system of the embodiment of the present invention above, the present invention is not limited to this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.

Claims (10)

1. an interpretation method, is characterized in that, comprising:
Obtain the character string in text to be translated;
Judge whether the source language that described character string uses is the target language pre-set;
When determine source language that described character string uses non-described in pre-set target language time, determine that described character string is character string to be translated;
Described character string to be translated is converted to corresponding described target language translation, and output display.
2. interpretation method according to claim 1, is characterized in that, the described target language translation described character string to be translated being converted to correspondence, comprising:
Described string segmentation to be translated is become corresponding entry;
Target language translation corresponding to each entry is obtained from the database preset;
The translation of target language corresponding for described entry described in each is arranged according to the position sequence of described entry in described character string.
3. interpretation method according to claim 1, it is characterized in that, also comprise: when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
4. interpretation method according to claim 1, is characterized in that, loads described text to be translated by browser page.
5. interpretation method according to claim 4, is characterized in that, described in pre-set target language and comprise: arranged by the plug-in unit select target language that pre-sets in described browser page.
6. a translating equipment, is characterized in that, comprising:
Acquiring unit, is suitable for obtaining the character string in text to be translated;
Judge recognition unit, be suitable for judging whether the source language that described character string uses is the target language pre-set; When determine source language that described character string uses non-described in pre-set target language time, determine that described character string is character string to be translated;
Translation unit, is suitable for described character string to be translated being converted to corresponding target language translation, and output display.
7. translating equipment according to claim 6, is characterized in that, described translation unit comprises:
Segmentation subelement, is suitable for described string segmentation to be translated to become corresponding entry;
Obtain subelement, be suitable for obtaining target language translation corresponding to each entry from the database preset;
Arrangement subelement, is suitable for the translation of target language corresponding for described entry described in each to arrange according to the position sequence of described entry in described character string.
8. translating equipment according to claim 6, it is characterized in that, also comprise: creating unit, be suitable for when determining that described entry does not have corresponding target language translation in described default database, by the translation that described entry human translation is described target language, and the corresponding relation between the translation creating described entry and described target language in the database.
9. translating equipment according to claim 6, is characterized in that, loads described text to be translated by browser page.
10. translating equipment according to claim 9, is characterized in that, described in pre-set target language and comprise: arranged by the plug-in unit select target language that pre-sets in described browser page.
CN201410681538.3A 2014-11-24 2014-11-24 Translation method and device Pending CN104391840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410681538.3A CN104391840A (en) 2014-11-24 2014-11-24 Translation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410681538.3A CN104391840A (en) 2014-11-24 2014-11-24 Translation method and device

Publications (1)

Publication Number Publication Date
CN104391840A true CN104391840A (en) 2015-03-04

Family

ID=52609746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410681538.3A Pending CN104391840A (en) 2014-11-24 2014-11-24 Translation method and device

Country Status (1)

Country Link
CN (1) CN104391840A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202060A (en) * 2016-06-24 2016-12-07 深圳信息职业技术学院 A kind of character input method and device
CN106649295A (en) * 2017-01-04 2017-05-10 携程旅游网络技术(上海)有限公司 Text translation method for mobile terminal
CN106933811A (en) * 2017-02-14 2017-07-07 南京南瑞继保电气有限公司 A kind of entry automatic generation method and device
CN107679043A (en) * 2017-09-22 2018-02-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device
CN109814962A (en) * 2018-12-28 2019-05-28 深圳市元征科技股份有限公司 A kind of interpretation method and device, equipment of software interface
CN109992753A (en) * 2019-03-22 2019-07-09 维沃移动通信有限公司 A kind of translation processing method and terminal device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661593A (en) * 2004-02-24 2005-08-31 北京中专翻译有限公司 Method for translating computer language and translation system
CN101957815A (en) * 2009-07-13 2011-01-26 白劲实 Automatic translation method and system based on correct translation result and corresponding relation
CN102043773A (en) * 2009-10-20 2011-05-04 张龙哺 Method and device for forming modularized bilingual sentence pairs
CN102467498A (en) * 2010-11-18 2012-05-23 阿里巴巴集团控股有限公司 Translation method and device
CN103744841A (en) * 2013-12-23 2014-04-23 武汉传神信息技术有限公司 Information fragment translating method and system
CN103885939A (en) * 2012-12-19 2014-06-25 新疆信息产业有限责任公司 Uyghur-Chinese bi-directional translation memory system construction method
CN104090869A (en) * 2014-06-25 2014-10-08 武汉传神信息技术有限公司 Network information translating method and translating system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661593A (en) * 2004-02-24 2005-08-31 北京中专翻译有限公司 Method for translating computer language and translation system
CN101957815A (en) * 2009-07-13 2011-01-26 白劲实 Automatic translation method and system based on correct translation result and corresponding relation
CN102043773A (en) * 2009-10-20 2011-05-04 张龙哺 Method and device for forming modularized bilingual sentence pairs
CN102467498A (en) * 2010-11-18 2012-05-23 阿里巴巴集团控股有限公司 Translation method and device
CN103885939A (en) * 2012-12-19 2014-06-25 新疆信息产业有限责任公司 Uyghur-Chinese bi-directional translation memory system construction method
CN103744841A (en) * 2013-12-23 2014-04-23 武汉传神信息技术有限公司 Information fragment translating method and system
CN104090869A (en) * 2014-06-25 2014-10-08 武汉传神信息技术有限公司 Network information translating method and translating system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202060A (en) * 2016-06-24 2016-12-07 深圳信息职业技术学院 A kind of character input method and device
CN106649295A (en) * 2017-01-04 2017-05-10 携程旅游网络技术(上海)有限公司 Text translation method for mobile terminal
CN106933811A (en) * 2017-02-14 2017-07-07 南京南瑞继保电气有限公司 A kind of entry automatic generation method and device
CN107679043A (en) * 2017-09-22 2018-02-09 广州阿里巴巴文学信息技术有限公司 Data processing method, device and terminal device
CN109814962A (en) * 2018-12-28 2019-05-28 深圳市元征科技股份有限公司 A kind of interpretation method and device, equipment of software interface
CN109992753A (en) * 2019-03-22 2019-07-09 维沃移动通信有限公司 A kind of translation processing method and terminal device
CN109992753B (en) * 2019-03-22 2023-09-08 维沃移动通信有限公司 Translation processing method and terminal equipment

Similar Documents

Publication Publication Date Title
CN104391840A (en) Translation method and device
US20170046434A1 (en) Universal internet information data mining method
MX2016014234A (en) System and method for the creation and use of visually-diverse high-quality dynamic layouts.
CN105551492A (en) Speech control method, speech control device and terminal
AU2018388932A1 (en) Method and device using wikipedia link structure to generate chinese language concept vector
CN105426546A (en) Intelligent retrieval method and system for patent
CN103106061A (en) Voice input method and device
EP1729233A3 (en) CAD method, CAD system and program storage medium storing CAD program thereof
CN108241740A (en) The generation method and device of a kind of search input associational word of timeliness
RU2015102279A (en) METHOD FOR DATA ENTRY IN ELECTRONIC DEVICE, METHOD FOR PROCESSING VOICE REQUEST, MACHINE READABLE MEDIA (OPTIONS), ELECTRONIC DEVICE, SERVER AND SYSTEM
JP6092686B2 (en) Operation workflow creation support method and operation workflow creation support system
CN106598923A (en) Online document format conversion method and apparatus based on font object library loading
CN106649293A (en) Translation method and translation system
CN105468661A (en) Method and system for searching symbol information in ELF file
KR102111842B1 (en) A drawing shape extraction apparatus and method for creating a machine tool machining program, The recording medium
CN103903615A (en) Information processing method and electronic device
CN109558602B (en) Distributed selection and fusion of translation tools
CN104182479A (en) Method and device for processing information
ATE484813T1 (en) METHOD FOR LABELING A SET OF MARKING PLATES
CN104375879A (en) Binary system translation method and device based on execution tree depth
KR20170073025A (en) Nest utilizing big data analysis system and how to use them a maximum efficiency of store development
CN104598546A (en) Synonym search system
CN111209755A (en) Efficient translation method
TW200612263A (en) Multi-language system and method for quickly selecting a font file corresponding to a character from a font database
CN106528546A (en) ERP term machine translation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150304

WD01 Invention patent application deemed withdrawn after publication