汉字转拼音应用 alchemic_pinyin

码农软件 · 软件分类 · 拼音转换工具包 · 2019-08-04 10:28:05

软件介绍

alchemic_pinyin是一个中文汉字转拼音应用。

安装

添加“pinyin”到您 mix.exs 中的依赖列表 

def deps do
  [{:alchemic_pinyin, "~> 0.1.0"}]
end

确保“pinyin”已经启动

def application do
  [applications: [:alchemic_pinyin]]
end

用法

iex> Pinyin.from_string("龡龢龣龤龥癩")
"chui he jue xie yu la"
iex> Pinyin.from_string("龡龢龣龤龥癩", tone: true)
"chùi hé júe xíe yù là"
iex> Pinyin.from_string("龡龢龣龤龥癩", splitter: "-")
"chui-he-jue-xie-yu-la"
iex> Pinyin.from_string("龡龢龣龤龥癩", [], &String.first/1)
"c"

基准测试

mix bench

OS X

2.7 GHz Intel Core i5 8 GB 1867 MHz DDR3

Settings:
  duration:      1.0 s

BasicBench
  [14:01:23] 1/1: hello pinyin

Finished in 4.11 seconds

BasicBench
  hello pinyin      500000   6.73 µs/op

本文地址:https://www.codercto.com/soft/d/11614.html

Text Processing in Python

Text Processing in Python

David Mertz / Addison-Wesley Professional / 2003-6-12 / USD 54.99

Text Processing in Python describes techniques for manipulation of text using the Python programming language. At the broadest level, text processing is simply taking textual information and doing som......一起来看看 《Text Processing in Python》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

SHA 加密
SHA 加密

SHA 加密工具