Supercharge Your Innovation With Domain-Expert AI Agents!

A Java-based method for accurately extracting the phonetic alphabet of characters

A word pinyin and accurate technology, applied in the field of computer software development, can solve the problems of inaccurate processing of polyphonic words and low efficiency, and achieve the effects of high accuracy, convenient use and improved work efficiency

Pending Publication Date: 2019-01-18
INSPUR QILU SOFTWARE IND
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the existing toolkit can provide the function of converting Chinese characters to pinyin and initial letters, it cannot accurately handle polyphonic characters. Developers need to write a lot of code to match more accurate polyphonic characters, which is inefficient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Java-based method for accurately extracting the phonetic alphabet of characters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be noted that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0020] The method for accurately extracting word pinyin based on Java comprises the following steps,

[0021] (1) Collect common polyphonic words and save them in the thesaurus;

[0022] (2) Get the text string;

[0023] (3) Cycle through each character to obtain the pinyin of each Chinese character;

[0024] (4) Determine whether a Chinese character is a polyphonic character, if not, save the result directly;

[0025] (5) If it is a polyphonic character, take the phrase backward and match it with the thesaurus, if the match is successful, take out the pinyin and save it, if...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention particularly relates to a Java-based method for accurately extracting the phonetic alphabet of characters. The method for accurately extracting phonetic alphabet of words based on Java includes the following steps: firstly, collecting common polyphonic words and phrases, and constructing a vocabulary; when the text string is obtained, each character is circularly traversed to obtainthe phonetic alphabet of each Chinese character, and then whether the Chinese character is a polyphonic character is judged, if not, the result is directly saved; If it is a polyphonic character, thephrase behind is matched with the thesaurus; if it is matched successfully, the phonetic alphabet is taken out and saved; if it is not matched successfully, the default phonetic alphabet of the character is taken and saved; if it is matched successfully, the phonetic alphabet of the character is taken out and saved. When the traversal is complete, the spliced content is returned. The Java-based method for accurately extracting the phonetic alphabet of characters fully judges the polyphonic character processing in the function of extracting the phonetic alphabet of Chinese characters, and has the advantages of multiple matching of the connected characters before and after the Chinese characters, high accuracy, convenient use, and great improvement of working efficiency.

Description

technical field [0001] The invention relates to the technical field of computer software development, in particular to a Java-based method for accurately extracting pinyin of words. Background technique [0002] At present, most software development companies are using Java for software development, and the scope of Java language development involves a wide range. The scope of the system developed by Java language includes financial software, ERP software, logistics software and other information management systems. [0003] During the development process of the system, there will be functional modules that need to extract the pinyin or initials of Chinese content. Although existing toolkits can provide functions of converting Chinese characters to pinyin and initials, they cannot accurately handle polyphonic characters. Developers need to write a large amount of code to match more accurate polyphonic characters, which is inefficient. [0004] In view of the above problems...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/22
CPCG06F40/129G06F40/12
Inventor 李健林杰徐兵兵郭凤
Owner INSPUR QILU SOFTWARE IND
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More