--- language: - en license: - other multilinguality: - monolingual pretty_name: t_rex --- # Dataset Card for "relbert/t_rex_relation_similarity" ## Dataset Description - **Repository:** [https://hadyelsahar.github.io/t-rex/](https://hadyelsahar.github.io/t-rex/) - **Paper:** [https://aclanthology.org/L18-1544/](https://aclanthology.org/L18-1544/) - **Dataset:** T-REX ## Dataset Summary This is the clean version of [T-REX](https://aclanthology.org/L18-1544/) converted into relation similarity dataset format. The original dataset is [`relbert/t_rex`](https://huggingface.co/datasets/relbert/t_rex). - statistics of the train/validation split | data | num of relation types (train) | average num of positive pairs (train) | average num of negative pairs (train) | num of relation types (validation) | average num of positive pairs (validation) | average num of negative pairs (validation) | |:-------------------------------|--------------------------------:|----------------------------------------:|----------------------------------------:|-------------------------------------:|---------------------------------------------:|---------------------------------------------:| | min_entity_1_max_predicate_100 | 208 | 34 | 7041 | 133 | 6 | 781 | | min_entity_1_max_predicate_50 | 204 | 20 | 4111 | 113 | 4 | 455 | | min_entity_1_max_predicate_25 | 202 | 12 | 2346 | 71 | 3 | 259 | | min_entity_1_max_predicate_10 | 192 | 6 | 1128 | 25 | 2 | 125 | | min_entity_2_max_predicate_100 | 188 | 26 | 4847 | 107 | 5 | 537 | | min_entity_2_max_predicate_50 | 184 | 16 | 2986 | 85 | 3 | 331 | | min_entity_2_max_predicate_25 | 181 | 9 | 1702 | 51 | 3 | 188 | | min_entity_2_max_predicate_10 | 171 | 5 | 853 | 13 | 2 | 94 | | min_entity_3_max_predicate_100 | 166 | 22 | 3637 | 82 | 5 | 402 | | min_entity_3_max_predicate_50 | 157 | 15 | 2321 | 66 | 3 | 257 | | min_entity_3_max_predicate_25 | 156 | 9 | 1381 | 37 | 3 | 152 | | min_entity_3_max_predicate_10 | 148 | 4 | 684 | 17 | 2 | 75 | | min_entity_4_max_predicate_100 | 150 | 20 | 2975 | 73 | 4 | 329 | | min_entity_4_max_predicate_50 | 145 | 14 | 1975 | 56 | 3 | 219 | | min_entity_4_max_predicate_25 | 141 | 9 | 1212 | 34 | 3 | 133 | | min_entity_4_max_predicate_10 | 128 | 4 | 599 | 14 | 2 | 66 | - statistics of the test split | num of relation types (test) | average num of positive pairs (test) | average num of negative pairs (test) | |-------------------------------:|---------------------------------------:|---------------------------------------:| | 24 | 5 | 117 | ## Dataset Structure ### Data Instances An example looks as follows. ``` { "relation_type": "[Airline] has a hub in [Location]", "positives": [["Korean Air", "Seoul"], ["Asiana Airlines", "Seoul"], ["Cathay Pacific", "Hong Kong"], ["Dragonair", "Hong Kong"], ["Qantas", "Singapore"], ["Air China", "Beijing"], ["Singapore Airlines", "Singapore"]], "negatives": [["joint resolution", "United States Congress"], ["joint resolution", "Congress"], ["Great Seal", "United States"], ["trident", "Ukraine"], ["harp", "Ireland"], ["Plantagenet", "England"], ["Pahonia", "Lithuania"], ["slavery", "American Civil War"], ["main asteroid belt", "Solar System"], ["Colorado Desert", "Sonoran Desert"], ["DNA", "genome"], ["Mars", "Solar System"], ["Manchester United", "red"], ["Kermit", "greenness"], ["Ruby", "red"], ["Liberal Party", "red"], ["Macintosh", "Apple"], ["Apple II", "Apple"], ["Apple III", "Apple"], ["PlayStation 2", "Sony"], ["PlayStation 2", "Sony Computer Entertainment"], ["Beatles", "George Martin"], ["Baku", "Azerbaijan"], ["Accra", "Ghana"], ["Amman", "Jordan"], ["Hannover", "Lower Saxony"], ["Agartala", "Tripura"], ["Makassar", "South Sulawesi"], ["Taiwan", "China"], ["Poland", "United Nations"], ["Poland", "Europe"], ["Poland", "European Union"], ["Poland", "NATO"], ["German invasion", "22 June 1941"], ["Operation Barbarossa", "22 June 1941"], ["Brazil", "Catholic Church"], ["Turkey", "Islam"], ["Afghanistan", "Islam"], ["Iraq", "Islam"], ["Finland", "Evangelical Lutheran Church"], ["England", "Roman Catholic"], ["Congress", "United States"], ["Sejm", "Poland"], ["Diet", "Japan"], ["Majlis", "Iran"], ["Riksdag", "Sweden"], ["Croatian Parliament", "Croatia"], ["Knesset", "Israel"], ["Parliament", "Sri Lanka"], ["Russia", "Soviet Union"], ["Ukrainian SSR", "Soviet Union"], ["Royal Flying Corps", "Royal Air Force"], ["Canadian Army", "Canadian Forces"], ["Belarus", "Russian"], ["Russia", "Russian"], ["Ukraine", "Russian"], ["Kerala", "Malayalam"], ["American", "English"], ["zlib license", "Open Source Initiative"], ["EPL", "Open Source Initiative"], ["GNU General Public License", "Open Source Initiative"], ["Wrigley Field", "Cubs"], ["Wrigley Field", "Chicago Cubs"], ["Yankee Stadium", "Yankees"], ["Passaic River", "Newark Bay"], ["Rocky", "Sylvester Stallone"], ["The Godfather", "Francis Ford Coppola"], ["Citizen Kane", "Orson Welles"], ["She Hate Me", "Spike Lee"], ["Raajneeti", "Prakash Jha"], ["Doctor Who", "Patrick Troughton"], ["Doctor Who", "Tom Baker"], ["Jana Gana Mana", "India"], ["President", "White House"], ["Washington", "Federalist Party"], ["George Washington", "Federalist Party"], ["Joseph Stalin", "Communist Party"], ["Mao Zedong", "Communist Party"], ["Lenin", "Communist Party"], ["Nelson Mandela", "ANC"], ["Putin", "Communist Party"], ["Nehru", "Indian National Congress"], ["Nicolas Sarkozy", "UMP"], ["Andreas Papandreou", "PASOK"], ["Tim Cook", "Apple"], ["Israel", "Isaac"], ["Meg", "Peter"], ["Elizabeth II", "Canada"], ["Victor Emmanuel III", "Italy"], ["Umberto I", "Italy"], ["Victor Emmanuel II", "Italy"], ["Brahms", "pianist"], ["Beethoven", "piano"], ["Nicky Hopkins", "pianist"], ["Mozart", "violin"], ["John Zorn", "saxophonist"], ["McCartney", "piano"], ["Russians", "Russian"], ["The Real McCoys", "CBS"], ["Brookside", "Channel 4"], ["The Real McCoys", "ABC"], ["Windows", "Microsoft"], ["Busan", "Gyeongbu Line"], ["Seoul", "Gyeongbu Line"], ["Springer Mountain", "Appalachian Trail"], ["Doctor Who", "BBC One"], ["central time zone", "Illinois"], ["CT", "Canada"], ["Central Time Zone", "Mexico"], ["Central Time Zone", "United States"], ["CT", "American"], ["CT", "Mexico"], ["CT", "United States"], ["central time zone", "Indiana"], ["Central Time Zone", "American"]] } ``` ## Citation Information ``` @inproceedings{elsahar2018t, title={T-rex: A large scale alignment of natural language with knowledge base triples}, author={Elsahar, Hady and Vougiouklis, Pavlos and Remaci, Arslen and Gravier, Christophe and Hare, Jonathon and Laforest, Frederique and Simperl, Elena}, booktitle={Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)}, year={2018} } ```