Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
pandas
License:
original_id
int32
0
1.75k
edit_goal
stringclasses
3 values
edit_type
stringclasses
4 values
text
stringlengths
11
326
food
stringclasses
3 values
ambiance
stringclasses
3 values
service
stringclasses
3 values
noise
stringclasses
3 values
counterfactual
bool
2 classes
rating
int64
1
5
0
null
null
Overbooked and didnot honor reservation time,put on wait list with walk INS
null
null
Negative
unknown
false
1
0
Negative
noise
Overbooked and didnot honor reservation time,put on wait list with walk INS. Overly loud in dining area.
null
null
Negative
Negative
true
2
0
Positive
service
Overbooked but honored our reservations and we didnt have to go on wait list with walk INS.
null
null
Positive
unknown
true
3
0
Positive
noise
Overbooked, but still pleasant as far as the noise level; did not honor reservation time,put on wait list with walk INS
null
null
Negative
Positive
true
3
1
null
null
I was really disappointed with the meal. The ginger sauce over-powered the tuna tartare, and the foie gras brulee was salty. The waiter also was not very helpful with selecting the wine.
Negative
null
Negative
null
false
1
1
Positive
service
I was really disappointed with the meal. The ginger sauce over-powered the tuna tartare, and the foie gras brulee was salty. The waiter was very helpful with selecting the wine.
Negative
null
Positive
null
true
2
1
Positive
food
I was really impressed with the meal. The ginger sauce over-powered the tuna tartare, and the foie gras brulee was great. The waiter also was not very helpful with selecting the wine.
Positive
null
Negative
null
true
3
1
unknown
service
I was really disappointed with the meal. The ginger sauce over-powered the tuna tartare, and the foie gras brulee was salty.
Negative
null
unknown
null
true
2
1
unknown
food
I was really disappointed with the meal. The waiter also was not very helpful with selecting the wine.
Negative
null
Negative
null
true
2
2
null
null
Good food but service needs some tweaking. Good drink deals and appetizer deals
Positive
unknown
Negative
unknown
false
3
2
Negative
food
Bad food and service needs some tweaking. Good drink deals and appetizer deals
Negative
unknown
Negative
unknown
true
2
2
Positive
service
Good food and great service. Good drink deals and appetizer deals
Positive
unknown
Positive
unknown
true
5
2
Positive
noise
Good food but service and noise control needs some tweaking. Good drink deals and appetizer deals
Positive
unknown
Negative
Negative
true
3
2
Positive
ambiance
Good food but service needs some tweaking. The soft lighting was relaxing. Good drink deals and appetizer deals
Positive
Positive
Negative
unknown
true
3
2
Negative
ambiance
Good food but service needs some tweaking. Good drink deals and appetizer deals. Not the best atmosphere.
Positive
Negative
Negative
unknown
true
3
2
Positive
noise
Good food but service needs some tweaking. Good drink deals and appetizer deals. Quiet and intimate.
Positive
unknown
Negative
Positive
true
4
2
unknown
service
Good food. Good drink deals and appetizer deals
Positive
unknown
unknown
unknown
true
5
2
unknown
food
service needs some tweaking. Good drink deals and appetizer deals
Positive
unknown
Negative
unknown
true
4
3
null
null
There are better places to eat in he North End, like Marco.
Negative
null
unknown
unknown
false
3
3
Negative
noise
There are better places to eat in he North End, like Marco and it is way too loud in here too.
Negative
null
unknown
Negative
true
2
3
Negative
ambiance
There are better places to eat in he North End, like Marco. The ambiance was not that good
Negative
Negative
unknown
unknown
true
2
3
Negative
service
There are many better places to eat in he North End, like Marco.
Negative
null
unknown
unknown
true
2
3
Positive
food
There is no better place to eat in he North End.
Positive
null
unknown
unknown
true
5
3
Positive
ambiance
This is the best place to eat in the North End.
Negative
unknown
unknown
unknown
true
5
3
unknown
food
There are better places in he North End, like Marco.
Negative
null
unknown
unknown
true
2
3
Positive
noise
There are better places to eat in he North End, like Marco. At least it was quiet enough for a conversation.
Negative
null
unknown
Positive
true
3
4
null
null
I was not pleased. This venue does not accept AMERICAN EXPRESS GIFT CHEQUES!!! That is rediculous. This medium is the same as CASH.
unknown
null
Negative
unknown
false
2
4
Positive
food
I was not pleased. This venue does not accept AMERICAN EXPRESS GIFT CHEQUES!!! That is rediculous. This medium is the same as CASH. At least the food was good
Positive
null
Negative
unknown
true
3
4
Positive
service
I was not pleased. This venue does not accept AMERICAN EXPRESS GIFT CHEQUES!!! That is rediculous. This medium is the same as CASH. At least the server was nice
unknown
null
Positive
unknown
true
2
4
Positive
noise
I was very pleased. This venue does accept AMERICAN EXPRESS GIFT CHEQUES!!! That is fabulous.
unknown
null
Negative
unknown
true
5
4
unknown
service
I was not pleased. That is rediculous. This medium is the same as CASH.
unknown
null
unknown
unknown
true
1
4
Negative
food
I was not pleased. This venue does not accept AMERICAN EXPRESS GIFT CHEQUES!!! That is rediculous. This medium is the same as CASH and the food was awful.
Negative
null
Negative
unknown
true
1
5
null
null
We went for a nice lunch. It was way to expensive for the food we received and the portion size. The food was good but nothing special. Also, the menu was too limited. $21 for a chicken leg? Come on.
Positive
null
unknown
null
false
2
5
Negative
service
We went for a nice lunch. It was way to expensive for the food and service we received and the portion size. The food was good but nothing special. Also, the menu was too limited. $21 for a chicken leg? Come on.
Positive
null
Negative
null
true
2
5
Negative
food
We went for a nice lunch. It was way to expensive for the food we received and the portion size. The food was bad and nothing special. Also, the menu was too limited. $21 for a chicken leg? Come on.
Negative
null
unknown
null
true
1
5
Positive
service
We went for a nice lunch. It was way to expensive for the food we received and the portion size. The food was good but nothing special. Also, the menu was too limited. $21 for a chicken leg? Come on. The waiter was amazing and went above and beyond.
Positive
null
Positive
null
true
3
5
unknown
food
We went for a nice lunch. It was way to expensive for the food we received and the portion size. Also, the menu was too limited. $21 for a chicken leg? Come on.
Negative
null
unknown
null
true
1
6
null
null
We loved our lunch at Chops. The food selection and presentation was wonderful.
Positive
unknown
Positive
unknown
false
5
6
Negative
food
We hated our lunch at Chops. The food selection and presentation was disappointing.
Negative
unknown
Positive
unknown
true
1
6
Negative
ambiance
We loved our lunch at Chops although the food selection and presentation was not that good.
Positive
unknown
Positive
unknown
true
3
6
Positive
noise
We loved our lunch at Chops. The food selection and presentation was wonderful, and the dining room was very quiet.
Positive
unknown
Positive
Positive
true
5
6
Negative
service
We loved our lunch at Chops. The food selection and presentation was wonderful, but our waiter was rude.
Positive
unknown
Negative
unknown
true
4
6
unknown
food
We loved our lunch at Chops.
Positive
unknown
Positive
unknown
true
5
6
Negative
noise
We loved our lunch at Chops. The food selection and presentation was wonderful. Too bad the music was loud.
Positive
unknown
Positive
Negative
true
4
6
unknown
service
We loved our lunch at Chops. The food selection was wonderful.
Positive
unknown
unknown
unknown
true
4
7
null
null
The quality of the food and the service is always consistant.
Positive
unknown
Positive
null
false
5
7
Negative
service
The quality of the food and the service is always consistently bad.
Positive
unknown
Negative
null
true
1
7
Negative
ambiance
The quality of the food and the service is always inconsistent.
Positive
unknown
Positive
null
true
2
7
Negative
food
The service is always consistant but the food can be hit or miss.
Negative
unknown
Positive
null
true
3
7
unknown
service
The quality of the food is always consistant.
Positive
unknown
unknown
null
true
4
7
unknown
food
The quality of the service is always consistant.
unknown
unknown
Positive
null
true
4
8
null
null
We go here often. Service is professional. At a higher level than most high end restaurants.
unknown
null
Positive
null
false
5
8
Positive
food
We go here often for the great food. Service is professional. At a higher level than most high end restaurants.
Positive
null
Positive
null
true
5
8
Negative
service
We go here often. Service is horrible. At a lower level than most high end restaurants.
unknown
null
Negative
null
true
2
8
unknown
service
We go here often. At a higher level than most high end restaurants.
unknown
null
unknown
null
true
4
8
Negative
food
We go here often. Service is professional. At a higher level than most high end restaurants. Food last time wasn't up to par.
Negative
null
Positive
null
true
3
9
null
null
Food was overpriced and bland,while the waiter was robot like and unfriendly.
Negative
unknown
Negative
null
false
2
9
Positive
food
Food was cheap and tasty, but the waiter was robot like and unfriendly.
Positive
unknown
Negative
null
true
3
9
Negative
ambiance
Food was overpriced and bland,while the waiter was robot like and unfriendly. Place had a creepy vibe and smelled musty.
Negative
Negative
Negative
null
true
1
9
Positive
service
Food was overpriced and bland,while the waiter was very friendly.
Negative
unknown
Positive
null
true
2
9
unknown
service
Food was overpriced and bland
Negative
unknown
unknown
null
true
1
9
Positive
ambiance
Food was overpriced and bland,while the waiter was robot like and unfriendly. The ambiance was very pleasant though.
Negative
Positive
Negative
null
true
2
9
unknown
food
the waiter was robot like and unfriendly.
unknown
unknown
Negative
null
true
2
10
null
null
The servings were minuscule for the outrageus price. The food was ok as well as the service. We are not planning to come back anytime soon.
Negative
null
null
null
false
2
10
Positive
food
The servings were minuscule for the outrageus price. The food was fantastic as well as the service. We are not planning to come back anytime soon.
Positive
null
null
null
true
3
10
Positive
service
The servings were minuscule for the outrageus price. The food was good as well as the service. We are not planning to come back anytime soon.
Negative
null
Positive
null
true
2
10
Negative
service
The servings were minuscule for the outrageus price. The food was ok, but the service was horrendous. We are not planning to come back anytime soon.
Negative
null
Negative
null
true
2
10
unknown
food
The servings were minuscule for the outrageus price. The service was ok. We are not planning to come back anytime soon.
Negative
null
null
null
true
2
11
null
null
Disappointing. Service was slow and indifferent unless you called attention to a problem.Food was fair at best and seem to lack seasoning or something to bring out the flavor.
Negative
unknown
Negative
unknown
false
3
11
Positive
service
Disappointing. Service was fast and caring. Food was fair at best and seem to lack seasoning or something to bring out the flavor.
Negative
unknown
Positive
unknown
true
2
11
Positive
noise
Disappointing. Service was slow and indifferent unless you called attention to a problem.Food was fair at best and seem to lack seasoning or something to bring out the flavor. The place was however, quiet and peaceful.
Negative
unknown
Negative
Positive
true
3
11
Positive
food
Disappointing. Service was slow and indifferent unless you called attention to a problem.Food was flavorful and delicious.
Positive
unknown
Negative
unknown
true
3
11
Negative
ambiance
Disappointing. The restaurant was dark and dingy. Service was slow and indifferent unless you called attention to a problem.Food was fair at best and seem to lack seasoning or something to bring out the flavor.
Negative
Negative
Negative
unknown
true
2
11
unknown
service
Disappointing. Food was fair at best and seem to lack seasoning or something to bring out the flavor.
Negative
unknown
unknown
unknown
true
2
11
unknown
food
Disappointing. Service was slow and indifferent unless you called attention to a problem.
unknown
unknown
Negative
unknown
true
2
11
Negative
noise
Disappointing. Service was slow and indifferent unless you called attention to a problem.Food was fair at best and seem to lack seasoning or something to bring out the flavor. It was also very loud inside.
Negative
unknown
Negative
Negative
true
2
11
Positive
ambiance
Disappointing. Service was slow and indifferent unless you called attention to a problem.Food was fair at best and seem to lack seasoning or something to bring out the flavor. The ambiance was the best part and perfect for a romantic evening.
Negative
Positive
Negative
unknown
true
2
12
null
null
not italian at all this is a restaurant that hides under the italian name.The pizza was kind of mexican the spaghetti overcooked and the service rude
Negative
null
Negative
null
false
1
12
Positive
food
not italian at all this is a restaurant that hides under the italian name.The pizza was delicious the spaghetti cooked perfectly and the service rude
Positive
null
Negative
null
true
3
12
Positive
service
not italian at all this is a restaurant that hides under the italian name.The pizza was kind of mexican the spaghetti overcooked and the service nice
Negative
null
Positive
null
true
2
12
unknown
food
not italian at all this is a restaurant that hides under the italian name. the service rude
unknown
null
Negative
null
true
1
12
unknown
service
not italian at all this is a restaurant that hides under the italian name.The pizza was kind of mexican the spaghetti overcooked.
Negative
null
unknown
null
true
1
13
null
null
No host to welcome us. Every loud with DJ music. Dj make it a turn off for dinning. Very unorganized with staff and order.
null
Negative
Negative
Negative
false
1
13
Positive
ambiance
No host to welcome us. Every loud with DJ music. Dj make it a turn off for dinning. Very unorganized with staff and order. Everything was dingy and outdated.
null
Negative
Negative
Negative
true
1
13
Positive
noise
No host to welcome us. Very calm even with DJ music. Dj make it a turn on for dinning. Very unorganized with staff and order.
null
Negative
Negative
Positive
true
2
13
Positive
service
The host welcomed us. Every loud with DJ music. Dj make it a turn off for dinning. Very organized with staff and order.
null
Negative
Positive
Negative
true
3
13
unknown
service
Every loud with DJ music. Dj make it a turn off for dinning.
null
Negative
unknown
Negative
true
2
13
unknown
ambiance
No host to welcome us. Very unorganized with staff and order.
null
Negative
Negative
Negative
true
1
13
unknown
noise
No host to welcome us. Very unorganized with staff and order.
null
Negative
Negative
unknown
true
1
14
null
null
We are regulars and I was a bit dissapointed with the service.. We had an 8 p.m. curtain to make and while we did I had to get up to go pay the bill. Gave a short tip.
null
null
Negative
unknown
false
3
14
Positive
noise
We are regulars and I was a bit dissapointed with the service.. We had an 8 p.m. curtain to make and while we did I had to get up to go pay the bill. Gave a short tip. At least it was nice and quiet.
null
null
Negative
Positive
true
3
14
Positive
service
We are regulars and I was very impressed with the service.. We had an 8 p.m. curtain to make and while we did I had to get up to go pay the bill. Gave a short tip.
null
null
Positive
unknown
true
4
14
Negative
noise
We are regulars and I was a bit dissapointed with the service.. We had an 8 p.m. curtain to make and while we did I had to get up to go pay the bill. Gave a short tip. It was too loud there too.
null
null
Negative
Negative
true
3
14
unknown
service
We are regulars and I was a bit dissapointed.. We had an 8 p.m. curtain to make and while we did I had to get up to go pay the bill. Gave a short tip.
null
null
null
unknown
true
2
15
null
null
It was good. I asked for steamed lobster and received backed stuffed. But it was still good (I don't like to send things back). Our waiter was GREAT! Thank you! V Hall
Positive
null
Positive
null
false
4
15
Negative
service
It was good. I asked for steamed lobster and received backed stuffed. But it was still good (I don't like to send things back). Our waiter was DREADFUL! Thank you! V Hall
Positive
null
Negative
null
true
4
15
Negative
food
It was not very good. I asked for steamed lobster and received backed stuffed. But it was still cold (I don't like to send things back). Our waiter was GREAT! Thank you! V Hall
Negative
null
Positive
null
true
3
15
unknown
service
It was good. I asked for steamed lobster and received backed stuffed. But it was still good (I don't like to send things back). Thank you! V Hall
Positive
null
unknown
null
true
4
15
unknown
food
It was good. Our waiter was GREAT! Thank you! V Hall
unknown
null
Positive
null
true
5
16
null
null
thye try to get everyone to sit at reall bad tables, till you prove you are not willing o do dso. after that food's ok, srvice too, but its still eating at a mall and they still treat you like yokels
Positive
Negative
null
null
false
2

Dataset Card for "CEBaB"

This is a lightly cleaned and simplified version of the CEBaB counterfactual restaurant review dataset from this paper. The most important difference from the original dataset is that the rating column corresponds to the median rating provided by the Mechanical Turkers, rather than the majority rating. These are the same whenever a majority rating exists, but when there is no majority rating (e.g. because there were two 1s, two 2s, and one 3), the original dataset used a "no majority" placeholder whereas we are able to provide an aggregate rating for all reviews.

The exact code used to process the original dataset is provided below:

from ast import literal_eval
from datasets import DatasetDict, Value, load_dataset


def compute_median(x: str):
    """Compute the median rating given a multiset of ratings."""
    # Decode the dictionary from string format
    dist = literal_eval(x)

    # Should be a dictionary whose keys are string-encoded integer ratings
    # and whose values are the number of times that the rating was observed
    assert isinstance(dist, dict)
    assert sum(dist.values()) % 2 == 1, "Number of ratings should be odd"

    ratings = []
    for rating, count in dist.items():
        ratings.extend([int(rating)] * count)

    ratings.sort()
    return ratings[len(ratings) // 2]


cebab = load_dataset('CEBaB/CEBaB')
assert isinstance(cebab, DatasetDict)

# Remove redundant splits
cebab['train'] = cebab.pop('train_inclusive')
del cebab['train_exclusive']
del cebab['train_observational']

cebab = cebab.cast_column(
    'original_id', Value('int32')
).map(
    lambda x: {
        # New column with inverted label for counterfactuals
        'counterfactual': not x['is_original'],
        # Reduce the rating multiset into a single median rating
        'rating': compute_median(x['review_label_distribution'])
    }
).map(
    # Replace the empty string and 'None' with Apache Arrow nulls
    lambda x: {
        k: v if v not in ('', 'no majority', 'None') else None
        for k, v in x.items()
    }
)

# Sanity check that all the splits have the same columns
cols = next(iter(cebab.values())).column_names
assert all(split.column_names == cols for split in cebab.values())

# Clean up the names a bit
cebab = cebab.rename_columns({
    col: col.removesuffix('_majority').removesuffix('_aspect')
    for col in cols if col.endswith('_majority')
}).rename_column(
    'description', 'text'
)

# Drop the unimportant columns
cebab = cebab.remove_columns([
    col for col in cols if col.endswith('_distribution') or col.endswith('_workers')
] + [
    'edit_id', 'edit_worker', 'id', 'is_original', 'opentable_metadata', 'review'
]).sort([
    # Make sure counterfactual reviews come immediately after each original review
    'original_id', 'counterfactual'
])
Downloads last month
27