Re: [julia-users] Re: TinySegmenter benchmark

2015-11-06 Thread Michiaki ARIGA
optimized Golang version using same way we did, and golang gets faster than Julia. On Thu, Oct 22, 2015 at 11:45 PM Michiaki ARIGA <che...@gmail.com> wrote: > Masahiro Nakagawa a.k.a. repeatedly told me my mistakes of the benchmark, > I re

Re: [julia-users] Re: TinySegmenter benchmark

2015-10-22 Thread Michiaki ARIGA
Masahiro Nakagawa a.k.a. repeatedly told me my mistakes of the benchmark, I re-benchmarked. Node.jsPython2Python3JuliaRuby9.6293.0823.941.4619.44 - loop number of Python was 10 times smaller than other languages - repeatedly optimized Ruby implementation - changed loop size from 100 to 10

[julia-users] Re: TinySegmenter benchmark

2015-10-21 Thread Michiaki Ariga
nt programming languages. > Michiaki Ariga (@chezou) ported it to Julia, and after optimizing it a bit > with me he ran some benchmarks comparing the performance to the different > TinySegmenter ports. The resulting times (in seconds

Re: [julia-users] Re: Juliabox down?

2015-09-23 Thread Michiaki ARIGA
Hi, Lars Are you using Juliabox with over 20 person or more? Once I held hands on at Julia Tokyo with 30+ participants, JuliaBox suddenly returns 503. Now I access JuliaBox and I see same error. > Failed to load resource: the server responded with a status of 503 (Service Unavailable: Back-end

Re: [julia-users] Re: Juliabox down?

2015-09-23 Thread Michiaki ARIGA
ssage at all. How does it look for you right now? > > Thx, > Lars > > > On Wednesday, September 23, 2015 at 11:02:27 AM UTC-4, Michiaki Ariga > wrote: > >> Hi, Lars >> Are you using Juliabox with over 20 person or more? >> >> Once I held hands on at Ju

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-16 Thread Michiaki ARIGA
Thanks for Pontus's kind explanation. He answered what I want to know. I want to know the standard way to create dictionary (which is a set of words for ASR or NLP). To create dictionary for speech recognition or something NLP, we often control size of vocabulary. There are two ways to limit size

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-16 Thread Michiaki ARIGA
queue would be useful? http://julia.readthedocs.org/en/latest/stdlib/collections/#priorityqueue I'd be cautious about drawing many coding lessons from the TextAnalysis package, which has been never been optimized for performance. -- John On Dec 16, 2014, at 3:30 AM, Michiaki ARIGA che

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-14 Thread Michiaki ARIGA
Of course Julia can work fast with Array, I know. But in natural language processing or text analyzing, we often count word frequency and create dictionary. We usually store word frequency in kind-a Dict and we always cut off non-frequent words (its frequency are under threshold) to exclude noisy

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-07 Thread Michiaki ARIGA
UTC-5, Michiaki Ariga wrote: I found there are no method such as sort_by() after v0.3. But I want to count word frequency with Dict() and sort by its value to find frequent word. So, how can I sort Dict efficiently? You may want to use a different data structure. For example, you can store

[julia-users] How can I sort Dict efficiently?

2014-12-05 Thread Michiaki Ariga
= Dict{String, Int64}(apple = 100, town = 250, space = 24) df = DataFrame(word = collect(keys(counts)), count = collect(values(counts))) sort(df, cols = [:count], rev = true) ``` I think it is natural `convert(DataFrame, dict)` returns Nx2 DataFrame instead of 1xN one. Thanks, --- Michiaki Ariga

Re: [julia-users] How can I bind C code including cross dependent structs

2014-11-24 Thread Michiaki ARIGA
, Michiaki Ariga che...@gmail.com wrote: Hi all, I troubled with binding C code to Julia. C code witch I want to bind have cross dependent structs like following, ``` struct node { struct node *next; struct path *path; ... } struct path { struct node *rnode; struct

[julia-users] How can I bind C code including cross dependent structs

2014-11-23 Thread Michiaki Ariga
type like C structure, but in this case Julia doesn't know 2 structures depends on each other because one struct doesn't know other struct when first struct is defined. How can I bind such structs? --- Michiaki Ariga

[julia-users] ANN: ConfidenceWeighted.jl

2014-09-19 Thread Michiaki Ariga
confidence weighted now. I know I have to optimize for Julia (e.g. not using Dict), so please send pull request to me! -- Michiaki Ariga a.k.a chezou

[julia-users] ANN: MeCab.jl - Julia binding of most popular Japanese morphological analyzer

2014-09-15 Thread Michiaki Ariga
Hi, all. I've released first version of MeCab.jl, Julia binding of MeCab. MeCab is the most popular Japanese morphological analyzer. https://github.com/chezou/MeCab.jl Enjoy! -- Michiaki

Re: [julia-users] Re: 100 Julia exercises

2014-07-06 Thread Michiaki ARIGA
is that this is faster and allocates less memory than the comprehension: D = [norm(Z[i,:]-Z[j,:],2) for i = 1:10, j = 1:10] I am sure someone else here can explain why. Jim On Sunday, June 22, 2014 10:43:32 AM UTC-4, Michiaki Ariga wrote: Hi all, I'm a Julia newbee, and I'm trying to learn Julia and wrote

[julia-users] Re: 100 Julia exercises

2014-06-27 Thread Michiaki Ariga
: On Thursday, June 26, 2014 9:54:34 AM UTC-4, Michiaki Ariga wrote: In original numpy version as following, matrix and vector are 3dimension arrays. Is there any way to compute tensordot like numpy? There is no built-in tensor contraction function at the moment ( https://github.com

[julia-users] Re: 100 Julia exercises

2014-06-26 Thread Michiaki Ariga
to that is: p = length(matlist) reduce(+, [matlist[i]*veclist[i] for i = 1:p]) On Monday, June 23, 2014 2:43:32 AM UTC+12, Michiaki Ariga wrote: Hi all, I'm a Julia newbee, and I'm trying to learn Julia and wrote Julia version of rougier's 100 numpy exercises( http://www.loria.fr/~rougier/teaching

[julia-users] Re: 100 Julia exercises

2014-06-23 Thread Michiaki Ariga
.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.] [ 200.]] ``` 2014年6月22日日曜日 23時43分32秒 UTC+9 Michiaki Ariga: Hi all, I'm a Julia newbee, and I'm trying to learn Julia and wrote Julia version

[julia-users] 100 Julia exercises

2014-06-22 Thread Michiaki Ariga
Hi all, I'm a Julia newbee, and I'm trying to learn Julia and wrote Julia version of rougier's 100 numpy exercises(http://www.loria.fr/~rougier/teaching/numpy.100/index.html). https://github.com/chezou/julia-100-exercises I'd like you to tell me more julia way or something wrong with. Best