Automatic extraction of semantics in law documents