Updating function: ClearNlpWrapper.toMap