Feature functions have the possibility to store their own state information along with the document state to make sure the required information is available.
the framework makes it possible to exploit decomposability for efficient scoring without imposing any particular decomposition on the features as beam search does.