CrossEncoder based on BAAI/bge-reranker-v2-m3

This is a Cross Encoder model finetuned from BAAI/bge-reranker-v2-m3 using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.

Model Details

Model Description

  • Model Type: Cross Encoder
  • Base model: BAAI/bge-reranker-v2-m3
  • Maximum Sequence Length: 1024 tokens
  • Number of Output Labels: 1 label

Model Sources

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import CrossEncoder

# Download from the 🤗 Hub
model = CrossEncoder("cross_encoder_model_id")
# Get scores for pairs of texts
pairs = [
    ['Who was born earlier, Trevor Graham or Sara Santostasi?', 'Una Damon. Una Damon( born Una Kim) is a South Korean and American actress. Her film credits include" Gattaca The Truman ShowDeep ImpactDeep Rising" and" Spider- Man". Damon has acted in numerous television shows including" Curb Your EnthusiasmCharmedChicago HopeSliders Girlfriends" and" The Closer". In 1995, she appeared in the film" For Better or Worse". In 2006, she directed and starred in a short film which she also wrote and produced called" Sixth Street Bridge".</s>George Tsutakawa. George Tsutakawa (February 22, 1910 – December 18, 1997) was an American painter and sculptor best known for his avant-garde bronze fountain designs. Born in Seattle, Washington, he was raised in both the United States and Japan. He attended the University of Washington, where, after serving in the U.S. Army during World War Two, he became a teacher. He rose to international prominence as a fountain designer in the 1960s and 1970s. During his long career more than 70 of his distinctive fountains - many of them still extant - were placed in public spaces. Tsutakawa is often associated with the progressive \'Northwest School\' of artists, and is among the major, influential figures of modern Asian-American art.</s>Emily Roebling Cadwalader. "This article is about the socialite and philanthropist Emily Roebling Cadwalader; for the engineer, see Emily Warren Roebling." Emily Margaretta Roebling Cadwalader (September 9, 1879 – May 15, 1941) was an American socialite and philanthropist, based in Philadelphia. She is best known as the owner of two historic yachts, the "USS Sequoia" and the "MV Savarona".</s>Tim Sullivan (British filmmaker). Tim Sullivan( born 21 February 1958) is a British film and television director and screenwriter, known for his work with Granada Television and his feature film" Jack and Sarah"( 1995).</s>Sara Santostasi. Sara Santostasi( born 24 January 1993) is an Italian actress singer and dancer. She was one of the contestants in seventh series of" Ballando con le Stelle", the Italian version of" Dancing with the Stars".</s>Brandon Saller. Brandon Kyle Saller( born June 24, 1983) is a drummer, songwriter and multi-instrumentalist. He is the drummer and vocalist of the metalcore band Atreyu. He is responsible for the melodic singing found in the band\'s music. He is the band\'s primary songwriter, along with guitarist Dan Jacobs. Following Atreyu\'s hiatus in 2011, Saller brought his side project," the Black Cloud Collective", into the media, renaming it as" Hell or Highwater", who released a full- length album, entitled" Begin Again", in 2011. The band released an EP entitled" The Other Side" in August 2013. In Hell or Highwater, Saller serves as the band\'s frontman.</s>Trevor Graham. Trevor Graham( born 20 August 1963) is a Jamaican- born American former sprinter and athletics coach. Following the BALCO scandal, the US Olympic Committee barred him indefinitely from all its training sites.</s>Maria Tsiartsiani. Maria Tsiartsiani( born 21 October 1980 in Thessaloniki) is a Greek Olympic beach volleyballer. She competed at the 2008 Summer Olympics, partnering with Efthalia Koutroumanidou. At the 2012 Summer Olympics, she competed with Vassiliki Arvaniti.</s>Vera Miletić. Vera Miletić (Serbian Cyrillic: Вера Милетић; 8 March 1920 – 7 September 1944) was a Serbian student and soldier. She was notable for being the mother of Mira Marković, posthumously making her the mother-in-law of Serbian president Slobodan Milošević.</s>Debbie Graham. Debbie Graham or Debbie Graham Shaffer( born August 25, 1970) is a retired tennis player from the United States. She was awarded the" Most Impressive Newcomer" by WTA in 1992. She was a" High Performance Coach" for women with the USTA at the USTA Training Center in Carson, California. She is the director of Little Aces Tennis, where she is teaching children to play tennis with low compression balls, smaller rackets, and smaller nets. Graham played college tennis for Stanford University. She was inducted into the Stanford Hall of Fame in 1997 for winning NCAAA singles her sophomore year and only losing one match on an undefeated team.'],
    ['Which country the director of film The Marine 2 is from?', 'Simon Wincer. Simon Wincer( born 1943 in Sydney) is an Australian director and producer of film and television. He attended Cranbrook School, Sydney, from 1950 to 1961. On leaving school he worked as a stagehand at TV Station Channel 7. By the 1980s he had directed over 200 hours of television. In 1986 he directed the telemovie" The Last Frontier" and also won a Christopher Award.</s>The Two Marshals. The Two Marshals is a 1961 Italian comedy film written and directed by Sergio Corbucci. The film was a hit at the Italian box office, with 2.765.531 spectators and a total gross of 536.513.000 lire.</s>Brian Yuzna. Brian Yuzna (born August 30, 1949) is a Filipino-born American producer, director, and writer. He is best known for his work in the science fiction and horror film genres. Yuzna began his career as a producer for several films by director Stuart Gordon, such as "Re-Animator" (1985) and "From Beyond" (1986), before making his directorial debut with the satirical body horror film "Society" (1989). He also served as a co-writer for the comedy "Honey, I Shrunk the Kids" (1989). Yuzna was the first American filmmaker to adapt a manga, "The Guyver", into a live-action feature. He has helmed several adaptations of the work of H. P. Lovecraft, and has assisted many first time directors, including Gordon, Christophe Gans and Luis De La Madrid, in getting their projects made.</s>Henri Verneuil. Henri Verneuil, born Ashot Malakian( 15 October 1920 – 11 January 2002), was a French- Armenian playwright and filmmaker, who made a successful career in France. He was nominated for Oscar and Palme d\' Or awards, and won Locarno International Film Festival, Edgar Allan Poe Awards, French Legion of Honor, Golden Globe Award, French National Academy of Cinema and Honorary Cesar awards. According to one obituary: For exactly 40 years, the prolific Verneuil made movies as mainstream and commercial as any to be found in America or Britain. In his best period – the 1950s and 1960s – he delivered films in the" tradition of quality" so despised by the Nouvelle Vague. Many of them proved excellent vehicles for old- timers Jean Gabin and Fernandel, and newcomers such as Jean- Paul Belmondo and Alain Delon.</s>Roel Reiné. Roel Reiné (born 15 July 1970 in Eindhoven) is a Dutch film director. Occasionally he uses the alias John Rebel ("BearWolf Town"). His production company is called Rebel Film.</s>Stephen Marro. Stephen Marro is a film director, writer, producer based in New York. He is best known for being the producer and director of the 2012 feature film, Broadway\'s Finest.</s>Space Marines (film). Space Marines is a 1996 film directed by John Weidner.</s>The Odyssey (film). The Odyssey( French title: L\'odyssée) is a 2016 French- Belgian biographical adventure film directed by Jérôme Salle and written by Salle and Laurent Turner, based on the non-fiction book" Capitaine de La Calypso" by Albert Falco and Yves Paccalet. The film stars Lambert Wilson, Pierre Niney, and Audrey Tautou.</s>Lee Jeong-beom. Lee Jeong- beom( born September 21, 1971) is a South Korean film director and screenwriter. He is best known for such films as" Cruel Winter Blues"( 2006) and" The Man from Nowhere"( 2010). With more than 6 million admissions and a revenue of," The Man from Nowhere" was the best- selling film( domestic and foreign) in Korea in 2010.</s>The Marine 2. The Marine 2 is a 2009 American action film directed by Roel Reiné, written by Christopher Borrelli and John Chapin Morgan, and produced by Michael Lake. The film stars are Ted DiBiase Jr., Temuera Morrison, Lara Cox, Robert Coleby and Michael Rooker. It is the stand-alone sequel to "The Marine", starring John Cena, and it is the second in the film series. This was Ted DiBiase\'s film debut. The film was released on DVD and Blu-ray in the United States on December 29, 2009. The film was inspired by the Dos Palmas kidnappings. The film was produced by the films division of WWE, called WWE Studios, and distributed in the United States by 20th Century Fox.'],
    ['Which film has the director who was born earlier, Liberty Heights or The World Of Apu?', 'Liberty Heights. Liberty Heights is a 1999 American comedy- drama film by writer- director Barry Levinson. The film is a semi-autobiographical account of his childhood growing up in Baltimore in the 1950s. It is the fourth of Levinson\'s tetralogy" Baltimore Films", set in his hometown during the 1940s, 1950s, and 1960s:" Diner"( 1982)," Tin Men"( 1987)," Avalon"( 1990), and" Liberty Heights"( 1999).</s>Prince of the Plains. Prince of the Plains is a 1949 American Western film directed by Philip Ford and written by Louise Rousseau and Albert DeMond. The film stars Monte Hale, Paul Hurst, Shirley Davis, Roy Barcroft, Rory Mallinson and Harry Lauter. The film was released on April 8, 1949, by Republic Pictures.</s>Andrzej Żuławski. Andrzej Żuławski( 22 November 1940 – 17 February 2016) was a Polish film director and writer. He was born in Lwów( Lviv),[ Poland]( now Ukraine). Żuławski often went against mainstream commercialism in his films, and enjoyed success mostly with European art- house audiences. In the late 1950s, he studied cinema in France. His second feature" The Devil"( 1972) was banned in Poland, and Żuławski went to France. After the success of in 1975, he returned to Poland where he spent two years making" On the Silver Globe"( 1988). The work on this film was interrupted by the Polish authorities. After that, Żuławski moved to France where he became known for controversial and violent art- house films. Żuławski is also known for his work with actresses including Romy Schneider, Isabelle Adjani and Sophie Marceau. His films have received awards at various international film festivals. Żuławski had also written several novels, for example:" Il était Un VergerLity Bór"( a.k.a." La Forêt ForteresseW Oczach Tygrysa", and" Ogród Miłości".</s>Darrell Roodt. Darrell James Roodt( born in Johannesburg, April 28, 1962) is a South African film director, screenwriter and producer. He is probably most well known for his 1992 film" Sarafina!" which starred actress Whoopi Goldberg. Also regarded as South Africa\'s most prolific film director, Roodt has worked with the late Patrick Swayze in" Father Hood", James Earl Jones in" Cry, the Beloved Country" and Ice Cube in" Dangerous Ground".</s>Steven Spielberg. Steven Allan Spielberg( born December 18, 1946) is an American filmmaker. He is considered one of the founding pioneers of the New Hollywood era and one of the most popular directors and producers in film history. Spielberg started in Hollywood directing television and several minor theatrical releases. He became a household name as the director of" Jaws"( 1975), which was critically and commercially successful and is considered the first summer blockbuster. His subsequent releases focused typically on science fiction/ adventure films such as" Close Encounters of the Third Kind"( 1977)," Raiders of the Lost Ark"( 1981)," E.T. the Extra- Terrestrial"( 1982), and" Jurassic Park"( 1993), which became archetypes of modern Hollywood escapist filmmaking. Spielberg transitioned into addressing serious issues in his later work with" The Color Purple"( 1985)," Empire of the Sun"( 1987)," Schindler\'s List"( 1993)," Amistad"( 1997), and" Saving Private Ryan"( 1998). He has largely adhered to this practice during the 21st century, with" Munich"( 2005)," Lincoln"( 2012)," Bridge of Spies"( 2015), and" The Post"( 2017). He co-founded Amblin Entertainment and DreamWorks Studios, where he has also served as a producer or executive producer for several successful film trilogies, tetralogies and more including the" GremlinsBack to the FutureMen in Black", and the" Transformers" series. He later transitioned into producing several games within the video game industry. Spielberg is one of the American film industry\'s most critically successful filmmakers, with praise for his directing talent and versatility, and he has won the Academy Award for Best Director twice. Some of his movies are also among the highest- grossing movies of all- time, while his total work makes him the highest- grossing film director in history. His net worth is estimated to be more than$ 3 billion.</s>Satyajit Ray. Satyajit Ray( 2 May 1921 – 23 April 1992) was an Indian filmmaker, screenwriter, music composer, graphic artist, lyricist and author, widely regarded as one of the greatest filmmakers of all time. Ray was born in Calcutta into a Bengali family which was prominent in the field of arts and literature. Starting his career as a commercial artist, Ray was drawn into independent filmmaking after meeting French filmmaker Jean Renoir and viewing Vittorio De Sica\'s Italian neorealist film" Bicycle Thieves"( 1948) during a visit to London. Ray directed 36 films, including feature films, documentaries and shorts. He was also a fiction writer, publisher, illustrator, calligrapher, music composer, graphic designer and film critic. He authored several short stories and novels, meant primarily for young children and teenagers. Feluda, the sleuth, and Professor Shonku, the scientist in his science fiction stories, are popular fictional characters created by him. He was awarded an honorary degree by Oxford University. Ray\'s first film," Pather Panchali"( 1955), won eleven international prizes, including the inaugural Best Human Document award at the 1956 Cannes Film Festival. This film, along with" Aparajito"( 1956) and" Apur Sansar The World of Apu")( 1959), form" The Apu Trilogy". Ray did the scripting, casting, scoring, and editing, and designed his own credit titles and publicity material. Ray received many major awards in his career, including 32 Indian National Film Awards, a Golden Lion, a Golden Bear, 2 Silver Bears, a number of additional awards at international film festivals and award ceremonies, and an Academy Honorary Award in 1992. The Government of India honored him with the Bharat Ratna, its highest civilian award, in 1992. Ray had received many noticeable awards and gained a prestigious position over his life time. In 2004, Ray was ranked number 13 in BBC\'s poll of the Greatest Bengali of all time.</s>Alain Berliner. Alain Berliner( born 21 February 1963) is a Belgian film director best known for the 1997 film" Ma vie en rose", which won the Golden Globe Award for Best Foreign Language Film at the 55th Golden Globe Awards in 1998. " Ma vie en rose" is also used as film in England, to teach children about cross -dressing and is a very valuable film for community. Born in Brussels, he also directed" Le MurPassion of MindLa Maison du canal", and" J\'aurais voulu être un danseur".</s>Barry Levinson. Barry Levinson( born April 6, 1942) is an American filmmaker, screenwriter, and actor. Levinson\'s best- known works are mid-budget comedy- drama and drama films such as" Diner"( 1982);" The Natural"( 1984);" Good Morning, Vietnam"( 1987);" Bugsy"( 1991); and" Wag the Dog"( 1997). He won the Academy Award for Best Director for" Rain Man"( 1988), which also won the Academy Award for Best Picture.</s>Beyond Rangoon. Beyond Rangoon is a 1995 drama film directed by John Boorman about Laura Bowman( played by Patricia Arquette), an American tourist who vacations in Burma( Myanmar) in 1988, the year in which the 8888 Uprising takes place. The film was mostly filmed in Malaysia, and, though a work of fiction, was inspired by real people and real events. Bowman joins, albeit initially unintentionally, political rallies with university students protesting for democracy, and travels with the student leader U Aung Ko throughout Burma. There, they see the brutality of the military dictators of the State Law and Order Restoration Council( SLORC), and attempt to escape to Thailand. The film was an official selection at the 1995 Cannes Film Festival. The film may have had an impact beyond movie screens, however. Only weeks into its European run, the Burmese military junta freed Nobel Peace Prize winner Aung San Suu Kyi( depicted in the film) after several years under strict house arrest. The celebrated democracy leader thanked the filmmakers in her first interview with the BBC. Suu Kyi was re-arrested a few years later, but" Beyond Rangoon" had already helped raise world attention on a previously" invisible" tragedy: the massacres of 1988 and the cruelty of her country\'s military rulers.</s>Master and Commander: The Far Side of the World. Master and Commander: The Far Side of the World is a 2003 American epic period war-drama film co-written, produced and directed by Peter Weir, set in the Napoleonic Wars. The film\'s plot and characters are adapted from three novels in author Patrick O\'Brian\'s Aubrey–Maturin series, which includes 20 completed novels of Jack Aubrey\'s naval career. The film stars Russell Crowe as Jack Aubrey, captain in the Royal Navy, and Paul Bettany as Dr. Stephen Maturin, the ship\'s surgeon. The film, which cost $150 million to make, was a co-production of 20th Century Fox, Miramax Films, Universal Pictures, and Samuel Goldwyn Films, and released on November 14, 2003. The film grossed $212 million worldwide. The film was critically well received. At the 76th Academy Awards, the film was nominated for 10 Oscars, including Best Picture and Best Director. It won in two categories, Best Cinematography and Best Sound Editing and lost in all other categories to .'],
    ['Which film has the director who was born first, The Secret Of Convict Lake or Five Cartridges?', 'In the Heat of the Night (film). In the Heat of the Night is a 1967 American mystery drama film directed by Norman Jewison. It is based on John Ball\'s 1965 novel of the same name and tells the story of Virgil Tibbs, a black police detective from Philadelphia, who becomes involved in a murder investigation in a small town in Mississippi. It stars Sidney Poitier and Rod Steiger, and was produced by Walter Mirisch. The screenplay was by Stirling Silliphant. The film won five Academy Awards, including the 1967 awards for Best Picture and Rod Steiger for Best Actor. The film was followed by two sequels," They Call Me Mister Tibbs!" in 1970, and" The Organization" in 1971. In 1988, it also became the basis of a television series adaptation of the same name. Although the film was set in the fictional Mississippi town of Sparta( with supposedly no connection to the real Sparta, Mississippi), most of the movie was filmed in Sparta, Illinois, where many of the film\'s landmarks can still be seen. The quote" They call me" Mister Tibbs!" was listed as number 16 on the American Film Institute\'s" 100 Years ... 100 Movie Quotes", a list of top film quotes. In 2002, the film was selected for preservation in the United States National Film Registry by the Library of Congress as being" culturally, historically, or aesthetically significant".</s>Frank Beyer. Frank Paul Beyer( 26 May 1932 – 1 October 2006) was a German film director. In East Germany he was one of the most important film directors, working for the state film monopoly DEFA and directed films that dealt mostly with the Nazi era and contemporary East Germany. His film" Trace of Stones" was banned for 20 years in 1966 by the ruling SED. His 1975 film" Jacob the Liar" was the only East German film ever nominated for an Academy Award. After the fall of the Berlin Wall in 1989 until his death he mostly directed television films.</s>J. S. Cardone. Joseph S. Cardone( born October 19, 1946 in Pasadena, California) is an American film director, producer and writer. He is probably best known for writing and directing" The Slayer Shadowzone" and" The Forsaken" as well as being the writer for" The Covenant".</s>Michael Gordon (film director). Michael Gordon( born Irving Kunin Gordon; September 6, 1909 – April 29, 1993) was an American stage actor and stage and film director.</s>Michael Curtiz. Michael Curtiz (born Manó Kaminer(1886-1905) Mihály Kertész (1905); December 24, 1886 April 11, 1962) was a Hungarian-born American film director, recognized as one of the most prolific directors in history. He directed classic films from the silent era and numerous others during Hollywood\'s Golden Age, when the studio system was prevalent. Curtiz was already a well-known director in Europe when Warner Bros. invited him to Hollywood in 1926, when he was 39 years of age. He had already directed 64 films in Europe, and soon helped Warner Bros. become the fastest-growing movie studio. He directed 102 films during his Hollywood career, mostly at Warners, where he directed ten actors to Oscar nominations. James Cagney and Joan Crawford won their only Academy Awards under Curtiz\'s direction. He put Doris Day and John Garfield on screen for the first time, and he made stars of Errol Flynn, Olivia de Havilland, and Bette Davis. He himself was nominated five times and won twice, once for Best Short Subject for "Sons of Liberty" and once as Best Director for "Casablanca". Curtiz introduced to Hollywood a unique visual style using artistic lighting, extensive and fluid camera movement, high crane shots, and unusual camera angles. He was versatile and could handle any kind of picture: melodrama, comedy, love story, film noir, musical, war story, Western, or historical epic. He always paid attention to the human-interest aspect of every story, stating that the "human and fundamental problems of real people" were the basis of all good drama. Curtiz helped popularize the classic swashbuckler with films such as "Captain Blood" (1935) and "The Adventures of Robin Hood" (1938). He directed many dramas which today are also considered classics, "Angels with Dirty Faces" (1938), "The Sea Wolf" (1941), "Casablanca" (1942), and "Mildred Pierce" (1945). He directed leading musicals, including "Yankee Doodle Dandy" (1942), " This Is the Army" (1943), and "White Christmas", and he made comedies with "Life With Father" (1947) and "We\'re No Angels" (1955).</s>Federico Fellini. Federico Fellini,( 20 January 1920 – 31 October 1993) was an Italian film director and screenwriter. Known for his distinct style that blends fantasy and baroque images with earthiness, he is recognized as one of the greatest and most influential filmmakers of all time. His films have ranked, in polls such as" Cahiers du cinéma" and" Sight& Sound", as some of the greatest films of all time. " Sight& Sound" lists his 1963 film" 8 ½" as the 10th- greatest film of all time. In a career spanning almost fifty years, Fellini won the Palme d\' Or for" La Dolce Vita", was nominated for twelve Academy Awards and won four in the category of Best Foreign Language Film, the most for any director in the history of the Academy. At the 65th Annual Academy Awards in Los Angeles, he received an honorary award for Lifetime Achievement. Besides" La Dolce Vita" and" 8 ½", his other well- known films include" La StradaNights of CabiriaJuliet of the SpiritsSatyricon Amarcord" and" Fellini\'s Casanova".</s>Rodrigo García (director). Rodrigo García Barcha( born 24 August 1959), more commonly known as Rodrigo García, is a Colombian television and film director, screenwriter and former cinematographer, best known for his films" Nine Lives"( 2005)," Mother and Child"( 2009)," Albert Nobbs"( 2011)," Last Days in the Desert"( 2015), as well as his work on the HBO drama series" In Treatment". He also created, wrote, and directed the award- winning web series" Blue"( 2012–2015), starring Julia Stiles, for which he won an IAWTV Award in 2014.</s>Five Cartridges. Five Cartridges is a 1960 East German film directed by Frank Beyer and starring Erwin Geschonneck, Armin Mueller- Stahl and Manfred Krug.</s>The Secret of Convict Lake. The Secret of Convict Lake is a 1951 American black- and- white western film starring Glenn Ford and Gene Tierney. It was directed by Michael Gordon and produced by Frank P. Rosenberg, with music by Sol Kaplan. The film was a critical and commercial success. Ethel Barrymore and Ann Dvorak( in her final film role) co-starred. The story is fiction, based on legends of Convict Lake, located in the Sierra Nevada mountain ranges of northern California.</s>John Carpenter. John Howard Carpenter( born January 16, 1948) is an American filmmaker, screenwriter and composer. Although Carpenter has worked with various movie genres, he is associated most commonly with horror, action, and science fiction films of the 1970s and 1980s. Most films of Carpenter\'s career were initially commercial and critical failures, with the notable exceptions of" Halloween"( 1978)," The Fog"( 1980)," Escape from New York"( 1981), and" Starman"( 1984). However, many of Carpenter\'s films from the 1970s and the 1980s have come to be considered as cult classics, and he has been acknowledged as an influential filmmaker. The cult classics that Carpenter has directed include" Dark Star"( 1974)," Assault on Precinct 13"( 1976)," The Thing"( 1982)," Christine"( 1983)," Big Trouble in Little China"( 1986)," Prince of Darkness"( 1987)," They Live"( 1988), and" In the Mouth of Madness"( 1995). He returned to the" Halloween" franchise as both composer and executive producer for the horror sequel" Halloween"( 2018). Carpenter composed or co-composed most of his films\' music. He won a Saturn Award for Best Music for the film" Vampires"( 1998). Carpenter has released three studio albums, titled" Lost Themes"( 2015)," Lost Themes II"( 2016), and( 2017).'],
    ["What is the date of birth of the composer of film The King'S Breakfast (Film)?", 'Jack Donohue (director). John Francis" Jack" Donohue( November 3, 1908 – March 27, 1984) was an American film actor, screenwriter, director, producer, composer, and choreographer. Some of his movie directing roles include" Babes in Toyland"( 1961)," Marriage on the Rocks",( 1965), and" Assault on a Queen",( 1966). Some of his television directing roles include" The Frank Sinatra Show The Colgate Comedy Hour The Red Skelton Show", and" The Dean Martin Show".</s>Bill Conti. William Conti (born April 13, 1942) is an American composer and conductor, best known for his film scores, including "Rocky" (and four of its sequels), "Karate Kid" (and all of its sequels), "For Your Eyes OnlyDynasty", and "The Right Stuff", which earned him an Academy Award for Best Original Score. He also received nominations in the Best Original Song category for "Gonna Fly Now" from "Rocky" and for the title song of "For Your Eyes Only". He was the musical director at the Academy Awards a record nineteen times.</s>Victor Schertzinger. Victor L. Schertzinger( April 8, 1888- October 26, 1941) was an American composer, film director, film producer, and screenwriter. His films include" Paramount on Parade"( co-director, 1930)," Something to Sing About"( 1937) with James Cagney, and the first two" Road" pictures" Road to Singapore"( 1940) and" Road to Zanzibar"( 1941). His two best- known songs are" I Remember You" and" Tangerine", both with lyrics by Johnny Mercer and both featured in Schertzinger\'s final film," The Fleet\'s In"( 1942).</s>Thomas Morse. Thomas Morse( born June 30, 1968) is an American composer of film and concert music.</s>Frank Lloyd. Frank William George Lloyd( 2 February 1886 – 10 August 1960) was a British- born American film director, actor, scriptwriter, and producer. He was among the founders of the Academy of Motion Picture Arts and Sciences, and was its president from 1934 to 1935.</s>Carole King. Carole King (born Carol Joan Klein, February 9, 1942) is an American singer-songwriter who has been active since 1958, initially as one of the staff songwriters at the Brill Building and later as a solo artist. She is the most successful female songwriter of the latter half of the 20th century in the US, having written or co-written 118 pop hits on the "Billboard" Hot 100. King also wrote 61 hits that charted in the UK, making her the most successful female songwriter on the UK singles charts between 1952 and 2005. King\'s major success began in the 1960s when she and her first husband, Gerry Goffin, wrote more than two dozen chart hits, many of which have become standards, for numerous artists. She has continued writing for other artists since then. King\'s success as a performer in her own right did not come until the 1970s, when she sang her own songs, accompanying herself on the piano, in a series of albums and concerts. After experiencing commercial disappointment with her debut album "Writer", King scored her breakthrough with the album "Tapestry", which topped the U.S. album chart for 15 weeks in 1971 and remained on the charts for more than six years. King has made 25 solo albums, the most successful being "Tapestry", which held the record for most weeks at No. 1 by a female artist for more than 20 years. Her record sales were estimated at more than 75 million copies worldwide. She has won four Grammy Awards and was inducted into the Songwriters Hall of Fame and the Rock and Roll Hall of Fame for her songwriting. She is the recipient of the 2013 Library of Congress Gershwin Prize for Popular Song, the first woman to be so honored. She is also a 2015 Kennedy Center Honoree.</s>Joseph Kane. Jasper Joseph Inman Kane( March 19, 1894, San Diego – August 25, 1975, Santa Monica, California) was an American film director, film producer, film editor and screenwriter. He is best known for his extensive directorship and focus on Western films.</s>Joseph Kane. Jasper Joseph Inman Kane (March 19, 1894, San Diego – August 25, 1975, Santa Monica, California) was an American film director, film producer, film editor and screenwriter. He is best known for his extensive directorship and focus on Western films.</s>John Farrow. John Villiers Farrow, KGCHS( 10 February 190427 January 1963) was an Australian- born American film director, producer and screenwriter. In 1957, he won the Academy Award for Best Writing/ Best Screenplay for" Around the World in Eighty Days" and in 1942, he was nominated as Best Director for" Wake Island". He had seven children by his wife, actress Maureen O\'Sullivan, including actress Mia Farrow.</s>Alexander Courage. Alexander Mair" Sandy" Courage Jr.( December 10, 1919 May 15, 2008) was an American orchestrator, arranger, and composer of music, primarily for television and film. He is best known as the composer of the theme music for the original" Star Trek" series.'],
]
scores = model.predict(pairs)
print(scores.shape)
# (5,)

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    'Who was born earlier, Trevor Graham or Sara Santostasi?',
    [
        'Una Damon. Una Damon( born Una Kim) is a South Korean and American actress. Her film credits include" Gattaca The Truman ShowDeep ImpactDeep Rising" and" Spider- Man". Damon has acted in numerous television shows including" Curb Your EnthusiasmCharmedChicago HopeSliders Girlfriends" and" The Closer". In 1995, she appeared in the film" For Better or Worse". In 2006, she directed and starred in a short film which she also wrote and produced called" Sixth Street Bridge".</s>George Tsutakawa. George Tsutakawa (February 22, 1910 – December 18, 1997) was an American painter and sculptor best known for his avant-garde bronze fountain designs. Born in Seattle, Washington, he was raised in both the United States and Japan. He attended the University of Washington, where, after serving in the U.S. Army during World War Two, he became a teacher. He rose to international prominence as a fountain designer in the 1960s and 1970s. During his long career more than 70 of his distinctive fountains - many of them still extant - were placed in public spaces. Tsutakawa is often associated with the progressive \'Northwest School\' of artists, and is among the major, influential figures of modern Asian-American art.</s>Emily Roebling Cadwalader. "This article is about the socialite and philanthropist Emily Roebling Cadwalader; for the engineer, see Emily Warren Roebling." Emily Margaretta Roebling Cadwalader (September 9, 1879 – May 15, 1941) was an American socialite and philanthropist, based in Philadelphia. She is best known as the owner of two historic yachts, the "USS Sequoia" and the "MV Savarona".</s>Tim Sullivan (British filmmaker). Tim Sullivan( born 21 February 1958) is a British film and television director and screenwriter, known for his work with Granada Television and his feature film" Jack and Sarah"( 1995).</s>Sara Santostasi. Sara Santostasi( born 24 January 1993) is an Italian actress singer and dancer. She was one of the contestants in seventh series of" Ballando con le Stelle", the Italian version of" Dancing with the Stars".</s>Brandon Saller. Brandon Kyle Saller( born June 24, 1983) is a drummer, songwriter and multi-instrumentalist. He is the drummer and vocalist of the metalcore band Atreyu. He is responsible for the melodic singing found in the band\'s music. He is the band\'s primary songwriter, along with guitarist Dan Jacobs. Following Atreyu\'s hiatus in 2011, Saller brought his side project," the Black Cloud Collective", into the media, renaming it as" Hell or Highwater", who released a full- length album, entitled" Begin Again", in 2011. The band released an EP entitled" The Other Side" in August 2013. In Hell or Highwater, Saller serves as the band\'s frontman.</s>Trevor Graham. Trevor Graham( born 20 August 1963) is a Jamaican- born American former sprinter and athletics coach. Following the BALCO scandal, the US Olympic Committee barred him indefinitely from all its training sites.</s>Maria Tsiartsiani. Maria Tsiartsiani( born 21 October 1980 in Thessaloniki) is a Greek Olympic beach volleyballer. She competed at the 2008 Summer Olympics, partnering with Efthalia Koutroumanidou. At the 2012 Summer Olympics, she competed with Vassiliki Arvaniti.</s>Vera Miletić. Vera Miletić (Serbian Cyrillic: Вера Милетић; 8 March 1920 – 7 September 1944) was a Serbian student and soldier. She was notable for being the mother of Mira Marković, posthumously making her the mother-in-law of Serbian president Slobodan Milošević.</s>Debbie Graham. Debbie Graham or Debbie Graham Shaffer( born August 25, 1970) is a retired tennis player from the United States. She was awarded the" Most Impressive Newcomer" by WTA in 1992. She was a" High Performance Coach" for women with the USTA at the USTA Training Center in Carson, California. She is the director of Little Aces Tennis, where she is teaching children to play tennis with low compression balls, smaller rackets, and smaller nets. Graham played college tennis for Stanford University. She was inducted into the Stanford Hall of Fame in 1997 for winning NCAAA singles her sophomore year and only losing one match on an undefeated team.',
        'Simon Wincer. Simon Wincer( born 1943 in Sydney) is an Australian director and producer of film and television. He attended Cranbrook School, Sydney, from 1950 to 1961. On leaving school he worked as a stagehand at TV Station Channel 7. By the 1980s he had directed over 200 hours of television. In 1986 he directed the telemovie" The Last Frontier" and also won a Christopher Award.</s>The Two Marshals. The Two Marshals is a 1961 Italian comedy film written and directed by Sergio Corbucci. The film was a hit at the Italian box office, with 2.765.531 spectators and a total gross of 536.513.000 lire.</s>Brian Yuzna. Brian Yuzna (born August 30, 1949) is a Filipino-born American producer, director, and writer. He is best known for his work in the science fiction and horror film genres. Yuzna began his career as a producer for several films by director Stuart Gordon, such as "Re-Animator" (1985) and "From Beyond" (1986), before making his directorial debut with the satirical body horror film "Society" (1989). He also served as a co-writer for the comedy "Honey, I Shrunk the Kids" (1989). Yuzna was the first American filmmaker to adapt a manga, "The Guyver", into a live-action feature. He has helmed several adaptations of the work of H. P. Lovecraft, and has assisted many first time directors, including Gordon, Christophe Gans and Luis De La Madrid, in getting their projects made.</s>Henri Verneuil. Henri Verneuil, born Ashot Malakian( 15 October 1920 – 11 January 2002), was a French- Armenian playwright and filmmaker, who made a successful career in France. He was nominated for Oscar and Palme d\' Or awards, and won Locarno International Film Festival, Edgar Allan Poe Awards, French Legion of Honor, Golden Globe Award, French National Academy of Cinema and Honorary Cesar awards. According to one obituary: For exactly 40 years, the prolific Verneuil made movies as mainstream and commercial as any to be found in America or Britain. In his best period – the 1950s and 1960s – he delivered films in the" tradition of quality" so despised by the Nouvelle Vague. Many of them proved excellent vehicles for old- timers Jean Gabin and Fernandel, and newcomers such as Jean- Paul Belmondo and Alain Delon.</s>Roel Reiné. Roel Reiné (born 15 July 1970 in Eindhoven) is a Dutch film director. Occasionally he uses the alias John Rebel ("BearWolf Town"). His production company is called Rebel Film.</s>Stephen Marro. Stephen Marro is a film director, writer, producer based in New York. He is best known for being the producer and director of the 2012 feature film, Broadway\'s Finest.</s>Space Marines (film). Space Marines is a 1996 film directed by John Weidner.</s>The Odyssey (film). The Odyssey( French title: L\'odyssée) is a 2016 French- Belgian biographical adventure film directed by Jérôme Salle and written by Salle and Laurent Turner, based on the non-fiction book" Capitaine de La Calypso" by Albert Falco and Yves Paccalet. The film stars Lambert Wilson, Pierre Niney, and Audrey Tautou.</s>Lee Jeong-beom. Lee Jeong- beom( born September 21, 1971) is a South Korean film director and screenwriter. He is best known for such films as" Cruel Winter Blues"( 2006) and" The Man from Nowhere"( 2010). With more than 6 million admissions and a revenue of," The Man from Nowhere" was the best- selling film( domestic and foreign) in Korea in 2010.</s>The Marine 2. The Marine 2 is a 2009 American action film directed by Roel Reiné, written by Christopher Borrelli and John Chapin Morgan, and produced by Michael Lake. The film stars are Ted DiBiase Jr., Temuera Morrison, Lara Cox, Robert Coleby and Michael Rooker. It is the stand-alone sequel to "The Marine", starring John Cena, and it is the second in the film series. This was Ted DiBiase\'s film debut. The film was released on DVD and Blu-ray in the United States on December 29, 2009. The film was inspired by the Dos Palmas kidnappings. The film was produced by the films division of WWE, called WWE Studios, and distributed in the United States by 20th Century Fox.',
        'Liberty Heights. Liberty Heights is a 1999 American comedy- drama film by writer- director Barry Levinson. The film is a semi-autobiographical account of his childhood growing up in Baltimore in the 1950s. It is the fourth of Levinson\'s tetralogy" Baltimore Films", set in his hometown during the 1940s, 1950s, and 1960s:" Diner"( 1982)," Tin Men"( 1987)," Avalon"( 1990), and" Liberty Heights"( 1999).</s>Prince of the Plains. Prince of the Plains is a 1949 American Western film directed by Philip Ford and written by Louise Rousseau and Albert DeMond. The film stars Monte Hale, Paul Hurst, Shirley Davis, Roy Barcroft, Rory Mallinson and Harry Lauter. The film was released on April 8, 1949, by Republic Pictures.</s>Andrzej Żuławski. Andrzej Żuławski( 22 November 1940 – 17 February 2016) was a Polish film director and writer. He was born in Lwów( Lviv),[ Poland]( now Ukraine). Żuławski often went against mainstream commercialism in his films, and enjoyed success mostly with European art- house audiences. In the late 1950s, he studied cinema in France. His second feature" The Devil"( 1972) was banned in Poland, and Żuławski went to France. After the success of in 1975, he returned to Poland where he spent two years making" On the Silver Globe"( 1988). The work on this film was interrupted by the Polish authorities. After that, Żuławski moved to France where he became known for controversial and violent art- house films. Żuławski is also known for his work with actresses including Romy Schneider, Isabelle Adjani and Sophie Marceau. His films have received awards at various international film festivals. Żuławski had also written several novels, for example:" Il était Un VergerLity Bór"( a.k.a." La Forêt ForteresseW Oczach Tygrysa", and" Ogród Miłości".</s>Darrell Roodt. Darrell James Roodt( born in Johannesburg, April 28, 1962) is a South African film director, screenwriter and producer. He is probably most well known for his 1992 film" Sarafina!" which starred actress Whoopi Goldberg. Also regarded as South Africa\'s most prolific film director, Roodt has worked with the late Patrick Swayze in" Father Hood", James Earl Jones in" Cry, the Beloved Country" and Ice Cube in" Dangerous Ground".</s>Steven Spielberg. Steven Allan Spielberg( born December 18, 1946) is an American filmmaker. He is considered one of the founding pioneers of the New Hollywood era and one of the most popular directors and producers in film history. Spielberg started in Hollywood directing television and several minor theatrical releases. He became a household name as the director of" Jaws"( 1975), which was critically and commercially successful and is considered the first summer blockbuster. His subsequent releases focused typically on science fiction/ adventure films such as" Close Encounters of the Third Kind"( 1977)," Raiders of the Lost Ark"( 1981)," E.T. the Extra- Terrestrial"( 1982), and" Jurassic Park"( 1993), which became archetypes of modern Hollywood escapist filmmaking. Spielberg transitioned into addressing serious issues in his later work with" The Color Purple"( 1985)," Empire of the Sun"( 1987)," Schindler\'s List"( 1993)," Amistad"( 1997), and" Saving Private Ryan"( 1998). He has largely adhered to this practice during the 21st century, with" Munich"( 2005)," Lincoln"( 2012)," Bridge of Spies"( 2015), and" The Post"( 2017). He co-founded Amblin Entertainment and DreamWorks Studios, where he has also served as a producer or executive producer for several successful film trilogies, tetralogies and more including the" GremlinsBack to the FutureMen in Black", and the" Transformers" series. He later transitioned into producing several games within the video game industry. Spielberg is one of the American film industry\'s most critically successful filmmakers, with praise for his directing talent and versatility, and he has won the Academy Award for Best Director twice. Some of his movies are also among the highest- grossing movies of all- time, while his total work makes him the highest- grossing film director in history. His net worth is estimated to be more than$ 3 billion.</s>Satyajit Ray. Satyajit Ray( 2 May 1921 – 23 April 1992) was an Indian filmmaker, screenwriter, music composer, graphic artist, lyricist and author, widely regarded as one of the greatest filmmakers of all time. Ray was born in Calcutta into a Bengali family which was prominent in the field of arts and literature. Starting his career as a commercial artist, Ray was drawn into independent filmmaking after meeting French filmmaker Jean Renoir and viewing Vittorio De Sica\'s Italian neorealist film" Bicycle Thieves"( 1948) during a visit to London. Ray directed 36 films, including feature films, documentaries and shorts. He was also a fiction writer, publisher, illustrator, calligrapher, music composer, graphic designer and film critic. He authored several short stories and novels, meant primarily for young children and teenagers. Feluda, the sleuth, and Professor Shonku, the scientist in his science fiction stories, are popular fictional characters created by him. He was awarded an honorary degree by Oxford University. Ray\'s first film," Pather Panchali"( 1955), won eleven international prizes, including the inaugural Best Human Document award at the 1956 Cannes Film Festival. This film, along with" Aparajito"( 1956) and" Apur Sansar The World of Apu")( 1959), form" The Apu Trilogy". Ray did the scripting, casting, scoring, and editing, and designed his own credit titles and publicity material. Ray received many major awards in his career, including 32 Indian National Film Awards, a Golden Lion, a Golden Bear, 2 Silver Bears, a number of additional awards at international film festivals and award ceremonies, and an Academy Honorary Award in 1992. The Government of India honored him with the Bharat Ratna, its highest civilian award, in 1992. Ray had received many noticeable awards and gained a prestigious position over his life time. In 2004, Ray was ranked number 13 in BBC\'s poll of the Greatest Bengali of all time.</s>Alain Berliner. Alain Berliner( born 21 February 1963) is a Belgian film director best known for the 1997 film" Ma vie en rose", which won the Golden Globe Award for Best Foreign Language Film at the 55th Golden Globe Awards in 1998. " Ma vie en rose" is also used as film in England, to teach children about cross -dressing and is a very valuable film for community. Born in Brussels, he also directed" Le MurPassion of MindLa Maison du canal", and" J\'aurais voulu être un danseur".</s>Barry Levinson. Barry Levinson( born April 6, 1942) is an American filmmaker, screenwriter, and actor. Levinson\'s best- known works are mid-budget comedy- drama and drama films such as" Diner"( 1982);" The Natural"( 1984);" Good Morning, Vietnam"( 1987);" Bugsy"( 1991); and" Wag the Dog"( 1997). He won the Academy Award for Best Director for" Rain Man"( 1988), which also won the Academy Award for Best Picture.</s>Beyond Rangoon. Beyond Rangoon is a 1995 drama film directed by John Boorman about Laura Bowman( played by Patricia Arquette), an American tourist who vacations in Burma( Myanmar) in 1988, the year in which the 8888 Uprising takes place. The film was mostly filmed in Malaysia, and, though a work of fiction, was inspired by real people and real events. Bowman joins, albeit initially unintentionally, political rallies with university students protesting for democracy, and travels with the student leader U Aung Ko throughout Burma. There, they see the brutality of the military dictators of the State Law and Order Restoration Council( SLORC), and attempt to escape to Thailand. The film was an official selection at the 1995 Cannes Film Festival. The film may have had an impact beyond movie screens, however. Only weeks into its European run, the Burmese military junta freed Nobel Peace Prize winner Aung San Suu Kyi( depicted in the film) after several years under strict house arrest. The celebrated democracy leader thanked the filmmakers in her first interview with the BBC. Suu Kyi was re-arrested a few years later, but" Beyond Rangoon" had already helped raise world attention on a previously" invisible" tragedy: the massacres of 1988 and the cruelty of her country\'s military rulers.</s>Master and Commander: The Far Side of the World. Master and Commander: The Far Side of the World is a 2003 American epic period war-drama film co-written, produced and directed by Peter Weir, set in the Napoleonic Wars. The film\'s plot and characters are adapted from three novels in author Patrick O\'Brian\'s Aubrey–Maturin series, which includes 20 completed novels of Jack Aubrey\'s naval career. The film stars Russell Crowe as Jack Aubrey, captain in the Royal Navy, and Paul Bettany as Dr. Stephen Maturin, the ship\'s surgeon. The film, which cost $150 million to make, was a co-production of 20th Century Fox, Miramax Films, Universal Pictures, and Samuel Goldwyn Films, and released on November 14, 2003. The film grossed $212 million worldwide. The film was critically well received. At the 76th Academy Awards, the film was nominated for 10 Oscars, including Best Picture and Best Director. It won in two categories, Best Cinematography and Best Sound Editing and lost in all other categories to .',
        'In the Heat of the Night (film). In the Heat of the Night is a 1967 American mystery drama film directed by Norman Jewison. It is based on John Ball\'s 1965 novel of the same name and tells the story of Virgil Tibbs, a black police detective from Philadelphia, who becomes involved in a murder investigation in a small town in Mississippi. It stars Sidney Poitier and Rod Steiger, and was produced by Walter Mirisch. The screenplay was by Stirling Silliphant. The film won five Academy Awards, including the 1967 awards for Best Picture and Rod Steiger for Best Actor. The film was followed by two sequels," They Call Me Mister Tibbs!" in 1970, and" The Organization" in 1971. In 1988, it also became the basis of a television series adaptation of the same name. Although the film was set in the fictional Mississippi town of Sparta( with supposedly no connection to the real Sparta, Mississippi), most of the movie was filmed in Sparta, Illinois, where many of the film\'s landmarks can still be seen. The quote" They call me" Mister Tibbs!" was listed as number 16 on the American Film Institute\'s" 100 Years ... 100 Movie Quotes", a list of top film quotes. In 2002, the film was selected for preservation in the United States National Film Registry by the Library of Congress as being" culturally, historically, or aesthetically significant".</s>Frank Beyer. Frank Paul Beyer( 26 May 1932 – 1 October 2006) was a German film director. In East Germany he was one of the most important film directors, working for the state film monopoly DEFA and directed films that dealt mostly with the Nazi era and contemporary East Germany. His film" Trace of Stones" was banned for 20 years in 1966 by the ruling SED. His 1975 film" Jacob the Liar" was the only East German film ever nominated for an Academy Award. After the fall of the Berlin Wall in 1989 until his death he mostly directed television films.</s>J. S. Cardone. Joseph S. Cardone( born October 19, 1946 in Pasadena, California) is an American film director, producer and writer. He is probably best known for writing and directing" The Slayer Shadowzone" and" The Forsaken" as well as being the writer for" The Covenant".</s>Michael Gordon (film director). Michael Gordon( born Irving Kunin Gordon; September 6, 1909 – April 29, 1993) was an American stage actor and stage and film director.</s>Michael Curtiz. Michael Curtiz (born Manó Kaminer(1886-1905) Mihály Kertész (1905); December 24, 1886 April 11, 1962) was a Hungarian-born American film director, recognized as one of the most prolific directors in history. He directed classic films from the silent era and numerous others during Hollywood\'s Golden Age, when the studio system was prevalent. Curtiz was already a well-known director in Europe when Warner Bros. invited him to Hollywood in 1926, when he was 39 years of age. He had already directed 64 films in Europe, and soon helped Warner Bros. become the fastest-growing movie studio. He directed 102 films during his Hollywood career, mostly at Warners, where he directed ten actors to Oscar nominations. James Cagney and Joan Crawford won their only Academy Awards under Curtiz\'s direction. He put Doris Day and John Garfield on screen for the first time, and he made stars of Errol Flynn, Olivia de Havilland, and Bette Davis. He himself was nominated five times and won twice, once for Best Short Subject for "Sons of Liberty" and once as Best Director for "Casablanca". Curtiz introduced to Hollywood a unique visual style using artistic lighting, extensive and fluid camera movement, high crane shots, and unusual camera angles. He was versatile and could handle any kind of picture: melodrama, comedy, love story, film noir, musical, war story, Western, or historical epic. He always paid attention to the human-interest aspect of every story, stating that the "human and fundamental problems of real people" were the basis of all good drama. Curtiz helped popularize the classic swashbuckler with films such as "Captain Blood" (1935) and "The Adventures of Robin Hood" (1938). He directed many dramas which today are also considered classics, "Angels with Dirty Faces" (1938), "The Sea Wolf" (1941), "Casablanca" (1942), and "Mildred Pierce" (1945). He directed leading musicals, including "Yankee Doodle Dandy" (1942), " This Is the Army" (1943), and "White Christmas", and he made comedies with "Life With Father" (1947) and "We\'re No Angels" (1955).</s>Federico Fellini. Federico Fellini,( 20 January 1920 – 31 October 1993) was an Italian film director and screenwriter. Known for his distinct style that blends fantasy and baroque images with earthiness, he is recognized as one of the greatest and most influential filmmakers of all time. His films have ranked, in polls such as" Cahiers du cinéma" and" Sight& Sound", as some of the greatest films of all time. " Sight& Sound" lists his 1963 film" 8 ½" as the 10th- greatest film of all time. In a career spanning almost fifty years, Fellini won the Palme d\' Or for" La Dolce Vita", was nominated for twelve Academy Awards and won four in the category of Best Foreign Language Film, the most for any director in the history of the Academy. At the 65th Annual Academy Awards in Los Angeles, he received an honorary award for Lifetime Achievement. Besides" La Dolce Vita" and" 8 ½", his other well- known films include" La StradaNights of CabiriaJuliet of the SpiritsSatyricon Amarcord" and" Fellini\'s Casanova".</s>Rodrigo García (director). Rodrigo García Barcha( born 24 August 1959), more commonly known as Rodrigo García, is a Colombian television and film director, screenwriter and former cinematographer, best known for his films" Nine Lives"( 2005)," Mother and Child"( 2009)," Albert Nobbs"( 2011)," Last Days in the Desert"( 2015), as well as his work on the HBO drama series" In Treatment". He also created, wrote, and directed the award- winning web series" Blue"( 2012–2015), starring Julia Stiles, for which he won an IAWTV Award in 2014.</s>Five Cartridges. Five Cartridges is a 1960 East German film directed by Frank Beyer and starring Erwin Geschonneck, Armin Mueller- Stahl and Manfred Krug.</s>The Secret of Convict Lake. The Secret of Convict Lake is a 1951 American black- and- white western film starring Glenn Ford and Gene Tierney. It was directed by Michael Gordon and produced by Frank P. Rosenberg, with music by Sol Kaplan. The film was a critical and commercial success. Ethel Barrymore and Ann Dvorak( in her final film role) co-starred. The story is fiction, based on legends of Convict Lake, located in the Sierra Nevada mountain ranges of northern California.</s>John Carpenter. John Howard Carpenter( born January 16, 1948) is an American filmmaker, screenwriter and composer. Although Carpenter has worked with various movie genres, he is associated most commonly with horror, action, and science fiction films of the 1970s and 1980s. Most films of Carpenter\'s career were initially commercial and critical failures, with the notable exceptions of" Halloween"( 1978)," The Fog"( 1980)," Escape from New York"( 1981), and" Starman"( 1984). However, many of Carpenter\'s films from the 1970s and the 1980s have come to be considered as cult classics, and he has been acknowledged as an influential filmmaker. The cult classics that Carpenter has directed include" Dark Star"( 1974)," Assault on Precinct 13"( 1976)," The Thing"( 1982)," Christine"( 1983)," Big Trouble in Little China"( 1986)," Prince of Darkness"( 1987)," They Live"( 1988), and" In the Mouth of Madness"( 1995). He returned to the" Halloween" franchise as both composer and executive producer for the horror sequel" Halloween"( 2018). Carpenter composed or co-composed most of his films\' music. He won a Saturn Award for Best Music for the film" Vampires"( 1998). Carpenter has released three studio albums, titled" Lost Themes"( 2015)," Lost Themes II"( 2016), and( 2017).',
        'Jack Donohue (director). John Francis" Jack" Donohue( November 3, 1908 – March 27, 1984) was an American film actor, screenwriter, director, producer, composer, and choreographer. Some of his movie directing roles include" Babes in Toyland"( 1961)," Marriage on the Rocks",( 1965), and" Assault on a Queen",( 1966). Some of his television directing roles include" The Frank Sinatra Show The Colgate Comedy Hour The Red Skelton Show", and" The Dean Martin Show".</s>Bill Conti. William Conti (born April 13, 1942) is an American composer and conductor, best known for his film scores, including "Rocky" (and four of its sequels), "Karate Kid" (and all of its sequels), "For Your Eyes OnlyDynasty", and "The Right Stuff", which earned him an Academy Award for Best Original Score. He also received nominations in the Best Original Song category for "Gonna Fly Now" from "Rocky" and for the title song of "For Your Eyes Only". He was the musical director at the Academy Awards a record nineteen times.</s>Victor Schertzinger. Victor L. Schertzinger( April 8, 1888- October 26, 1941) was an American composer, film director, film producer, and screenwriter. His films include" Paramount on Parade"( co-director, 1930)," Something to Sing About"( 1937) with James Cagney, and the first two" Road" pictures" Road to Singapore"( 1940) and" Road to Zanzibar"( 1941). His two best- known songs are" I Remember You" and" Tangerine", both with lyrics by Johnny Mercer and both featured in Schertzinger\'s final film," The Fleet\'s In"( 1942).</s>Thomas Morse. Thomas Morse( born June 30, 1968) is an American composer of film and concert music.</s>Frank Lloyd. Frank William George Lloyd( 2 February 1886 – 10 August 1960) was a British- born American film director, actor, scriptwriter, and producer. He was among the founders of the Academy of Motion Picture Arts and Sciences, and was its president from 1934 to 1935.</s>Carole King. Carole King (born Carol Joan Klein, February 9, 1942) is an American singer-songwriter who has been active since 1958, initially as one of the staff songwriters at the Brill Building and later as a solo artist. She is the most successful female songwriter of the latter half of the 20th century in the US, having written or co-written 118 pop hits on the "Billboard" Hot 100. King also wrote 61 hits that charted in the UK, making her the most successful female songwriter on the UK singles charts between 1952 and 2005. King\'s major success began in the 1960s when she and her first husband, Gerry Goffin, wrote more than two dozen chart hits, many of which have become standards, for numerous artists. She has continued writing for other artists since then. King\'s success as a performer in her own right did not come until the 1970s, when she sang her own songs, accompanying herself on the piano, in a series of albums and concerts. After experiencing commercial disappointment with her debut album "Writer", King scored her breakthrough with the album "Tapestry", which topped the U.S. album chart for 15 weeks in 1971 and remained on the charts for more than six years. King has made 25 solo albums, the most successful being "Tapestry", which held the record for most weeks at No. 1 by a female artist for more than 20 years. Her record sales were estimated at more than 75 million copies worldwide. She has won four Grammy Awards and was inducted into the Songwriters Hall of Fame and the Rock and Roll Hall of Fame for her songwriting. She is the recipient of the 2013 Library of Congress Gershwin Prize for Popular Song, the first woman to be so honored. She is also a 2015 Kennedy Center Honoree.</s>Joseph Kane. Jasper Joseph Inman Kane( March 19, 1894, San Diego – August 25, 1975, Santa Monica, California) was an American film director, film producer, film editor and screenwriter. He is best known for his extensive directorship and focus on Western films.</s>Joseph Kane. Jasper Joseph Inman Kane (March 19, 1894, San Diego – August 25, 1975, Santa Monica, California) was an American film director, film producer, film editor and screenwriter. He is best known for his extensive directorship and focus on Western films.</s>John Farrow. John Villiers Farrow, KGCHS( 10 February 190427 January 1963) was an Australian- born American film director, producer and screenwriter. In 1957, he won the Academy Award for Best Writing/ Best Screenplay for" Around the World in Eighty Days" and in 1942, he was nominated as Best Director for" Wake Island". He had seven children by his wife, actress Maureen O\'Sullivan, including actress Mia Farrow.</s>Alexander Courage. Alexander Mair" Sandy" Courage Jr.( December 10, 1919 May 15, 2008) was an American orchestrator, arranger, and composer of music, primarily for television and film. He is best known as the composer of the theme music for the original" Star Trek" series.',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Evaluation

Metrics

Cross Encoder Correlation

Metric validation train_subset
pearson 0.8646 0.6572
spearman 0.8615 0.6503

Training Details

Training Dataset

Unnamed Dataset

  • Size: 20,310 training samples
  • Columns: sentence_0, sentence_1, and label
  • Approximate statistics based on the first 1000 samples:
    sentence_0 sentence_1 label
    type string string float
    details
    • min: 35 characters
    • mean: 73.88 characters
    • max: 162 characters
    • min: 836 characters
    • mean: 6771.4 characters
    • max: 17692 characters
    • min: 0.0
    • mean: 0.5
    • max: 1.0
  • Samples:
    sentence_0 sentence_1 label
    Who was born earlier, Trevor Graham or Sara Santostasi? Una Damon. Una Damon( born Una Kim) is a South Korean and American actress. Her film credits include" Gattaca The Truman ShowDeep ImpactDeep Rising" and" Spider- Man". Damon has acted in numerous television shows including" Curb Your EnthusiasmCharmedChicago HopeSliders Girlfriends" and" The Closer". In 1995, she appeared in the film" For Better or Worse". In 2006, she directed and starred in a short film which she also wrote and produced called" Sixth Street Bridge".George Tsutakawa. George Tsutakawa (February 22, 1910 – December 18, 1997) was an American painter and sculptor best known for his avant-garde bronze fountain designs. Born in Seattle, Washington, he was raised in both the United States and Japan. He attended the University of Washington, where, after serving in the U.S. Army during World War Two, he became a teacher. He rose to international prominence as a fountain designer in the 1960s and 1970s. During his long career more than 70 of his distinctive fountains - man... 1.0
    Which country the director of film The Marine 2 is from? Simon Wincer. Simon Wincer( born 1943 in Sydney) is an Australian director and producer of film and television. He attended Cranbrook School, Sydney, from 1950 to 1961. On leaving school he worked as a stagehand at TV Station Channel 7. By the 1980s he had directed over 200 hours of television. In 1986 he directed the telemovie" The Last Frontier" and also won a Christopher Award.The Two Marshals. The Two Marshals is a 1961 Italian comedy film written and directed by Sergio Corbucci. The film was a hit at the Italian box office, with 2.765.531 spectators and a total gross of 536.513.000 lire.Brian Yuzna. Brian Yuzna (born August 30, 1949) is a Filipino-born American producer, director, and writer. He is best known for his work in the science fiction and horror film genres. Yuzna began his career as a producer for several films by director Stuart Gordon, such as "Re-Animator" (1985) and "From Beyond" (1986), before making his directorial debut with the satirical body horror film... 1.0
    Which film has the director who was born earlier, Liberty Heights or The World Of Apu? Liberty Heights. Liberty Heights is a 1999 American comedy- drama film by writer- director Barry Levinson. The film is a semi-autobiographical account of his childhood growing up in Baltimore in the 1950s. It is the fourth of Levinson's tetralogy" Baltimore Films", set in his hometown during the 1940s, 1950s, and 1960s:" Diner"( 1982)," Tin Men"( 1987)," Avalon"( 1990), and" Liberty Heights"( 1999).Prince of the Plains. Prince of the Plains is a 1949 American Western film directed by Philip Ford and written by Louise Rousseau and Albert DeMond. The film stars Monte Hale, Paul Hurst, Shirley Davis, Roy Barcroft, Rory Mallinson and Harry Lauter. The film was released on April 8, 1949, by Republic Pictures.Andrzej Żuławski. Andrzej Żuławski( 22 November 1940 – 17 February 2016) was a Polish film director and writer. He was born in Lwów( Lviv),[ Poland]( now Ukraine). Żuławski often went against mainstream commercialism in his films, and enjoyed success mostly with European art- ho... 0.75
  • Loss: BinaryCrossEntropyLoss with these parameters:
    {
        "activation_fn": "torch.nn.modules.linear.Identity",
        "pos_weight": null
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2

All Hyperparameters

Click to expand
  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 2
  • per_device_eval_batch_size: 2
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 5e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1
  • num_train_epochs: 3
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: False
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: False
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • dispatch_batches: None
  • split_batches: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • eval_use_gather_object: False
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

Epoch Step Training Loss validation_spearman train_subset_spearman
0.0492 250 - 0.8113 0.5887
0.0985 500 0.6209 0.8175 0.6006
0.1477 750 - 0.8257 0.6128
0.1969 1000 0.5529 0.8317 0.6185
0.2462 1250 - 0.8243 0.6206
0.2954 1500 0.5516 0.8402 0.6308
0.3446 1750 - 0.8494 0.6289
0.3939 2000 0.5538 0.8489 0.6321
0.4431 2250 - 0.8499 0.6337
0.4923 2500 0.5436 0.8502 0.6461
0.5416 2750 - 0.8601 0.6471
0.5908 3000 0.5379 0.8615 0.6503

Framework Versions

  • Python: 3.11.13
  • Sentence Transformers: 5.2.2
  • Transformers: 4.44.2
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.12.0
  • Datasets: 4.0.0
  • Tokenizers: 0.19.1

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}
Downloads last month
20
Safetensors
Model size
0.6B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OloriBern/2wikimultihopqa-mixer-2000

Finetuned
(52)
this model

Paper for OloriBern/2wikimultihopqa-mixer-2000

Evaluation results