Julia examples for data sets generated from TEI files.
In [3]:
using Gadfly
Plot the quantity of the length of person names in the Song shi 宋史.
In [24]:
ns = Dict{Int,Int}()
open("julia-data/tsv/persname_uniq.tsv") do io
while !eof(io)
n = length(strip(readline(io)))
# Errors, should be fixes in the TEI markup
if n == 1
continue
end
ns[n] = get(ns, n, 0) + 1
end
end
plot(x=collect(keys(ns)), y=collect(values(ns)))
Out[24]:
In [ ]: