Efficient Semiring-Weighted Earley Parsing