CN107239441B - Dictionary paraphrasing method and device - Google Patents

Dictionary paraphrasing method and device Download PDF

Info

Publication number
CN107239441B
CN107239441B CN201710281007.9A CN201710281007A CN107239441B CN 107239441 B CN107239441 B CN 107239441B CN 201710281007 A CN201710281007 A CN 201710281007A CN 107239441 B CN107239441 B CN 107239441B
Authority
CN
China
Prior art keywords
content
language
paraphrased
text
paraphrase
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.)
Active
Application number
CN201710281007.9A
Other languages
Chinese (zh)
Other versions
CN107239441A (en
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710281007.9A priority Critical patent/CN107239441B/en
Publication of CN107239441A publication Critical patent/CN107239441A/en
Application granted granted Critical
Publication of CN107239441B publication Critical patent/CN107239441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/247Thesauruses; Synonyms

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Machine Translation (AREA)
  • Character Discrimination (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention is applicable to the technical field of computers, and provides a dictionary paraphrasing method and a device, wherein the method comprises the following steps: when a paraphrase instruction of a user is received, a preset camera is started, language identification is carried out on to-be-paraphrased content appointed by the user in an image acquired by the camera, when the identified language is Chinese, whether the to-be-paraphrased content is a language or not is determined, when the to-be-paraphrased content is the language, a paraphrase of a sentence where the to-be-paraphrased content is located and a paraphrase of the to-be-paraphrased content are inquired and output, so that the automatic paraphrasing of the language is realized by sequentially carrying out the language identification and the language identification on the to-be-paraphrased content, and the intelligent degree and the convenience degree of dictionary paraphrasing are effectively improved.

Description

Dictionary paraphrasing method and device
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a dictionary paraphrasing method and device.
Background
With the development of computer technology and internet technology, tools for paraphrasing words and sentences are gradually improved, wherein the tools comprise electronic dictionaries, scanning pens and other equipment and known dictionaries, Baidu dictionaries and other applications, and when students and office workers encounter strange characters, words or vocabularies, the corresponding paraphrases can be found by using the tools.
However, in the prior art, these tools for paraphrasing words and sentences are mainly used for paraphrasing words and sentences in modern texts, english-to-english translation and chinese-to-english translation, and the words and sentences in the language and language texts cannot be paraphrased, so that students and workgroups cannot resort to the existing tools when encountering characters, words or sentences which are unknown in the language and language texts.
Disclosure of Invention
The invention aims to provide a dictionary paraphrasing method and a dictionary paraphrasing device, and aims to solve the problem that the prior art cannot provide an effective dictionary paraphrasing method and cannot paraphrase a Chinese character.
In one aspect, the present invention provides a method for paraphrasing a dictionary, the method comprising the steps of:
when a paraphrase instruction of a user is received, starting a preset camera;
performing language identification on the content to be explained in the image acquired by the camera and designated by the user;
when the identified language is Chinese, determining whether the content to be explained is a language;
and when the content to be paraphrased is determined to be the language, inquiring and outputting the paraphrase of the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased.
In another aspect, the present invention provides a dictionary paraphrasing apparatus, the apparatus comprising:
the camera starting module is used for starting a preset camera when a paraphrase instruction of a user is received;
a language identification module, configured to perform language identification on the content to be paraphrased, which is specified by the user, in the image acquired by the camera;
the language text judging module is used for determining whether the content to be explained is a language text when the identified language is Chinese; and
and the paraphrase module is used for inquiring and outputting paraphrases of sentences in which the contents to be paraphrased are located and paraphrases of the contents to be paraphrased when the contents to be paraphrased are determined to be the language texts.
When receiving a paraphrase instruction of a user, the invention starts a preset camera to obtain the content of the paraphrase to be specified in an image obtained by the camera by the user, performs language identification on the content of the paraphrase to be specified by the user, determines whether the content of the paraphrase to be specified is a Chinese language or not when the identified language is Chinese, and inquires and outputs the paraphrase of a sentence where the content of the paraphrase to be specified is located and the paraphrase of the content of the paraphrase to be specified when the content of the paraphrase to be specified is determined to be the Chinese language, thereby realizing the automatic paraphrase of the Chinese language through the language identification, the Chinese language identification and the paraphrase inquiry, effectively improving the intelligent degree and the convenience degree of dictionary paraphrase, and further perfecting the dictionary paraphrase.
Drawings
FIG. 1 is a flowchart illustrating an implementation of a dictionary paraphrasing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a dictionary paraphrasing method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a dictionary paraphrasing apparatus according to a third embodiment of the present invention; and
FIG. 4 is a schematic structural diagram of a dictionary paraphrasing apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
the first embodiment is as follows:
fig. 1 shows an implementation flow of a dictionary paraphrasing method provided in the first embodiment of the present invention, and for convenience of description, only the parts related to the first embodiment of the present invention are shown, which are detailed as follows:
in step S101, when a paraphrase instruction of a user is received, a preset camera is started.
The invention is suitable for intelligent equipment such as computers, mobile phones, tablet computers and the like, and when receiving the instruction of paraphrasing words and sentences by a user, the equipment starts the cameras of the equipment so as to obtain the content which needs to be paraphrased or explained by the user through the cameras.
In step S102, language identification is performed on the content to be interpreted specified by the user in the image acquired by the camera.
In the embodiment of the invention, the content to be explained can be characters, words, sentences or words and the like which are required by the user to explain the meaning. The image containing the content to be explained is acquired through the camera, further, the content to be explained in the image can be automatically marked or framed, or a user is reminded to set the content to be explained in the image, for example, the content to be explained in the image is positioned or focused through a touch screen, a mouse click and the like of the user. After the content to be explained is obtained, the language of the content to be explained can be identified through the existing image language identification algorithm, or the characters of the content to be explained in the image can be extracted first, and then the language of the characters can be identified through the existing language identification algorithm.
In step S103, when the recognized language is chinese, it is determined whether the content to be paraphrased is a literal.
In the embodiment of the invention, when the language of the content to be paraphrased is Chinese, a language and text recognition area with the size of the screenshot range is intercepted in the image according to the preset screenshot range and the position of the content to be paraphrased in the image, text recognition is carried out on the language and text recognition area, the recognition result is matched with the language and text in the preset language library, and when the matching degree exceeding a preset first matching threshold exists, the content to be paraphrased is determined to be the language and text.
Specifically, the screenshot range can be set according to the common sentence length of the language, for example, the screenshot range is set to be twice as long as the common sentence length of the language, so that more complete content can be obtained as much as possible for identifying the language, and the accuracy of matching the language is improved.
Specifically, the literature library can store the contents of literature articles, ancient poems and the like.
In step S104, when it is determined that the content to be paraphrased is a Chinese, the paraphrase of the sentence in which the content to be paraphrased is located and the paraphrase of the content to be paraphrased are queried and output.
In the embodiment of the invention, when the content to be paraphrased is determined to be a text, the sentence where the content to be paraphrased is located can be searched in the text of the text recognition area according to the punctuation marks, the sentence is matched with the text sentences in the preset text paraphrase library, and when the text sentences with the matching degree exceeding the preset second matching threshold are obtained, the paraphrases of the text sentences, namely the paraphrases of the sentence where the content to be paraphrased is located, are obtained, and the paraphrases of the content to be paraphrased in the sentence are simultaneously obtained, so that the paraphrases of the content to be paraphrased do not depart from the sentences, and the accuracy and the intelligibility of the content to be paraphrased are improved.
Specifically, when there are a plurality of text sentences the matching degree of which exceeds the second matching threshold, the paraphrases corresponding to the text sentences and the paraphrases of the contents to be paraphrased in the text sentences may be displayed and output according to the matching degree.
In the embodiment of the invention, the content to be paraphrased is identified by language identification and language and text identification to determine whether the content to be paraphrased is a language and when the content to be paraphrased is determined to be a language, the sentence where the content to be paraphrased is located and the content to be paraphrased are subjected to paraphrasing query, so that the automatic paraphrasing of the language and text is realized, the intelligent degree and the convenient degree of dictionary paraphrasing are effectively improved, and the dictionary paraphrasing is further improved.
Example two:
fig. 2 shows an implementation process of the dictionary paraphrasing method provided by the second embodiment of the present invention, which is detailed as follows:
in step S201, when a paraphrase instruction of a user is received, a preset camera is started.
In the embodiment of the invention, when intelligent equipment such as a computer, a mobile phone, a tablet personal computer and the like receives an instruction of a user for paraphrasing a word and a sentence, a camera of the intelligent equipment is started so as to obtain the content which needs to be paraphrased or explained by the user through the camera.
In step S202, language identification is performed on the content to be paraphrased specified by the user in the image acquired by the camera, and it is determined whether the identified language is chinese.
In the embodiment of the invention, after the image containing the content to be paraphrased is acquired by the camera, the content to be paraphrased in the image can be further automatically marked or framed, or the content to be paraphrased in the image can be positioned or focused by detecting a touch point of a user, a mouse click position and the like. After the content to be explained is obtained, the language of the content to be explained can be identified through the existing image language identification algorithm, or the characters of the content to be explained in the image can be extracted first, then the language of the characters is identified through the existing language identification algorithm, and whether the content to be explained is Chinese is determined through the identified language.
In step S203, when the identified language is not chinese, the chinese paraphrase of the content to be paraphrased is queried and output.
In the embodiment of the invention, when the language of the content to be paraphrased is identified to be not Chinese, the Chinese paraphrase corresponding to the content to be paraphrased is searched, wherein the Chinese paraphrase can comprise Chinese translation and Chinese explanation of the content to be paraphrased, namely the Chinese translation and explanation are carried out on the content to be paraphrased.
In step S204, when the recognized language is chinese, it is determined whether the content to be paraphrased is a literal.
In the embodiment of the invention, when the language of the content to be paraphrased is Chinese, a language and text recognition area with the size of the screenshot range is intercepted in the image according to the preset screenshot range and the position of the content to be paraphrased in the image, text recognition is carried out on the language and text recognition area, the recognition result is matched with the language and text in the preset language library, and whether the content to be paraphrased is the language and text is determined according to the matching result.
In step S205, when the content to be paraphrased is not a Chinese, the foreign language paraphrase of the content to be paraphrased is queried and output.
In the embodiment of the invention, when the matching degree between the content to be paraphrased and all the language texts in the language library does not exceed the preset first matching threshold, the content to be paraphrased is determined not to be a language text, at this time, the content to be paraphrased is determined to be a modern text, and the foreign language paraphrase corresponding to the content to be paraphrased is inquired according to the default foreign language type set by a user, wherein the foreign language paraphrase can comprise foreign language translation and foreign language explanation, namely the foreign language translation and explanation are carried out on the content to be paraphrased.
In step S206, when the content to be paraphrased is a Chinese, the paraphrase of the sentence in which the content to be paraphrased is located and the paraphrase of the content to be paraphrased are queried and output.
In the embodiment of the invention, when the language text with the matching degree with the content to be paraphrased exceeding the first matching degree exists in the language library, the content to be paraphrased is determined to be the language text. At this time, the sentence where the content to be paraphrased is located can be searched in the characters of the language identification area according to the punctuation marks, the sentence is matched with the language sentences in the preset language and text paraphrase library, when the language sentences with the matching degree exceeding the preset second matching threshold are obtained, the paraphrases of the language sentences, namely the paraphrases of the sentence where the content to be paraphrased is located, are obtained, and the paraphrases of the content to be paraphrased in the sentence are obtained at the same time, so that the paraphrases of the content to be paraphrased are not separated from the sentence, and the accuracy and the intelligibility of the content to be paraphrased are improved.
In the embodiment of the invention, the content to be explained is subjected to language identification, when the content to be identified is foreign language, the content to be explained is subjected to Chinese explanation, when the content to be identified is Chinese, the content to be explained is subjected to language and text identification, when the content to be identified is not the language and text, the content to be explained is subjected to foreign language explanation, when the content to be explained is the language and text, the sentence where the content to be explained is located and the explanation of the content to be explained are inquired in a language and text explanation library, so that the intelligent degree and the convenience degree of dictionary explanation are effectively improved, and the dictionary explanation is further improved.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
Example three:
fig. 3 shows a structure of a dictionary paraphrasing apparatus provided in a third embodiment of the present invention, and for convenience of explanation, only the parts related to the third embodiment of the present invention are shown, including:
the camera starting module 31 is configured to start a preset camera when receiving a paraphrase instruction of a user.
In the embodiment of the invention, when intelligent equipment such as a computer, a mobile phone, a tablet personal computer and the like receives an instruction of a user for paraphrasing a word and a sentence, a camera of the intelligent equipment is started so as to obtain the content which needs to be paraphrased or explained by the user through the camera.
And the language identification module 32 is used for performing language identification on the content to be explained in the image acquired by the camera and designated by the user.
In the embodiment of the invention, the camera is used for acquiring the image containing the content to be explained, and further, the content to be explained in the image can be automatically marked or framed, or a user is reminded to set the content to be explained in the image. After the content to be explained is obtained, the language of the content to be explained can be identified through the existing image language identification algorithm, or the characters of the content to be explained in the image can be extracted first, and then the language of the characters can be identified through the existing language identification algorithm.
And a language text judging module 33, configured to determine whether the content to be paraphrased is a language text when the identified language is a Chinese language.
In the embodiment of the invention, when the language of the content to be paraphrased is Chinese, a language and text recognition area with the size of a preset screenshot range is intercepted in the image according to the position of the content to be paraphrased in the image, the language and text recognition area can be subjected to text recognition, the recognition result is matched with the language and text in a preset language library, and when the matching degree exceeding a preset first matching threshold exists, the content to be paraphrased is determined to be the language and text.
The paraphrase module 34 is configured to query and output paraphrases of sentences in which the content to be paraphrased is located and paraphrases of the content to be paraphrased when it is determined that the content to be paraphrased is a language text.
In the embodiment of the invention, when the content to be paraphrased is determined to be a text, the sentence where the content to be paraphrased is located can be searched in the text of the text recognition area according to the punctuation marks, the sentence is matched with the text sentences in the preset text paraphrase library, and when the text sentences with the matching degree exceeding the preset second matching threshold are obtained, the paraphrases of the text sentences, namely the paraphrases of the sentence where the content to be paraphrased is located, are obtained, and the paraphrases of the content to be paraphrased in the sentence are simultaneously obtained, so that the paraphrases of the content to be paraphrased do not depart from the sentences, and the accuracy and the intelligibility of the content to be paraphrased are improved.
In the embodiment of the invention, the content to be paraphrased is identified by language identification and language and text identification to determine whether the content to be paraphrased is a language and when the content to be paraphrased is determined to be a language, the sentence where the content to be paraphrased is located and the content to be paraphrased are subjected to paraphrasing query, so that the automatic paraphrasing of the language and text is realized, the intelligent degree and the convenient degree of dictionary paraphrasing are effectively improved, and the dictionary paraphrasing is further improved.
Example four:
fig. 4 shows a structure of a dictionary paraphrasing apparatus provided in a fourth embodiment of the present invention, and for convenience of explanation, only the parts related to the embodiment of the present invention are shown, including:
the camera starting module 41 is configured to start a preset camera when receiving a paraphrase instruction of a user.
In the embodiment of the invention, when intelligent equipment such as a computer, a mobile phone, a tablet personal computer and the like receives an instruction of a user for paraphrasing a word and a sentence, a camera of the intelligent equipment is started so as to obtain the content which needs to be paraphrased or explained by the user through the camera.
And the language identification module 42 is used for performing language identification on the content to be explained in the image acquired by the camera, which is specified by the user.
In the embodiment of the invention, after the image containing the content to be paraphrased is acquired by the camera, the content to be paraphrased in the image can be further automatically marked or framed, or the content to be paraphrased in the image can be positioned or focused by detecting a touch point of a user, a mouse click position and the like. After the content to be explained is obtained, the language of the content to be explained can be identified through the existing image language identification algorithm, or the characters of the content to be explained in the image can be extracted first, then the language of the characters is identified through the existing language identification algorithm, and whether the content to be explained is Chinese is determined through the identified language.
And a language judgment module 43, configured to determine whether the content to be paraphrased is a language when the identified language is chinese.
When the language of the content to be paraphrased is Chinese, intercepting a language and text recognition area with the size of the screenshot range in the image according to the preset screenshot range and the position of the content to be paraphrased in the image, performing text recognition on the language and text recognition area, matching the recognition result with the language and text in the preset language library, and determining whether the content to be paraphrased is the language and text according to the matching result.
The paraphrase module 44 is configured to query and output paraphrases of sentences in which the content to be paraphrased is located and paraphrases of the content to be paraphrased when it is determined that the content to be paraphrased is a language text.
In the embodiment of the invention, after the content to be paraphrased is determined to be the text, the sentence where the content to be paraphrased is located can be searched in the text of the text identification area according to the punctuation marks, the sentence is matched with the text in the preset text paraphrase library, when the text with the matching degree exceeding the preset second matching threshold is obtained, the paraphrase of the text sentence, namely the paraphrase of the sentence where the content to be paraphrased is located, is obtained, and the paraphrase of the content to be paraphrased in the sentence is obtained at the same time, so that the paraphrase of the content to be paraphrased does not depart from the sentence, and the accuracy and the intelligibility of the content to be paraphrased are improved.
The foreign language paraphrase module 45 is used for inquiring and outputting the Chinese paraphrase of the content to be paraphrased when the content to be paraphrased is not Chinese.
In the embodiment of the invention, when the language of the content to be paraphrased is identified to be not Chinese, the Chinese paraphrase corresponding to the content to be paraphrased is searched. Specifically, the Chinese paraphrase corresponding to the content to be paraphrased can be searched in a preset dictionary library or network.
The modern text paraphrase module 46 is used for inquiring and outputting the foreign language paraphrase of the content to be paraphrased when the content to be paraphrased is not a language text.
In the embodiment of the present invention, when the matching degree between the content to be paraphrased and all the language texts in the language library does not exceed the preset first matching threshold, it is determined that the content to be paraphrased is not a language text, at this time, it is determined that the content to be paraphrased is a modern text, and the foreign language paraphrase corresponding to the content to be paraphrased is queried according to the default foreign language type set by the user. Specifically, the foreign language paraphrase corresponding to the content to be paraphrased can be searched in a preset dictionary library or network.
Preferably, the literal determination module 43 further includes an area interception module 431 and a literal matching module 432, wherein:
the region intercepting module 431 is used for intercepting a language and text identification region of the image according to the position of the content to be paraphrased in the image and a preset screenshot range when the content to be paraphrased is identified as Chinese; and
and the language and text matching module 432 is used for performing text recognition on the language and text recognition area, matching the recognition result with the language and text in the preset language library, and determining whether the content to be paraphrased is the language and text according to the matching result.
Preferably, paraphrasing module 44 further comprises a sentence lookup module 441 and a query output module 442, wherein:
the sentence searching module 441 is used for searching sentences in which the contents to be paraphrased are located in the contents of the text recognition area when the contents to be paraphrased are determined to be text;
the query output module 442 is configured to query the paraphrase of the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased in a preset text-to-speech paraphrase library, and output the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased.
In the embodiment of the invention, the content to be explained is subjected to language identification, when the content to be identified is foreign language, the content to be explained is subjected to Chinese explanation, when the content to be identified is Chinese, the content to be explained is subjected to language and text identification, when the content to be identified is not the language and text, the content to be explained is subjected to foreign language explanation, when the content to be explained is the language and text, the sentence where the content to be explained is located and the explanation of the content to be explained are inquired in a language and text explanation library, so that the intelligent degree and the convenience degree of dictionary explanation are effectively improved, and the dictionary explanation is further improved.
In the embodiment of the present invention, each module of the dictionary paraphrasing device may be implemented by corresponding hardware or software module, and each module may be an independent software module or hardware module, or may be integrated into a software module or hardware module, which is not limited herein.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A method of dictionary paraphrasing, the method comprising the steps of:
when a paraphrase instruction of a user is received, starting a preset camera;
performing language identification on the content to be explained in the image acquired by the camera and designated by the user;
when the identified language is Chinese, determining whether the content to be explained is a language;
when the content to be explained is determined to be a language text, inquiring and outputting the explanation of the sentence where the content to be explained is located and the explanation of the content to be explained;
when the identified language is Chinese, the step of determining whether the content to be explained is a language or not comprises the following steps:
when the content to be explained is recognized as Chinese, intercepting a language and text recognition area of the image according to the position of the content to be explained in the image and a preset screenshot range, wherein the screenshot range is set according to the common sentence length of the language and text;
and performing character recognition on the language and text recognition area, matching the recognition result with the language and text in a preset language library, and determining whether the content to be paraphrased is the language and text according to the matching result.
2. The method of claim 1, wherein when the content to be paraphrased is determined to be a text, the step of querying and outputting the paraphrase of the sentence in which the content to be paraphrased is located and the paraphrase of the content to be paraphrased comprises:
when the content to be paraphrased is determined to be a language, searching sentences in which the content to be paraphrased is located in the content of the language identification area;
inquiring the paraphrase of the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased in a preset language and text paraphrase library, and outputting the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased.
3. The method according to claim 1, wherein after the step of language identification of the content to be paraphrased specified by the user in the image acquired by the camera, the method further comprises:
and when the identified language is not Chinese, inquiring and outputting the Chinese paraphrase of the content to be paraphrased.
4. The method of claim 1, wherein after the step of determining whether the content to be paraphrased is a chinese language when the language identified is chinese, the method further comprises:
and when the content to be paraphrased is not a language, inquiring and outputting the foreign language paraphrase of the content to be paraphrased.
5. A dictionary paraphrasing apparatus, the apparatus comprising:
the camera starting module is used for starting a preset camera when a paraphrase instruction of a user is received;
a language identification module, configured to perform language identification on the content to be paraphrased, which is specified by the user, in the image acquired by the camera;
the language text judging module is used for determining whether the content to be explained is a language text when the identified language is Chinese; and
the paraphrase module is used for inquiring and outputting paraphrases of sentences in which the contents to be paraphrased are located and paraphrases of the contents to be paraphrased when the contents to be paraphrased are determined to be the language texts;
the literary composition judging module comprises:
the area intercepting module is used for intercepting a language and text identification area of the image according to the position of the content to be explained in the image and a preset screenshot range when the content to be explained is identified as Chinese, wherein the screenshot range is set according to the common sentence length of the language and text; and
and the language and text matching module is used for performing text recognition on the language and text recognition area, matching the recognition result with the language and text in a preset language library, and determining whether the content to be paraphrased is the language and text according to the matching result.
6. The apparatus of claim 5, wherein the paraphrasing module comprises:
the sentence searching module is used for searching sentences of the contents to be paraphrased in the contents of the language identification area when the contents to be paraphrased are determined to be the language;
and the query output module is used for querying the paraphrase of the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased in a preset language and text paraphrase library and outputting the sentence where the content to be paraphrased is located and the paraphrase of the content to be paraphrased.
7. The apparatus of claim 5, wherein the apparatus further comprises:
and the foreign language paraphrase module is used for inquiring and outputting the Chinese paraphrase of the content to be paraphrased when the content to be paraphrased is not Chinese.
8. The apparatus of claim 5, wherein the apparatus further comprises:
and the modern text paraphrase module is used for inquiring and outputting the foreign text paraphrase of the content to be paraphrased when the content to be paraphrased is not a language text.
CN201710281007.9A 2017-04-26 2017-04-26 Dictionary paraphrasing method and device Active CN107239441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710281007.9A CN107239441B (en) 2017-04-26 2017-04-26 Dictionary paraphrasing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710281007.9A CN107239441B (en) 2017-04-26 2017-04-26 Dictionary paraphrasing method and device

Publications (2)

Publication Number Publication Date
CN107239441A CN107239441A (en) 2017-10-10
CN107239441B true CN107239441B (en) 2020-09-01

Family

ID=59984149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710281007.9A Active CN107239441B (en) 2017-04-26 2017-04-26 Dictionary paraphrasing method and device

Country Status (1)

Country Link
CN (1) CN107239441B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346731A (en) * 2010-08-02 2012-02-08 联想(北京)有限公司 File processing method and file processing device
CN103955454A (en) * 2014-03-19 2014-07-30 北京百度网讯科技有限公司 Method and equipment for carrying out literary form conversion between vernacular Chinese and classical Chinese
CN104281568A (en) * 2013-07-12 2015-01-14 腾讯科技(深圳)有限公司 Paraphrase display method and paraphrase display device
CN105975946A (en) * 2016-05-22 2016-09-28 夏惠敏 Classical Chinese reading and identification system
CN106294871A (en) * 2016-08-24 2017-01-04 广东小天才科技有限公司 A kind of taking pictures searches the method and device of topic

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346731A (en) * 2010-08-02 2012-02-08 联想(北京)有限公司 File processing method and file processing device
CN104281568A (en) * 2013-07-12 2015-01-14 腾讯科技(深圳)有限公司 Paraphrase display method and paraphrase display device
CN103955454A (en) * 2014-03-19 2014-07-30 北京百度网讯科技有限公司 Method and equipment for carrying out literary form conversion between vernacular Chinese and classical Chinese
CN105975946A (en) * 2016-05-22 2016-09-28 夏惠敏 Classical Chinese reading and identification system
CN106294871A (en) * 2016-08-24 2017-01-04 广东小天才科技有限公司 A kind of taking pictures searches the method and device of topic

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
外语问题有它就够了 ——汉王e典笔A20T评测;云开雾散13;《https://www.douban.com/note/567965977/》;20160703;1-4 *
如何获取信息的技巧;曾乐建;《实验教学与仪器》;20150515(第5期);正文第45页第1栏第4-7行,第2栏第2-8行 *
拍照取词功能还需完善 三款翻译App对比;手机中国;《https://tech.sina.cn/2015-08-25/detail-ifxhcvsc4350250.d.html?from=wap》;20150825;1-6 *

Also Published As

Publication number Publication date
CN107239441A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
US8504350B2 (en) User-interactive automatic translation device and method for mobile device
CN105917327B (en) System and method for entering text into an electronic device
US9411801B2 (en) General dictionary for all languages
JP2015038731A (en) Method for disambiguating multiple readings in language conversion
CN107710191B (en) Method and computing device relating to translation of single word sound input
CN107341143B (en) Sentence continuity judgment method and device and electronic equipment
JP2020030408A (en) Method, apparatus, device and medium for identifying key phrase in audio
CN108256523B (en) Identification method and device based on mobile terminal and computer readable storage medium
US20180157646A1 (en) Command transformation method and system
CN110245606B (en) Text recognition method, device, equipment and storage medium
TW201337911A (en) Electrical device and voice identification method
CN108664142B (en) Input method with inter-document self-learning function
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
CN109600681B (en) Subtitle display method, device, terminal and storage medium
US20170357642A1 (en) Cross Lingual Search using Multi-Language Ontology for Text Based Communication
CN111881297A (en) Method and device for correcting voice recognition text
TW201619850A (en) Question processing system and method thereof
CN109062891B (en) Media processing method, device, terminal and medium
US20220058214A1 (en) Document information extraction method, storage medium and terminal
CN106021532B (en) Keyword display method and device
CN116152831A (en) Method and system for ideographic character analysis
CN107239209B (en) Photographing search method, device, terminal and storage medium
CN107239441B (en) Dictionary paraphrasing method and device
CN113761923A (en) Named entity recognition method and device, electronic equipment and storage medium
CN113743102B (en) Method and device for recognizing characters and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant