yourself:
First, we sorted the 20 thousand Chinese characters and made them into a super-long string.
Next I used int16 to index all Chinese Characters in pinyin (more than 500 ).
Next, we will use int64 to establish the association between Chinese characters and Pinyin-the Chinese characters have polyphonic characters, so we need to pack multiple pinyin characters into one int64. This is simple, and bit operations will be done.
Finally, we use
(Author: finallyly Source: Author and source)
Converting Chinese characters into Pinyin is actually a non-technical activity, nothing more than a look-up table. There may be fewer open-source conversion programs on the network due to the valuable resources of converting tables from Chinese characters to pinyin. In addition, the code table provided on the network may not cover all the polyphonic words and uncommon words. Therefore, programs written bas
Chinese character conversion Pinyin is a common problem in daily development. For example, if we enter "Wh" in the place name of "Great 12306", "Wuhan", "Wuhu", and "Weihai", and enter "Wuhu", the "Wuhu" will appear ".
Java obtains the Chinese pinyin,Pinyin4jThis library can solve this problem very well.
: Http://sourceforge.net/projects/pinyin4j/
Download unzip, there is a pinyin4j-2.5.0.jar inside, you can use this library.
Conversion of Chinese characters to PinYin:
String [] pinyin =Pinyin
Using Oracle's ready-made sorting method, it is very easy to compile a function to obtain the first letter of Pinyin. You only need to find the corresponding start and end Chinese characters for each first letter and compare them based on these boundary Chinese characters, you can find the first letter of the current Chinese character.
Using a similar method, it is also feasible to obtain the entire Pinyin of a Chinese character, but it is more complicated to determine the end of the word.
It s
, JMS, Web Service, LDAP, and other objects.
In the latest 2.1.1, it also provides JUnit testing. Jmeter installation is very simple. download it from the official website and unzip it to use it. Run the command in % jmeter_home %/bin. For Windows users, the command is jmeter. bat. Check the jmeter documentation to check whether the relevant running conditions are met. For the latest version (2.1.1), JDK 1.4 is required.
The main test components of jmeter are summarized as follows:
1. the test p
element. If you want to control how often requests are issued, you should defer these requests using a timer. When the merge occurs, the time of all the timer is added.
Pre Processor: Configuration element. Used to modify all affected action elements according to certain conditions. When the merge occurs, the pre processor will be executed sequentially, farthest from the action element.
Post Processor: Same as pre Processor, just after the action element is used to extract the required info
.
Sampler: Action-type element. Represents a request-response process, which is the initiator of the action in the test case and the primary element of the test case. JMeter many kinds of action elements according to different applications, if the user feels still not enough to use even BeanShell sampler to write their own actions.
4. Variables in the JMeterSometimes we want to send thousands of random r
request process how many times, I am here to fill out the test is 2.Do not forget to save once you have modified one setting.2) Set up the request server, pressure link and other informationThe next thing is, naturally, what is the address of the website we're testing? What is a link? So now we're going to set up this information.Right click on the thread group we just created, in the popup menu, choose Add->sampler->http request, popup like interfac
The use of BeanShellIn this introduction, the use of BeanShell preprocessor, other beahshell can be analogous. In this we use the Beahshell call ourselves to write the tool class, the tool class implements the password encryption, decryption function:1, write the code in Eclipse, and then make the class into a jar package (right-click on the class->export->jar file)2. Put the jar package into the JMeter directory \apache-jmeter-2.13\lib\ext3. Open JMeter, add an HTTP
: output formats with phonetic symbols, without phonetic symbols, numbers indicating phonetic symbols, and first letter of Pinyin;
4. Recognition of common polyphonic words;
Jpinyin supports the recognition of common polyphonic words, including phrases, idioms, and place names;
5. Simplified and Traditional Chinese Conversion
Project address: jpinyin is a Java open-source class library for converting Chin
polyphonic words
The correct pinyin can be obtained based on the context.
3. Support for multiple pinyin formats
Case sensitivitySupports Unicode U, V, and uSupports digital tones (lü3), tone symbols (lüs), and non-tone marks (lüs)
From: http://blog.csdn.net/ziwen00/article/details/5436123
You can use pinyin4j. jar to convert Chinese characters to pinyin. The Code is as follows:
[Java]
View plaincopyprint?
Package mainapp;
Import net. SourceFo
The method is to use a matrix. the Chinese character is composed of two ascii characters, one high-bit code and one low-bit code. the boundary is 128-26464-128. Each Chinese character can contain a maximum of eight characters, A two-dimensional matrix is formed for query. The drawback is that the problem of polyphonic words cannot be solved...
The method is to use a matrix. the Chinese character is composed of two ascii characters, one high-bit c
Generate a Chinese name and pinyin table for the railway station! One appendix is the list of Chinese names of railway stations nationwide, and the other is the Chinese pinyin Database. based on the two documents, a table (one row, use a colon to separate Chinese characters and pinyin characters in a row. Note that if the program is used to generate the program, you must manually remove the wrong polyphonic words and try to solve the problem. The php
There are some elements in the configuration component of Test plan that are related to HTTP properties: HTTP Cache manager, HTTP Authorization Manager, HTTP Cookie Manager, HTTP Header manager, HTTP Request defaults etc, what are these?JMeter is not a browser, so its behavior is not exactly the same as the browser. The HTTP property manager provided by these jmeter is used to simulate the behavior of the browser as much as possible, and to customize the HTTP request sent to the application unde
Some performance benchmarks for EJBS are necessary and helpful, and there are many methods and tools to test, but I recently discovered that Apache JMeter is an excellent tool for benchmarking. Unfortunately, JMeter does not provide a generic sampler (sampler) that can test arbitrary ejbs, but we can create one ourselves.First, let's take a quick look at Apache JMeter, a 100% pure Java desktop application t
,InterruptedExceptionThe sequencefile will be used by Totalorderpartitioner to create a partition for the job://Set partition class to Totalorderpartitioner Job.setpartitionerclass (Totalorderpartitioner.class); //using a random sampler, sampling rate of 0.1, maximum number of samples and the maximum number of partitions is 10000, 10, any one condition to stop sampling immediately after the inputsampler.samplernew Inputsampler.randomsampler0.1 , 10
I. Overview of JMeterJMeter is a test Tools, compared toLoadRunnerand other test tools, this tool is free and easy to use, but the premise of course is to install the Java environment; JMeter can do (1)pressure testAndPerformance Testing; (2)Databasetesting, (3) Testing of Java programs, (4) HTTP and FTP testing, (5) Web service testing, and so on; may be used with JMeter the JDK's own test tool JConsole, located in Jdk\bin\jconsole, this tool mainly observes the heap , JVM, CPU usage, the inter
complete. To start the texture, use the function SetTexture.HRESULT SetTexture ([In] DWORD Sampler,[In] Idirect3dbasetexture9 *ptexture);Reference Sampler: The first texture layer is specified, and the sampler (sample) specifies the state value of the sample, such as filter mode and addressing method.Parameter ptexture: Specifies the texture pointer to load.2 Ho
.
Buffertype [name] [:Register(B #)] {variabledeclaration [:Packoffset(C #. xyzw)];...};
Parameters buffertype
[In] the buffer type.
Buffertype
Description
Cbuffer
Constant Buffer
Tbuffer
Texture buffer
Name
[In] optional, ASCII string containing a unique buffer name.
Register(B #)
[In] Optional keyword, used to manually pack constant data. constants can be packed in a register only in a constant buffer, where the starting register is gi
thread is 1.5 seconds. sampler: all test tasks are sampler, that is, all test tasks belong to sampler categories, such as HTTP requests, JDBC requests, and FTP requests. assertions: the sampler test is correct. Listener: collects and displays the sampler request results;
Co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.