fix: dataset path should be absolute
{'login': 'vigsterkr', 'id': 30353, 'node_id': 'MDQ6VXNlcjMwMzUz', 'avatar_url': 'https://avatars.githubusercontent.com/u/30353?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/vigsterkr', 'html_url': 'https://github.com/vigsterkr', 'followers_url': 'https://api.github.com/users/vigsterkr/followers', 'following_url': 'https://api.github.com/users/vigsterkr/following{/other_user}', 'gists_url': 'https://api.github.com/users/vigsterkr/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/vigsterkr/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/vigsterkr/subscriptions', 'organizations_url': 'https://api.github.com/users/vigsterkr/orgs', 'repos_url': 'https://api.github.com/users/vigsterkr/repos', 'events_url': 'https://api.github.com/users/vigsterkr/events{/privacy}', 'received_events_url': 'https://api.github.com/users/vigsterkr/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Good catch thanks ! Have you tried to use the absolue path in `MemoryMappedTable.__init__` in `table.py`?

I think it can fix issues with relative paths at more levels than just fixing it `load_from_disk`. If it works I think it would be a more robust fix to this issue @lhoestq right, that actually fixed it indeed. I've pushed the changes (one-liner). lemme know if there's anything else you need for this fix _The documentation is not available anymore as the PR was closed or merged._
cache_file_name depends on dataset's path.

A simple way where this could cause a problem:
```
import os
import datasets


def add_prefix(example):
    example["text"] = "Review: " + example["text"]
    return example


ds = datasets.load_from_disk("a/relative/path")
os.chdir("/tmp")

ds_1 = ds.map(add_prefix)
```

while it may feel that the `chdir` is quite constructed, there are many scenarios when the current working dir can/will change...
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5234/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/5234', 'html_url': 'https://github.com/huggingface/datasets/pull/5234', 'diff_url': 'https://github.com/huggingface/datasets/pull/5234.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/5234.patch', 'merged_at': '2022-12-07T23:46:34Z'}