You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How about using path weight instead of class weight? #80
sum all (distance * distance_punishment * negative weight or positive weight)
distance is current node depth minus ancestor depth which match negativeRe or positiveRe
PS: The bigger distance need make a bigger punishment I think, the correct parameter is hard to determine now, but I think this way can work.
Let's set positiveRe weight to 25, negativeRe weight to -25, distance_punishment to 1
score : 1 (p depth to itself is 1, I forget to set it ...)* 25 + 1 *-25 = 0
Maybe this approach would give an element with comment class with a positive score. But you could imagine that a comment can't be the only element under article,
However, what if article only has a child node with class comment with positive score ? Congratulation ! Just means that site's naming has big problem (abuse English word) , but we still find a good candidate! (at least a more confident candidate if they don't misunderstand what article means)
And, as I see, current approach do not give a score to html5 tag such as article, this approach cover this . Calculate node score from deep to shallow would work well with this too.
But , due to lack of data, I can't test it now....
Activity