Learning WENO for entropy stable schemes to solve conservation laws