extract local context from sentence