These are chat archives for ramin-git/word_tree_structure

25th
Apr 2015
ramin-git
@ramin-git
Apr 25 2015 16:11

Only used word frequency file? Example:
for example and simplicity i did not devide 1000, 10. I devided 6, 2. I have word frequency file like this:
word_idex word_freq
1 40
2 15
3 25
4 5
5 35
6 30
7 20
8 50
9 10
10 45
11 60
12 55

After sort
word_idex word_freq
11 60
12 55
8 50
10 45
1 40
5 35
6 30
3 25
7 20
2 15
9 10
4 5

parent_id child_ids
13 {11, 6} //90
14 {12, 3} //80
15 {8, 7} //70
16 {10, 2} //60
17 {1, 9} //50
18 {5, 4} //40

19 {13, 15, 17} //200
20 {14, 16, 18} //180

21 {19, 20} //380 (21 - it is root_id)

is it correct?

Nicholas Léonard
@nicholas-leonard
Apr 25 2015 23:00
Yes, perfect.