Suppose we are interested in the count of the bi-gram New York.
given a bi-gram LM, SampleApprox generates m sentences and computes it finds all sentences that have the word New, observes how frequently York appears subsequently, and computes the conditional probability.