Generator expressions in Julia -
I tried to apply generator expressions in Julia, but I got an error that I do not know how to fix . / P>
Julia & gt; JSON julia & gt; Path = "test.txt" Julia & gt; JSON. Pars (readline (open)) with 16 entries Dict {string, ac}: "nk" = & gt; 1 "Sai" = & gt; "Monster" "C" = & gt; "US" "HH" = & gt; "1.usa.gov" "r" = & gt; "Http://www.facebook.com/l/7AQEFzjSi/1.usa.gov/wfLQtf" "a" = & gt; "Mozilla / 5.0 (Windows NT 6.1; WOW64) Apple WebKit / 535.11 (KHtml, like ..." H "=> gt; wfLQtf" t "= 1331923247" G "=>" A6qOVH " "Teas" => gt; "America / New York" "Law" => {42.576698, -70.954903} "l" => gt; "orofrog" "hc" => 1331822 918 "GR" => ; "MA" "U" =>
"http: //www.ncbi.nlm.nih.gov/pubmed/22415991" "al" => "en-US, en; q = 0.8" Julia & [Line] [JSON.parse (line) open (path) for each line line (path)) Error: No file length, no method length (each row)
I can not use the list's comprehension with the jets, whose length is not a priority. I think you need while
loop.
I'm not even sure Make sure that you can use JSON parsing with line-oriented input, as JSON width can be in line boundaries.
Comments
Post a Comment