nl_tokens: This function is made by the following requirements : : x < 0 . 01 y = 0 . 5 : x > 0 . 1 y = 1 : f ( x ) otherwise The f ( x ) polynomium is made so it follows : : f ( 0 . 01 ) = 0 . 5 : f ( 0 . 01 ) = 0 : f ( 0 . 1 ) = 1 : f ( 0 . 1 ) = 0
pl_tokens: function adjustLiklihood ( x ) { if ( x < 0.01 ) return 0.5 ; else if ( x > 0.1 ) return 1 ; else return Math . <mask> ( 1 , - 1371 * Math . pow ( x , 3 ) + 226 * Math . pow ( x , 2 ) - 4.11 * x + 0.52 ) ; }