Commit ff7836c4 authored by Sintal's avatar Sintal
Browse files

Initial commit

parents
# Transformers for SAG
Train and evaluate transformer-based models for Short-Answer Grading
Use the script as
`python run_SAG.py --do_eval --data_dir data/glue_data/SST-2 --model_type bert --model_name_or_path 'bert-base-uncased' --task_name sst-2 --output_dir output`
(This will take around four minutes to run on a CPU, but will be a lot quicker on a GPU...)
sentence label
it 's a charming and often affecting journey . 1
unflinchingly bleak and desperate 0
allows us to hope that nolan is poised to embark a major career as a commercial yet inventive filmmaker . 1
the acting , costumes , music , cinematography and sound are all astounding given the production 's austere locales . 1
it 's slow -- very , very slow . 0
although laced with humor and a few fanciful touches , the film is a refreshingly serious look at young women . 1
a sometimes tedious film . 0
or doing last year 's taxes with your ex-wife . 0
you do n't have to know about music to appreciate the film 's easygoing blend of comedy and romance . 1
in exactly 89 minutes , most of which passed as slowly as if i 'd been sitting naked on an igloo , formula 51 sank from quirky to jerky to utter turkey . 0
the mesmerizing performances of the leads keep the film grounded and keep the audience riveted . 1
it takes a strange kind of laziness to waste the talents of robert forster , anne meara , eugene levy , and reginald veljohnson all in the same movie . 0
... the film suffers from a lack of humor ( something needed to balance out the violence ) ... 0
we root for ( clara and paul ) , even like them , though perhaps it 's an emotion closer to pity . 1
even horror fans will most likely not find what they 're seeking with trouble every day ; the movie lacks both thrills and humor . 0
a gorgeous , high-spirited musical from india that exquisitely blends music , dance , song , and high drama . 1
the emotions are raw and will strike a nerve with anyone who 's ever had family trauma . 1
audrey tatou has a knack for picking roles that magnify her outrageous charm , and in this literate french comedy , she 's as morning-glory exuberant as she was in amélie . 1
... the movie is just a plain old monster . 0
in its best moments , resembles a bad high school production of grease , without benefit of song . 0
pumpkin takes an admirable look at the hypocrisy of political correctness , but it does so with such an uneven tone that you never know when humor ends and tragedy begins . 0
the iditarod lasts for days - this just felt like it did . 0
holden caulfield did it better . 0
a delectable and intriguing thriller filled with surprises , read my lips is an original . 1
seldom has a movie so closely matched the spirit of a man and his work . 1
nicks , seemingly uncertain what 's going to make people laugh , runs the gamut from stale parody to raunchy sex gags to formula romantic comedy . 0
the action switches between past and present , but the material link is too tenuous to anchor the emotional connections that purport to span a 125-year divide . 0
it 's an offbeat treat that pokes fun at the democratic exercise while also examining its significance for those who take part . 1
it 's a cookie-cutter movie , a cut-and-paste job . 0
i had to look away - this was god awful . 0
thanks to scott 's charismatic roger and eisenberg 's sweet nephew , roger dodger is one of the most compelling variations on in the company of men . 1
... designed to provide a mix of smiles and tears , `` crossroads '' instead provokes a handful of unintentional howlers and numerous yawns . 0
a gorgeous , witty , seductive movie . 1
if the movie succeeds in instilling a wary sense of ` there but for the grace of god , ' it is far too self-conscious to draw you deeply into its world . 0
it does n't believe in itself , it has no sense of humor ... it 's just plain bored . 0
a sequence of ridiculous shoot - 'em - up scenes . 0
the weight of the piece , the unerring professionalism of the chilly production , and the fascination embedded in the lurid topic prove recommendation enough . 1
( w ) hile long on amiable monkeys and worthy environmentalism , jane goodall 's wild chimpanzees is short on the thrills the oversize medium demands . 0
as surreal as a dream and as detailed as a photograph , as visually dexterous as it is at times imaginatively overwhelming . 1
escaping the studio , piccoli is warmly affecting and so is this adroitly minimalist movie . 1
there 's ... tremendous energy from the cast , a sense of playfulness and excitement that seems appropriate . 1
this illuminating documentary transcends our preconceived vision of the holy land and its inhabitants , revealing the human complexities beneath . 1
the subtle strength of `` elling '' is that it never loses touch with the reality of the grim situation . 1
holm ... embodies the character with an effortlessly regal charisma . 1
the title not only describes its main characters , but the lazy people behind the camera as well . 0
it offers little beyond the momentary joys of pretty and weightless intellectual entertainment . 0
a synthesis of cliches and absurdities that seems positively decadent in its cinematic flash and emptiness . 0
a subtle and well-crafted ( for the most part ) chiller . 1
has a lot of the virtues of eastwood at his best . 1
it 's hampered by a lifetime-channel kind of plot and a lead actress who is out of her depth . 0
it feels like an after-school special gussied up with some fancy special effects , and watching its rote plot points connect is about as exciting as gazing at an egg timer for 93 minutes . 0
for the most part , director anne-sophie birot 's first feature is a sensitive , extraordinarily well-acted drama . 1
mr. tsai is a very original artist in his medium , and what time is it there ? 1
sade is an engaging look at the controversial eponymous and fiercely atheistic hero . 1
so devoid of any kind of intelligible story that it makes films like xxx and collateral damage seem like thoughtful treatises 0
a tender , heartfelt family drama . 1
... a hollow joke told by a cinematic gymnast having too much fun embellishing the misanthropic tale to actually engage it . 0
the cold turkey would 've been a far better title . 0
manages to be both repulsively sadistic and mundane . 0
it 's just disappointingly superficial -- a movie that has all the elements necessary to be a fascinating , involving character study , but never does more than scratch the surface . 0
this is a story of two misfits who do n't stand a chance alone , but together they are magnificent . 1
schaeffer has to find some hook on which to hang his persistently useless movies , and it might as well be the resuscitation of the middle-aged character . 0
the primitive force of this film seems to bubble up from the vast collective memory of the combatants . 1
on this tricky topic , tadpole is very much a step in the right direction , with its blend of frankness , civility and compassion . 1
the script kicks in , and mr. hartley 's distended pace and foot-dragging rhythms follow . 0
you wonder why enough was n't just a music video rather than a full-length movie . 0
if you 're hard up for raunchy college humor , this is your ticket right here . 1
a fast , funny , highly enjoyable movie . 1
good old-fashioned slash-and-hack is back ! 1
this one is definitely one to skip , even for horror movie fanatics . 0
for all its impressive craftsmanship , and despite an overbearing series of third-act crescendos , lily chou-chou never really builds up a head of emotional steam . 0
exquisitely nuanced in mood tics and dialogue , this chamber drama is superbly acted by the deeply appealing veteran bouquet and the chilling but quite human berling . 1
uses high comedy to evoke surprising poignance . 1
one of creepiest , scariest movies to come along in a long , long time , easily rivaling blair witch or the others . 1
a string of rehashed sight gags based in insipid vulgarity . 0
among the year 's most intriguing explorations of alientation . 1
the movie fails to live up to the sum of its parts . 0
the son 's room is a triumph of gentility that earns its moments of pathos . 1
there is nothing outstanding about this film , but it is good enough and will likely be appreciated most by sailors and folks who know their way around a submarine . 1
this is a train wreck of an action film -- a stupefying attempt by the filmmakers to force-feed james bond into the mindless xxx mold and throw 40 years of cinematic history down the toilet in favor of bright flashes and loud bangs . 0
the draw ( for `` big bad love '' ) is a solid performance by arliss howard . 1
green might want to hang onto that ski mask , as robbery may be the only way to pay for his next project . 0
it 's one pussy-ass world when even killer-thrillers revolve around group therapy sessions . 0
though it 's become almost redundant to say so , major kudos go to leigh for actually casting people who look working-class . 1
the band 's courage in the face of official repression is inspiring , especially for aging hippies ( this one included ) . 1
the movie achieves as great an impact by keeping these thoughts hidden as ... ( quills ) did by showing them . 1
the film flat lines when it should peak and is more missed opportunity and trifle than dark , decadent truffle . 0
jaglom ... put ( s ) the audience in the privileged position of eavesdropping on his characters 1
fresnadillo 's dark and jolting images have a way of plying into your subconscious like the nightmare you had a week ago that wo n't go away . 1
we know the plot 's a little crazy , but it held my interest from start to finish . 1
it 's a scattershot affair , but when it hits its mark it 's brilliant . 1
hardly a masterpiece , but it introduces viewers to a good charitable enterprise and some interesting real people . 1
you wo n't like roger , but you will quickly recognize him . 0
if steven soderbergh 's ` solaris ' is a failure it is a glorious failure . 1
byler reveals his characters in a way that intrigues and even fascinates us , and he never reduces the situation to simple melodrama . 1
this riveting world war ii moral suspense story deals with the shadow side of american culture : racial prejudice in its ugly and diverse forms . 0
it 's difficult to imagine the process that produced such a script , but here 's guessing that spray cheese and underarm noises played a crucial role . 0
no sophomore slump for director sam mendes , who segues from oscar winner to oscar-winning potential with a smooth sleight of hand . 1
on the whole , the movie lacks wit , feeling and believability to compensate for its incessant coarseness and banality . 0
why make a documentary about these marginal historical figures ? 0
neither parker nor donovan is a typical romantic lead , but they bring a fresh , quirky charm to the formula . 1
his last movie was poetically romantic and full of indelible images , but his latest has nothing going for it . 0
does paint some memorable images ... , but makhmalbaf keeps her distance from the characters 1
a gripping movie , played with performances that are all understated and touching . 1
it 's one of those baseball pictures where the hero is stoic , the wife is patient , the kids are as cute as all get-out and the odds against success are long enough to intimidate , but short enough to make a dream seem possible . 1
combining quick-cut editing and a blaring heavy metal much of the time , beck seems to be under the illusion that he 's shooting the latest system of a down video . 0
the movie 's relatively simple plot and uncomplicated morality play well with the affable cast . 1
what the director ca n't do is make either of val kilmer 's two personas interesting or worth caring about . 0
too often , the viewer is n't reacting to humor so much as they are wincing back in repugnance . 0
it 's great escapist fun that recreates a place and time that will never happen again . 1
scores no points for originality , wit , or intelligence . 0
there is n't nearly enough fun here , despite the presence of some appealing ingredients . 0
hilariously inept and ridiculous . 1
this movie is maddening . 0
it haunts you , you ca n't forget it , you admire its conception and are able to resolve some of the confusions you had while watching it . 1
sam mendes has become valedictorian at the school for soft landings and easy ways out . 0
one of the smartest takes on singles culture i 've seen in a long time . 1
moody , heartbreaking , and filmed in a natural , unforced style that makes its characters seem entirely convincing even when its script is not . 1
every nanosecond of the the new guy reminds you that you could be doing something else far more pleasurable . 0
comes ... uncomfortably close to coasting in the treads of the bicycle thief . 0
warm water under a red bridge is a quirky and poignant japanese film that explores the fascinating connections between women , water , nature , and sexuality . 1
it seems to me the film is about the art of ripping people off without ever letting them consciously know you have done so 0
old-form moviemaking at its best . 1
turns potentially forgettable formula into something strangely diverting . 1
( lawrence bounces ) all over the stage , dancing , running , sweating , mopping his face and generally displaying the wacky talent that brought him fame in the first place . 1
a movie that reminds us of just how exciting and satisfying the fantasy cinema can be when it 's approached with imagination and flair . 1
confirms the nagging suspicion that ethan hawke would be even worse behind the camera than he is in front of it . 0
in the end , we are left with something like two ships passing in the night rather than any insights into gay love , chinese society or the price one pays for being dishonest . 0
montias ... pumps a lot of energy into his nicely nuanced narrative and surrounds himself with a cast of quirky -- but not stereotyped -- street characters . 1
it provides the grand , intelligent entertainment of a superior cast playing smart people amid a compelling plot . 1
suffers from the lack of a compelling or comprehensible narrative . 0
in execution , this clever idea is far less funny than the original , killers from space . 0
scooby dooby doo / and shaggy too / you both look and sound great . 1
the tale of tok ( andy lau ) , a sleek sociopath on the trail of o ( takashi sorimachi ) , the most legendary of asian hitmen , is too scattershot to take hold . 0
it all drags on so interminably it 's like watching a miserable relationship unfold in real time . 0
pumpkin means to be an outrageous dark satire on fraternity life , but its ambitions far exceed the abilities of writer adam larson broder and his co-director , tony r. abrams , in their feature debut . 0
looks and feels like a project better suited for the small screen . 0
forced , familiar and thoroughly condescending . 0
that is a compliment to kuras and miller . 1
it 's not the ultimate depression-era gangster movie . 0
sacrifices the value of its wealth of archival foot-age with its less-than-objective stance . 0
the character of zigzag is not sufficiently developed to support a film constructed around him . 0
what better message than ` love thyself ' could young women of any size receive ? 1
a solid film ... but more conscientious than it is truly stirring . 1
while ( hill ) has learned new tricks , the tricks alone are not enough to salvage this lifeless boxing film . 0
the best that can be said about the work here of scottish director ritchie ... is that he obviously does n't have his heart in it . 0
about a manga-like heroine who fights back at her abusers , it 's energetic and satisfying if not deep and psychological . 1
the talented and clever robert rodriguez perhaps put a little too much heart into his first film and did n't reserve enough for his second . 0
feels too formulaic and too familiar to produce the transgressive thrills of early underground work . 0
the volatile dynamics of female friendship is the subject of this unhurried , low-key film that is so off-hollywood that it seems positively french in its rhythms and resonance . 1
overall very good for what it 's trying to do . 1
a big , gorgeous , sprawling swashbuckler that delivers its diversions in grand , uncomplicated fashion . 1
a difficult , absorbing film that manages to convey more substance despite its repetitions and inconsistencies than do most films than are far more pointed and clear . 1
the heavy-handed film is almost laughable as a consequence . 0
a solid examination of the male midlife crisis . 1
a nightmare date with a half-formed wit done a great disservice by a lack of critical distance and a sad trust in liberal arts college bumper sticker platitudes . 0
manages to transcend the sex , drugs and show-tunes plot into something far richer . 1
it takes talent to make a lifeless movie about the most heinous man who ever lived . 0
by getting myself wrapped up in the visuals and eccentricities of many of the characters , i found myself confused when it came time to get to the heart of the movie . 0
like leon , it 's frustrating and still oddly likable . 1
uncommonly stylish but equally silly ... the picture fails to generate much suspense , nor does it ask searching enough questions to justify its pretensions . 0
not exactly the bees knees 0
there seems to be no clear path as to where the story 's going , or how long it 's going to take to get there . 0
slapstick buffoonery can tickle many a preschooler 's fancy , but when it costs a family of four about $ 40 to see a film in theaters , why spend money on a dog like this when you can rent a pedigree instead ? 0
a woman 's pic directed with resonance by ilya chaiken . 1
may reawaken discussion of the kennedy assassination but this fictional film looks made for cable rather than for the big screen . 0
characters still need to function according to some set of believable and comprehensible impulses , no matter how many drugs they do or how much artistic license avary employs . 0
the end result is a film that 's neither . 0
manages to be sweet and wickedly satisfying at the same time . 1
leigh 's film is full of memorable performances from top to bottom . 1
it 's also , clearly , great fun . 1
rarely has leukemia looked so shimmering and benign . 0
it seems like i have been waiting my whole life for this movie and now i ca n't wait for the sequel . 1
determined to be fun , and bouncy , with energetic musicals , the humor did n't quite engage this adult . 0
if you dig on david mamet 's mind tricks ... rent this movie and enjoy ! 1
bleakly funny , its characters all the more touching for refusing to pity or memorialize themselves . 1
delivers the same old same old , tarted up with latin flava and turned out by hollywood playas . 0
does n't offer much besides glib soullessness , raunchy language and a series of brutal set pieces ... that raise the bar on stylized screen violence . 0
it made me want to wrench my eyes out of my head and toss them at the screen . 0
the film 's performances are thrilling . 1
unfortunately , it 's not silly fun unless you enjoy really bad movies . 0
it 's a bad thing when a movie has about as much substance as its end credits blooper reel . 0
i sympathize with the plight of these families , but the movie does n't do a very good job conveying the issue at hand . 0
the lower your expectations , the more you 'll enjoy it . 0
though perry and hurley make inspiring efforts to breathe life into the disjointed , haphazard script by jay scherick and david ronn , neither the actors nor director reginald hudlin can make it more than fitfully entertaining . 0
a must-see for the david mamet enthusiast and for anyone who appreciates intelligent , stylish moviemaking . 1
pacino is brilliant as the sleep-deprived dormer , his increasing weariness as much existential as it is physical . 1
` de niro ... is a veritable source of sincere passion that this hollywood contrivance orbits around . ' 1
a misogynistic piece of filth that attempts to pass itself off as hip , young adult entertainment . 0
its story may be a thousand years old , but why did it have to seem like it took another thousand to tell it to us ? 0
try as i may , i ca n't think of a single good reason to see this movie , even though everyone in my group extemporaneously shouted , ` thank you ! ' 0
the movie is beautiful to behold and engages one in a sense of epic struggle -- inner and outer -- that 's all too rare in hollywood 's hastier productions . 1
a celebration of quirkiness , eccentricity , and certain individuals ' tendency to let it all hang out , and damn the consequences . 1
morton uses her face and her body language to bring us morvern 's soul , even though the character is almost completely deadpan . 1
instead of a hyperbolic beat-charged urban western , it 's an unpretentious , sociologically pointed slice of life . 1
my thoughts were focused on the characters . 1
so , too , is this comedy about mild culture clashing in today 's new delhi . 1
for starters , the story is just too slim . 0
this is a winning ensemble comedy that shows canadians can put gentle laughs and equally gentle sentiments on the button , just as easily as their counterparts anywhere else in the world . 1
at the very least , if you do n't know anything about derrida when you walk into the theater , you wo n't know much more when you leave . 0
the format gets used best ... to capture the dizzying heights achieved by motocross and bmx riders , whose balletic hotdogging occasionally ends in bone-crushing screwups . 1
inside the film 's conflict-powered plot there is a decent moral trying to get out , but it 's not that , it 's the tension that keeps you in your seat . 1
there ought to be a directing license , so that ed burns can have his revoked . 0
bad . 0
that dogged good will of the parents and ` vain ' jia 's defoliation of ego , make the film touching despite some doldrums . 1
falls neatly into the category of good stupid fun . 1
an artful , intelligent film that stays within the confines of a well-established genre . 1
smart , provocative and blisteringly funny . 1
and the lesson , in the end , is nothing new . 0
this is not the undisputed worst boxing movie ever , but it 's certainly not a champion - the big loser is the audience . 0
not only is undercover brother as funny , if not more so , than both austin powers films , but it 's also one of the smarter , savvier spoofs to come along in some time . 1
to say this was done better in wilder 's some like it hot is like saying the sun rises in the east . 0
the entire movie is about a boring , sad man being boring and sad . 0
this time mr. burns is trying something in the martin scorsese street-realist mode , but his self-regarding sentimentality trips him up again . 0
perceptive in its vision of nascent industrialized world politics as a new art form , but far too clunky , didactic and saddled with scenes that seem simply an ill fit for this movie . 0
the best revenge may just be living well because this film , unlike other dumas adaptations , is far more likened to a treasure than a lengthy jail sentence . 1
the movie understands like few others how the depth and breadth of emotional intimacy give the physical act all of its meaning and most of its pleasure . 1
once ( kim ) begins to overplay the shock tactics and bait-and-tackle metaphors , you may decide it 's too high a price to pay for a shimmering picture postcard . 0
all that 's missing is the spontaneity , originality and delight . 0
what the film lacks in general focus it makes up for in compassion , as corcuera manages to find the seeds of hope in the form of collective action . 1
the socio-histo-political treatise is told in earnest strides ... ( and ) personal illusion is deconstructed with poignancy . 1
my reaction in a word : disappointment . 0
a psychological thriller with a genuinely spooky premise and an above-average cast , actor bill paxton 's directing debut is a creepy slice of gothic rural americana . 1
corny , schmaltzy and predictable , but still manages to be kind of heartwarming , nonetheless . 1
nothing 's at stake , just a twisty double-cross you can smell a mile away -- still , the derivative nine queens is lots of fun . 1
far more imaginative and ambitious than the trivial , cash-in features nickelodeon has made from its other animated tv series . 1
of course , by more objective measurements it 's still quite bad . 0
as the two leads , lathan and diggs are charming and have chemistry both as friends and lovers . 1
it provides an honest look at a community striving to anchor itself in new grounds . 1
this movie seems to have been written using mad-libs . 0
reign of fire looks as if it was made without much thought -- and is best watched that way . 1
martin and barbara are complex characters -- sometimes tender , sometimes angry -- and the delicate performances by sven wollter and viveka seldahl make their hopes and frustrations vivid . 1
it 's not that kung pow is n't funny some of the time -- it just is n't any funnier than bad martial arts movies are all by themselves , without all oedekerk 's impish augmentation . 0
i 'd have to say the star and director are the big problems here . 0
affleck and jackson are good sparring partners . 1
whether you like rap music or loathe it , you ca n't deny either the tragic loss of two young men in the prime of their talent or the power of this movie . 1
not since japanese filmmaker akira kurosawa 's ran have the savagery of combat and the specter of death been visualized with such operatic grandeur . 1
a by-the-numbers effort that wo n't do much to enhance the franchise . 0
an occasionally funny , but overall limp , fish-out-of-water story . 0
brilliantly explores the conflict between following one 's heart and following the demands of tradition . 1
despite the 2-d animation , the wild thornberrys movie makes for a surprisingly cinematic experience . 1
it appears that something has been lost in the translation to the screen . 0
it all feels like a monty python sketch gone horribly wrong . 0
the film tunes into a grief that could lead a man across centuries . 1
dazzles with its fully-written characters , its determined stylishness ( which always relates to characters and story ) and johnny dankworth 's best soundtrack in years . 1
it 's a work by an artist so in control of both his medium and his message that he can improvise like a jazzman . 1
it 's the chemistry between the women and the droll scene-stealing wit and wolfish pessimism of anna chancellor that makes this `` two weddings and a funeral '' fun . 1
stealing harvard is evidence that the farrelly bros. -- peter and bobby -- and their brand of screen comedy are wheezing to an end , along with green 's half-hearted movie career . 0
a full world has been presented onscreen , not some series of carefully structured plot points building to a pat resolution . 1
huston nails both the glad-handing and the choking sense of hollow despair . 1
one of the more intelligent children 's movies to hit theaters this year . 1
the film tries too hard to be funny and tries too hard to be hip . 0
blanchett 's performance confirms her power once again . 1
if you believe any of this , i can make you a real deal on leftover enron stock that will double in value a week from friday . 0
attempts by this ensemble film to impart a message are so heavy-handed that they instead pummel the audience . 0
no one but a convict guilty of some truly heinous crime should have to sit through the master of disguise . 0
rarely has so much money delivered so little entertainment . 0
taylor appears to have blown his entire budget on soundtrack rights and had nothing left over for jokes . 0
`` the time machine '' is a movie that has no interest in itself . 0
a rarity among recent iranian films : it 's a comedy full of gentle humor that chides the absurdity of its protagonist 's plight . 1
/ but daphne , you 're too buff / fred thinks he 's tough / and velma - wow , you 've lost weight ! 0
the very definition of the ` small ' movie , but it is a good stepping stone for director sprecher . 1
it 's like every bad idea that 's ever gone into an after-school special compiled in one place , minus those daytime programs ' slickness and sophistication ( and who knew they even had any ? ) . 0
chilling , well-acted , and finely directed : david jacobson 's dahmer . 1
it ca n't decide if it wants to be a mystery/thriller , a romance or a comedy . 0
paid in full is so stale , in fact , that its most vibrant scene is one that uses clips from brian de palma 's scarface . 0
a coda in every sense , the pinochet case splits time between a minute-by-minute account of the british court 's extradition chess game and the regime 's talking-head survivors . 1
it 's played in the most straight-faced fashion , with little humor to lighten things up . 0
a dumb movie with dumb characters doing dumb things and you have to be really dumb not to see where this is going . 0
with virtually no interesting elements for an audience to focus on , chelsea walls is a triple-espresso endurance challenge . 0
dense with characters and contains some thrilling moments . 1
as unseemly as its title suggests . 1
it 's like watching a nightmare made flesh . 0
minority report is exactly what the title indicates , a report . 1
it 's hard to like a film about a guy who is utterly unlikeable , and shiner , starring michael caine as an aging british boxing promoter desperate for a taste of fame and fortune , is certainly that . 0
an entertaining , colorful , action-filled crime story with an intimate heart . 1
for this reason and this reason only -- the power of its own steadfast , hoity-toity convictions -- chelsea walls deserves a medal . 1
it just may inspire a few younger moviegoers to read stevenson 's book , which is a treasure in and of itself . 1
basically a static series of semi-improvised ( and semi-coherent ) raps between the stars . 0
... with `` the bourne identity '' we return to the more traditional action genre . 1
it 's so good that its relentless , polished wit can withstand not only inept school productions , but even oliver parker 's movie adaptation . 1
chokes on its own depiction of upper-crust decorum . 0
while there 's something intrinsically funny about sir anthony hopkins saying ` get in the car , bitch , ' this jerry bruckheimer production has little else to offer 1
a rewarding work of art for only the most patient and challenge-hungry moviegoers . 1
directed in a paint-by-numbers manner . 0
k-19 exploits our substantial collective fear of nuclear holocaust to generate cheap hollywood tension . 0
at its best , queen is campy fun like the vincent price horror classics of the '60s . 1
it 's a much more emotional journey than what shyamalan has given us in his past two movies , and gibson , stepping in for bruce willis , is the perfect actor to take us on the trip . 1
the quality of the art combined with the humor and intelligence of the script allow the filmmakers to present the biblical message of forgiveness without it ever becoming preachy or syrupy . 1
cool ? 1
deliriously funny , fast and loose , accessible to the uninitiated , and full of surprises 1
even with a green mohawk and a sheet of fire-red flame tattoos covering his shoulder , however , kilmer seems to be posing , rather than acting . 0
the story and the friendship proceeds in such a way that you 're watching a soap opera rather than a chronicle of the ups and downs that accompany lifelong friendships . 0
at a time when half the so-called real movies are little more than live-action cartoons , it 's refreshing to see a cartoon that knows what it is , and knows the form 's history . 1
the old-world - meets-new mesh is incarnated in the movie 's soundtrack , a joyful effusion of disco bollywood that , by the end of monsoon wedding , sent my spirit soaring out of the theater . 1
jones ... does offer a brutal form of charisma . 1
its well of thorn and vinegar ( and simple humanity ) has long been plundered by similar works featuring the insight and punch this picture so conspicuously lacks . 0
travels a fascinating arc from hope and euphoria to reality and disillusionment . 1
serving sara does n't serve up a whole lot of laughs . 0
the sort of film that makes me miss hitchcock , but also feel optimistic that there 's hope for popular cinema yet . 1
fun , flip and terribly hip bit of cinematic entertainment . 1
the x potion gives the quickly named blossom , bubbles and buttercup supernatural powers that include extraordinary strength and laser-beam eyes , which unfortunately do n't enable them to discern flimsy screenplays . 0
the wild thornberrys movie is a jolly surprise . 1
entertains by providing good , lively company . 1
a densely constructed , highly referential film , and an audacious return to form that can comfortably sit among jean-luc godard 's finest work . 1
what was once original has been co-opted so frequently that it now seems pedestrian . 0
the story and structure are well-honed . 1
macdowell , whose wifty southern charm has anchored lighter affairs ... brings an absolutely riveting conviction to her role . 1
an intriguing cinematic omnibus and round-robin that occasionally is more interesting in concept than in execution . 1
the second coming of harry potter is a film far superior to its predecessor . 1
if you can stomach the rough content , it 's worth checking out for the performances alone . 1
a warm , funny , engaging film . 1
i 'll bet the video game is a lot more fun than the film . 0
the best film about baseball to hit theaters since field of dreams . 1
it is great summer fun to watch arnold and his buddy gerald bounce off a quirky cast of characters . 1
complete lack of originality , cleverness or even visible effort 0
awesome creatures , breathtaking scenery , and epic battle scenes add up to another ` spectacular spectacle . ' 1
all-in-all , the film is an enjoyable and frankly told tale of a people who live among us , but not necessarily with us . 1
hit and miss as far as the comedy goes and a big ole ' miss in the way of story . 0
too much of it feels unfocused and underdeveloped . 0
a deep and meaningful film . 1
but it could have been worse . 0
that 's pure pr hype . 0
a painfully funny ode to bad behavior . 1
you 'll gasp appalled and laugh outraged and possibly , watching the spectacle of a promising young lad treading desperately in a nasty sea , shed an errant tear . 1
liotta put on 30 pounds for the role , and has completely transformed himself from his smooth , goodfellas image . 1
a beguiling splash of pastel colors and prankish comedy from disney . 1
it proves quite compelling as an intense , brooding character study . 1
an unwise amalgam of broadcast news and vibes . 0
utterly lacking in charm , wit and invention , roberto benigni 's pinocchio is an astonishingly bad film . 0
and that leaves a hole in the center of the salton sea . 0
the chateau cleverly probes the cross-cultural differences between gauls and yanks . 1
broomfield turns his distinctive ` blundering ' style into something that could really help clear up the case . 1
a pleasant enough romance with intellectual underpinnings , the kind of movie that entertains even as it turns maddeningly predictable . 1
what really makes it special is that it pulls us into its world , gives us a hero whose suffering and triumphs we can share , surrounds him with interesting characters and sends us out of the theater feeling we 've shared a great adventure . 1
with the exception of some fleetingly amusing improvisations by cedric the entertainer as perry 's boss , there is n't a redeeming moment here . 0
having had the good sense to cast actors who are , generally speaking , adored by the movie-going public , khouri then gets terrific performances from them all . 1
... a boring parade of talking heads and technical gibberish that will do little to advance the linux cause . 0
it 's of the quality of a lesser harrison ford movie - six days , seven nights , maybe , or that dreadful sabrina remake . 0
if you enjoy more thoughtful comedies with interesting conflicted characters ; this one is for you . 1
the most hopelessly monotonous film of the year , noteworthy only for the gimmick of being filmed as a single unbroken 87-minute take . 0
it deserves to be seen by anyone with even a passing interest in the events shaping the world beyond their own horizons . 1
in an effort , i suspect , not to offend by appearing either too serious or too lighthearted , it offends by just being wishy-washy . 0
no way i can believe this load of junk . 0
there is a fabric of complex ideas here , and feelings that profoundly deepen them . 1
this tenth feature is a big deal , indeed -- at least the third-best , and maybe even a notch above the previous runner-up , nicholas meyer 's star trek vi : the undiscovered country . 1
not only unfunny , but downright repellent . 0
works hard to establish rounded characters , but then has nothing fresh or particularly interesting to say about them . 0
just one bad idea after another . 0
... turns so unforgivably trite in its last 10 minutes that anyone without a fortified sweet tooth will likely go into sugar shock . 0
his comedy premises are often hackneyed or just plain crude , calculated to provoke shocked laughter , without following up on a deeper level . 0
( næs ) directed the stage version of elling , and gets fine performances from his two leads who originated the characters on stage . 1
a swashbuckling tale of love , betrayal , revenge and above all , faith . 1
for movie lovers as well as opera lovers , tosca is a real treat . 1
the film is quiet , threatening and unforgettable . 1
there is no pleasure in watching a child suffer . 0
jason x is positively anti-darwinian : nine sequels and 400 years later , the teens are none the wiser and jason still kills on auto-pilot . 0
stealing harvard aspires to comedic grand larceny but stands convicted of nothing more than petty theft of your time . 0
( d ) oes n't bother being as cloying or preachy as equivalent evangelical christian movies -- maybe the filmmakers know that the likely audience will already be among the faithful . 1
displaying about equal amounts of naiveté , passion and talent , beneath clouds establishes sen as a filmmaker of considerable potential . 1
` easily my choice for one of the year 's best films . ' 1
a very long movie , dull in stretches , with entirely too much focus on meal preparation and igloo construction . 0
as a first-time director , paxton has tapped something in himself as an actor that provides frailty with its dark soul . 1
it 's a grab bag of genres that do n't add up to a whole lot of sense . 0
instead of hiding pinocchio from critics , miramax should have hidden it from everyone . 0
portentous and pretentious , the weight of water is appropriately titled , given the heavy-handedness of it drama . 0
altogether , this is successful as a film , while at the same time being a most touching reconsideration of the familiar masterpiece . 1
there has always been something likable about the marquis de sade . 1
the humor is forced and heavy-handed , and occasionally simply unpleasant . 0
without ever becoming didactic , director carlos carrera expertly weaves this novelistic story of entangled interrelationships and complex morality . 1
partway through watching this saccharine , easter-egg-colored concoction , you realize that it is made up of three episodes of a rejected tv show . 0
for the most part , it 's a work of incendiary genius , steering clear of knee-jerk reactions and quick solutions . 1
the special effects and many scenes of weightlessness look as good or better than in the original , while the oscar-winning sound and james horner 's rousing score make good use of the hefty audio system . 1
not since freddy got fingered has a major release been so painful to sit through . 0
the movie is what happens when you blow up small potatoes to 10 times their natural size , and it ai n't pretty . 0
we have n't seen such hilarity since say it is n't so ! 1
to call the other side of heaven `` appalling '' would be to underestimate just how dangerous entertainments like it can be . 0
nothing is sacred in this gut-buster . 0
feels haphazard , as if the writers mistakenly thought they could achieve an air of frantic spontaneity by simply tossing in lots of characters doing silly stuff and stirring the pot . 0
tries to add some spice to its quirky sentiments but the taste is all too familiar . 0
at its worst , it implodes in a series of very bad special effects . 0
with tightly organized efficiency , numerous flashbacks and a constant edge of tension , miller 's film is one of 2002 's involvingly adult surprises . 1
a great ensemble cast ca n't lift this heartfelt enterprise out of the familiar . 0
a warm but realistic meditation on friendship , family and affection . 1
at times , the suspense is palpable , but by the end there 's a sense that the crux of the mystery hinges on a technicality that strains credulity and leaves the viewer haunted by the waste of potential . 0
while the resident evil games may have set new standards for thrills , suspense , and gore for video games , the movie really only succeeds in the third of these . 0
it 's a remarkably solid and subtly satirical tour de force . 1
director andrew niccol ... demonstrates a wry understanding of the quirks of fame . 1
when leguizamo finally plugged an irritating character late in the movie . 0
thekids will probably stay amused at the kaleidoscope of big , colorful characters . 1
mattei is tiresomely grave and long-winded , as if circularity itself indicated profundity . 0
... plays like somebody spliced random moments of a chris rock routine into what is otherwise a cliche-riddled but self-serious spy thriller . 0
an overemphatic , would-be wacky , ultimately tedious sex farce . 0
it all adds up to good fun . 1
whether writer-director anne fontaine 's film is a ghost story , an account of a nervous breakdown , a trip down memory lane , all three or none of the above , it is as seductive as it is haunting . 1
another in-your-face wallow in the lower depths made by people who have never sung those blues . 0
a very well-made , funny and entertaining picture . 1
it 's worth seeing just on the basis of the wisdom , and at times , the startling optimism , of the children . 1
despite its title , punch-drunk love is never heavy-handed . 1
if director michael dowse only superficially understands his characters , he does n't hold them in contempt . 0
it 's refreshing to see a girl-power movie that does n't feel it has to prove anything . 1
the film may appear naked in its narrative form ... but it goes deeper than that , to fundamental choices that include the complexity of the catholic doctrine 1
however it may please those who love movies that blare with pop songs , young science fiction fans will stomp away in disgust . 0
as vulgar as it is banal . 0
zhang ... has done an amazing job of getting realistic performances from his mainly nonprofessional cast . 1
outer-space buffs might love this film , but others will find its pleasures intermittent . 0
maud and roland 's search for an unknowable past makes for a haunting literary detective story , but labute pulls off a neater trick in possession : he makes language sexy . 1
more whiny downer than corruscating commentary . 0
there are simply too many ideas floating around -- part farce , part sliding doors , part pop video -- and yet failing to exploit them . 0
it 's another stale , kill-by-numbers flick , complete with blade-thin characters and terrible , pun-laden dialogue . 0
what distinguishes time of favor from countless other thrillers is its underlying concern with the consequences of words and with the complicated emotions fueling terrorist acts . 1
i do n't mind having my heartstrings pulled , but do n't treat me like a fool . 0
the movie 's accumulated force still feels like an ugly knot tightening in your stomach . 0
at least one scene is so disgusting that viewers may be hard pressed to retain their lunch . 0
it has charm to spare , and unlike many romantic comedies , it does not alienate either gender in the audience . 1
an operatic , sprawling picture that 's entertainingly acted , magnificently shot and gripping enough to sustain most of its 170-minute length . 1
a giggle a minute . 1
uses sharp humor and insight into human nature to examine class conflict , adolescent yearning , the roots of friendship and sexual identity . 1
the continued good chemistry between carmen and juni is what keeps this slightly disappointing sequel going , with enough amusing banter -- blessedly curse-free -- to keep both kids and parents entertained . 1
i 'm just too bored to care . 0
one of the more irritating cartoons you will see this , or any , year . 0
it 's one heck of a character study -- not of hearst or davies but of the unique relationship between them . 1
it moves quickly , adroitly , and without fuss ; it does n't give you time to reflect on the inanity -- and the cold war datedness -- of its premise . 1
i am sorry that i was unable to get the full brunt of the comedy . 0
a good piece of work more often than not . 1
while the ideas about techno-saturation are far from novel , they 're presented with a wry dark humor . 1
charles ' entertaining film chronicles seinfeld 's return to stand-up comedy after the wrap of his legendary sitcom , alongside wannabe comic adams ' attempts to get his shot at the big time . 1
an exhilarating futuristic thriller-noir , minority report twists the best of technology around a gripping story , delivering a riveting , pulse intensifying escapist adventure of the first order 1
beautifully observed , miraculously unsentimental comedy-drama . 1
the film 's hackneyed message is not helped by the thin characterizations , nonexistent plot and pretentious visual style . 0
a breezy romantic comedy that has the punch of a good sitcom , while offering exceptionally well-detailed characters . 1
should have been someone else - 0
coughs and sputters on its own postmodern conceit . 0
the lion king was a roaring success when it was released eight years ago , but on imax it seems better , not just bigger . 1
almost gags on its own gore . 0
a marvel like none you 've seen . 1
trite , banal , cliched , mostly inoffensive . 0
immersing us in the endlessly inventive , fiercely competitive world of hip-hop djs , the project is sensational and revelatory , even if scratching makes you itch . 1
the movie has an infectious exuberance that will engage anyone with a passing interest in the skate/surf culture , the l.a. beach scene and the imaginative ( and sometimes illegal ) ways kids can make a playground out of the refuse of adults . 1
yakusho and shimizu ... create engaging characterizations in imamura 's lively and enjoyable cultural mix . 1
this is wild surreal stuff , but brilliant and the camera just kind of sits there and lets you look at this and its like you 're going from one room to the next and none of them have any relation to the other . 1
there is very little dread or apprehension , and though i like the creepy ideas , they are not executed with anything more than perfunctory skill . 0
the notion that bombing buildings is the funniest thing in the world goes entirely unexamined in this startlingly unfunny comedy . 0
good car chases , great fight scenes , and a distinctive blend of european , american and asian influences . 1
the last 20 minutes are somewhat redeeming , but most of the movie is the same teenage american road-trip drek we 've seen before - only this time you have to read the fart jokes 0
even in its most tedious scenes , russian ark is mesmerizing . 1
with its dogged hollywood naturalism and the inexorable passage of its characters toward sainthood , windtalkers is nothing but a sticky-sweet soap . 0
generally , clockstoppers will fulfill your wildest fantasies about being a different kind of time traveler , while happily killing 94 minutes . 1
something akin to a japanese alice through the looking glass , except that it seems to take itself far more seriously . 1
oh come on . 0
a moody , multi-dimensional love story and sci-fi mystery , solaris is a thought-provoking , haunting film that allows the seeds of the imagination to germinate . 1
not only are the special effects and narrative flow much improved , and daniel radcliffe more emotionally assertive this time around as harry , but the film conjures the magic of author j.k. rowling 's books . 1
it 's clear the filmmakers were n't sure where they wanted their story to go , and even more clear that they lack the skills to get us to this undetermined destination . 0
( t ) his beguiling belgian fable , very much its own droll and delicate little film , has some touching things to say about what is important in life and why . 1
even on those rare occasions when the narrator stops yammering , miller 's hand often feels unsure . 0
( chaiken 's ) talent lies in an evocative , accurate observation of a distinctive milieu and in the lively , convincing dialogue she creates for her characters . 1
sticky sweet sentimentality , clumsy plotting and a rosily myopic view of life in the wwii-era mississippi delta undermine this adaptation . 0
it inspires a continuing and deeply satisfying awareness of the best movies as monumental ` picture shows . ' 1
featuring a dangerously seductive performance from the great daniel auteuil , `` sade '' covers the same period as kaufmann 's `` quills '' with more unsettlingly realistic results . 1
gives you the steady pulse of life in a beautiful city viewed through the eyes of a character who , in spite of tragic loss and increasing decrepitude , knows in his bones that he is one of the luckiest men alive . 1
if you are an actor who can relate to the search for inner peace by dramatically depicting the lives of others onstage , then esther 's story is a compelling quest for truth . 1
it 's too bad that the helping hand he uses to stir his ingredients is also a heavy one . 0
yes , dull . 0
some of their jokes work , but most fail miserably and in the end , pumpkin is far more offensive than it is funny . 0
intriguing documentary which is emotionally diluted by focusing on the story 's least interesting subject . 1
shaky close-ups of turkey-on-rolls , stubbly chins , liver spots , red noses and the filmmakers new bobbed do draw easy chuckles but lead nowhere . 0
the inspirational screenplay by mike rich covers a lot of ground , perhaps too much , but ties things together , neatly , by the end . 1
ramsay , as in ratcatcher , remains a filmmaker with an acid viewpoint and a real gift for teasing chilly poetry out of lives and settings that might otherwise seem drab and sordid . 1
the characters are interesting and often very creatively constructed from figure to backstory . 1
so unremittingly awful that labeling it a dog probably constitutes cruelty to canines . 0
reggio 's continual visual barrage is absorbing as well as thought-provoking . 1
adults will wish the movie were less simplistic , obvious , clumsily plotted and shallowly characterized . 0
you will emerge with a clearer view of how the gears of justice grind on and the death report comes to share airtime alongside the farm report . 1
thanks to haynes ' absolute control of the film 's mood , and buoyed by three terrific performances , far from heaven actually pulls off this stylistic juggling act . 1
the problem with this film is that it lacks focus . 0
belongs to daniel day-lewis as much as it belongs to martin scorsese ; it 's a memorable performance in a big , brassy , disturbing , unusual and highly successful film . 1
involves two mysteries -- one it gives away and the other featuring such badly drawn characters that its outcome hardly matters . 0
a tv style murder mystery with a few big screen moments ( including one that seems to be made for a different film altogether ) . 0
a by-the-numbers patient/doctor pic that covers all the usual ground 0
it 's a stunning lyrical work of considerable force and truth . 1
while undisputed is n't exactly a high , it is a gripping , tidy little movie that takes mr. hill higher than he 's been in a while . 1
funny but perilously slight . 1
cq 's reflection of artists and the love of cinema-and-self suggests nothing less than a new voice that deserves to be considered as a possible successor to the best european directors . 1
even if you do n't think ( kissinger 's ) any more guilty of criminal activity than most contemporary statesmen , he 'd sure make a courtroom trial great fun to watch . 1
dazzling in its complexity , disturbing for its extraordinary themes , the piano teacher is a film that defies categorisation . 1
a literate presentation that wonderfully weaves a murderous event in 1873 with murderous rage in 2002 . 1
the script is n't very good ; not even someone as gifted as hoffman ( the actor ) can make it work . 0
( e ) ventually , every idea in this film is flushed down the latrine of heroism . 0
a cartoon that 's truly cinematic in scope , and a story that 's compelling and heartfelt -- even if the heart belongs to a big , four-legged herbivore . 1
it 's dumb , but more importantly , it 's just not scary . 0
detox is ultimately a pointless endeavor . 0
as a rumor of angels reveals itself to be a sudsy tub of supernatural hokum , not even ms. redgrave 's noblest efforts can redeem it from hopeless sentimentality . 0
an exquisitely crafted and acted tale . 1
this is so bad . 0
it showcases carvey 's talent for voices , but not nearly enough and not without taxing every drop of one 's patience to get to the good stuff . 0
light years / several warp speeds / levels and levels of dilithium crystals better than the pitiful insurrection . 1
it 's about following your dreams , no matter what your parents think . 1
the overall effect is less like a children 's movie than a recruitment film for future hollywood sellouts . 0
anchored by friel and williams 's exceptional performances , the film 's power lies in its complexity . 1
unlike the speedy wham-bam effect of most hollywood offerings , character development -- and more importantly , character empathy -- is at the heart of italian for beginners . 1
a sequel that 's much too big for its britches . 0
harrison 's flowers puts its heart in the right place , but its brains are in no particular place at all . 1
deadeningly dull , mired in convoluted melodrama , nonsensical jargon and stiff-upper-lip laboriousness . 0
dragonfly has no atmosphere , no tension -- nothing but costner , flailing away . 0
the film is powerful , accessible and funny . 1
and that 's a big part of why we go to the movies . 1
crackerjack entertainment -- nonstop romance , music , suspense and action . 1
the minor figures surrounding ( bobby ) ... form a gritty urban mosaic . 1
a poignant and compelling story about relationships , food of love takes us on a bumpy but satisfying journey of the heart . 1
a movie that successfully crushes a best selling novel into a timeframe that mandates that you avoid the godzilla sized soda . 1
the vivid lead performances sustain interest and empathy , but the journey is far more interesting than the final destination . 1
lapaglia 's ability to convey grief and hope works with weaver 's sensitive reactions to make this a two-actor master class . 1
villeneuve spends too much time wallowing in bibi 's generic angst ( there are a lot of shots of her gazing out windows ) . 0
care deftly captures the wonder and menace of growing up , but he never really embraces the joy of fuhrman 's destructive escapism or the grace-in-rebellion found by his characters . 0
this is an egotistical endeavor from the daughter of horror director dario argento ( a producer here ) , but her raw performance and utter fearlessness make it strangely magnetic . 1
if looking for a thrilling sci-fi cinematic ride , do n't settle for this imposter . 0
plays like a volatile and overlong w magazine fashion spread . 0
not far beneath the surface , this reconfigured tale asks disturbing questions about those things we expect from military epics . 1
michael gerbosi 's script is economically packed with telling scenes . 1
moretti 's compelling anatomy of grief and the difficult process of adapting to loss . 0
so refreshingly incisive is grant that for the first time he 'll probably appeal more to guys than to their girlfriends who drag them to this movie for the hugh factor . 1
comes off like a rejected abc afterschool special , freshened up by the dunce of a screenwriting 101 class . 0
it has its moments of swaggering camaraderie , but more often just feels generic , derivative and done to death . 0
a romantic comedy enriched by a sharp eye for manners and mores . 1
the fly-on-the-wall method used to document rural french school life is a refreshing departure from the now more prevalent technique of the docu-makers being a visible part of their work . 1
rare birds has more than enough charm to make it memorable . 1
it 's a bit disappointing that it only manages to be decent instead of dead brilliant . 0
it has all the excitement of eating oatmeal . 0
it haunts , horrifies , startles and fascinates ; it is impossible to look away . 1
for close to two hours the audience is forced to endure three terminally depressed , mostly inarticulate , hyper dysfunctional families for the price of one . 0
a superbly acted and funny/gritty fable of the humanizing of one woman at the hands of the unseen forces of fate . 1
( t ) here 's only so much anyone can do with a florid , overplotted , anne rice rock 'n' roll vampire novel before the built-in silliness of the whole affair defeats them . 0
for anyone unfamiliar with pentacostal practices in general and theatrical phenomenon of hell houses in particular , it 's an eye-opener . 1
`` mostly martha '' is a bright , light modern day family parable that wears its heart on its sleeve for all to see . 1
i just loved every minute of this film . 1
a quiet , pure , elliptical film 1
a disappointment for those who love alternate versions of the bard , particularly ones that involve deep fryers and hamburgers . 0
a simple , but gritty and well-acted ensemble drama that encompasses a potent metaphor for a country still dealing with its fascist past . 1
it 's so mediocre , despite the dynamic duo on the marquee , that we just ca n't get no satisfaction . 0
do not see this film . 0
binoche makes it interesting trying to find out . 1
the most compelling wiseman epic of recent years . 1
there 's no emotional pulse to solaris . 0
for each chuckle there are at least 10 complete misses , many coming from the amazingly lifelike tara reid , whose acting skills are comparable to a cardboard cutout . 0
although huppert 's intensity and focus has a raw exhilaration about it , the piano teacher is anything but fun . 0
from the opening scenes , it 's clear that all about the benjamins is a totally formulaic movie . 0
on the heels of the ring comes a similarly morose and humorless horror movie that , although flawed , is to be commended for its straight-ahead approach to creepiness . 1
the film is based on truth and yet there is something about it that feels incomplete , as if the real story starts just around the corner . 0
i 've always dreamed of attending cannes , but after seeing this film , it 's not that big a deal . 0
a coarse and stupid gross-out . 0
... nothing scary here except for some awful acting and lame special effects . 0
nothing in waking up in reno ever inspired me to think of its inhabitants as anything more than markers in a screenplay . 0
here 's yet another studio horror franchise mucking up its storyline with glitches casual fans could correct in their sleep . 0
so unassuming and pure of heart , you ca n't help but warmly extend your arms and yell ` safe ! ' 1
it treats women like idiots . 0
... plot holes so large and obvious a marching band might as well be stomping through them in clown clothes , playing a college football fight song on untuned instruments . 0
but it 's too long and too convoluted and it ends in a muddle . 0
one of the best films of the year with its exploration of the obstacles to happiness faced by five contemporary individuals ... a psychological masterpiece . 1
although german cooking does not come readily to mind when considering the world 's best cuisine , mostly martha could make deutchland a popular destination for hungry tourists . 1
if the first men in black was money , the second is small change . 0
do n't be fooled by the impressive cast list - eye see you is pure junk . 0
another one of those estrogen overdose movies like `` divine secrets of the ya ya sisterhood , '' except that the writing , acting and character development are a lot better . 1
scorsese does n't give us a character worth giving a damn about . 0
with rabbit-proof fence , noyce has tailored an epic tale into a lean , economical movie . 1
the plot convolutions ultimately add up to nothing more than jerking the audience 's chain . 0
there are some wonderfully fresh moments that smooth the moral stiffness with human kindness and hopefulness . 1
does little more than play an innocuous game of fill-in - the-blanks with a tragic past . 0
feature debuter d.j. caruso directs a crack ensemble cast , bringing screenwriter tony gayton 's narcotics noir to life . 1
it does nothing new with the old story , except to show fisticuffs in this sort of stop-go slow motion that makes the gang rumbles look like they 're being streamed over a 28k modem . 0
one of those energetic surprises , an original that pleases almost everyone who sees it . 1
seldahl 's barbara is a precise and moving portrait of someone whose world is turned upside down , first by passion and then by illness . 1
passable entertainment , but it 's the kind of motion picture that wo n't make much of a splash when it 's released , and will not be remembered long afterwards . 0
the film 's tone and pacing are off almost from the get-go . 0
lovely and poignant . 1
a broad , melodramatic estrogen opera that 's pretty toxic in its own right . 0
( director ) o'fallon manages to put some lovely pictures up on the big screen , but his skill at telling a story -- he also contributed to the screenplay -- falls short . 0
offers very little genuine romance and even fewer laughs ... a sad sitcom of a movie , largely devoid of charm . 0
though only 60 minutes long , the film is packed with information and impressions . 1
just not campy enough 0
every dance becomes about seduction , where backstabbing and betrayals are celebrated , and sex is currency . 0
it takes a certain kind of horror movie to qualify as ` worse than expected , ' but ghost ship somehow manages to do exactly that . 0
it can not be enjoyed , even on the level that one enjoys a bad slasher flick , primarily because it is dull . 0
despite all evidence to the contrary , this clunker has somehow managed to pose as an actual feature movie , the kind that charges full admission and gets hyped on tv and purports to amuse small children and ostensible adults . 0
it 's just filler . 0
a hamfisted romantic comedy that makes our girl the hapless facilitator of an extended cheap shot across the mason-dixon line . 0
one of those pictures whose promising , if rather precious , premise is undercut by amateurish execution . 0
the humor is n't as sharp , the effects not as innovative , nor the story as imaginative as in the original . 0
director uwe boll and the actors provide scant reason to care in this crude '70s throwback . 0
... a story we have n't seen on the big screen before , and it 's a story that we as americans , and human beings , should know . 1
if your taste runs to ` difficult ' films you absolutely ca n't miss it . 1
this movie is something of an impostor itself , stretching and padding its material in a blur of dead ends and distracting camera work . 0
i got a headache watching this meaningless downer . 0
zaidan 's script has barely enough plot to string the stunts together and not quite enough characterization to keep the faces straight . 0
the terrific and bewilderingly underrated campbell scott gives a star performance that is nothing short of mesmerizing . 1
building slowly and subtly , the film , sporting a breezy spontaneity and realistically drawn characterizations , develops into a significant character study that is both moving and wise . 1
all the amped-up tony hawk-style stunts and thrashing rap-metal ca n't disguise the fact that , really , we 've been here , done that . 0
the director knows how to apply textural gloss , but his portrait of sex-as-war is strictly sitcom . 0
visually rather stunning , but ultimately a handsome-looking bore , the true creativity would have been to hide treasure planet entirely and completely reimagine it . 0
nonsensical , dull `` cyber-horror '' flick is a grim , hollow exercise in flat scares and bad acting . 0
big fat waste of time . 0
professionally speaking , it 's tempting to jump ship in january to avoid ridiculous schlock like this shoddy suspense thriller . 0
fancy a real downer ? 0
instead , he shows them the respect they are due . 1
first-time writer-director serry shows a remarkable gift for storytelling with this moving , effective little film . 1
vera 's technical prowess ends up selling his film short ; he smoothes over hard truths even as he uncovers them . 0
puts a human face on a land most westerners are unfamiliar with . 1
makes for a pretty unpleasant viewing experience . 0
ahhhh ... revenge is sweet ! 1
highbrow self-appointed guardians of culture need not apply , but those who loved cool as ice have at last found a worthy follow-up . 1
nine queens is not only than a frighteningly capable debut and genre piece , but also a snapshot of a dangerous political situation on the verge of coming to a head . 1
like you could n't smell this turkey rotting from miles away . 0
the performances take the movie to a higher level . 1
davis ... is so enamored of her own creation that she ca n't see how insufferable the character is . 0
... takes the beauty of baseball and melds it with a story that could touch anyone regardless of their familiarity with the sport 1
against all odds in heaven and hell , it creeped me out just fine . 1
as the latest bid in the tv-to-movie franchise game , i spy makes its big-screen entry with little of the nervy originality of its groundbreaking small-screen progenitor . 0
there 's really only one good idea in this movie , but the director runs with it and presents it with an unforgettable visual panache . 1
the so-inept - it 's - surreal dubbing ( featuring the voices of glenn close , regis philbin and breckin meyer ) brings back memories of cheesy old godzilla flicks . 0
without non-stop techno or the existential overtones of a kieslowski morality tale , maelström is just another winter sleepers . 0
an unclassifiably awful study in self - and audience-abuse . 0
the moviegoing equivalent of going to a dinner party and being forced to watch the host and hostess 's home video of their baby 's birth . 0
kinnear does n't aim for our sympathy , but rather delivers a performance of striking skill and depth . 1
few films capture so perfectly the hopes and dreams of little boys on baseball fields as well as the grown men who sit in the stands . 1
it is amusing , and that 's all it needs to be . 1
challenging , intermittently engrossing and unflaggingly creative . 1
for the most part stevens glides through on some solid performances and witty dialogue . 1
this flick is about as cool and crowd-pleasing as a documentary can get . 1
nervous breakdowns are not entertaining . 0
writer-director 's mehta 's effort has tons of charm and the whimsy is in the mixture , the intoxicating masala , of cultures and film genres . 1
excessive , profane , packed with cartoonish violence and comic-strip characters . 0
a taut psychological thriller that does n't waste a moment of its two-hour running time . 1
burns never really harnesses to full effect the energetic cast . 0
just embarrassment and a vague sense of shame . 0
still , as a visual treat , the film is almost unsurpassed . 1
harris commands the screen , using his frailty to suggest the ravages of a life of corruption and ruthlessness . 1
or emptying rat traps . 0
offers much to enjoy ... and a lot to mull over in terms of love , loyalty and the nature of staying friends . 1
the piquant story needs more dramatic meat on its bones . 0
my wife is an actress is an utterly charming french comedy that feels so american in sensibility and style it 's virtually its own hollywood remake . 1
indifferently implausible popcorn programmer of a movie . 0
an important movie , a reminder of the power of film to move us and to make us examine our values . 1
the magic of the film lies not in the mysterious spring but in the richness of its performances . 1
this re-do is so dumb and so exploitative in its violence that , ironically , it becomes everything that the rather clumsy original was railing against . 0
the jabs it employs are short , carefully placed and dead-center . 1
while locals will get a kick out of spotting cleveland sites , the rest of the world will enjoy a fast-paced comedy with quirks that might make the award-winning coen brothers envious . 1
the words , ` frankly , my dear , i do n't give a damn , ' have never been more appropriate . 0
the longer the movie goes , the worse it gets , but it 's actually pretty good in the first few minutes . 0
too much of the humor falls flat . 0
further proof that the epicenter of cool , beautiful , thought-provoking foreign cinema is smack-dab in the middle of dubya 's axis of evil . 1
the film 's few ideas are stretched to the point of evaporation ; the whole central section is one big chase that seems to have no goal and no urgency . 0
too slow , too long and too little happens . 0
due to some script weaknesses and the casting of the director 's brother , the film trails off into inconsequentiality . 0
very bad . 0
a lackluster , unessential sequel to the classic disney adaptation of j.m. barrie 's peter pan . 0
a science-fiction pastiche so lacking in originality that if you stripped away its inspirations there would be precious little left . 0
birthday girl is an amusing joy ride , with some surprisingly violent moments . 1
so much facile technique , such cute ideas , so little movie . 1
expect the same-old , lame-old slasher nonsense , just with different scenery . 0
a smart , witty follow-up . 1
chabrol has taken promising material for a black comedy and turned it instead into a somber chamber drama . 0
like mike is a winner for kids , and no doubt a winner for lil bow wow , who can now add movies to the list of things he does well . 1
it 's another video movie photographed like a film , with the bad lighting that 's often written off as indie film naturalism . 0
there 's not enough here to justify the almost two hours . 0
it will grip even viewers who are n't interested in rap , as it cuts to the heart of american society in an unnerving way . 1
the film is beautifully mounted , but , more to the point , the issues are subtly presented , managing to walk a fine line with regard to the question of joan 's madness . 1
and if you 're not nearly moved to tears by a couple of scenes , you 've got ice water in your veins . 1
richard gere and diane lane put in fine performances as does french actor oliver martinez . 1
good film , but very glum . 1
there are plot holes big enough for shamu the killer whale to swim through . 0
preaches to two completely different choirs at the same time , which is a pretty amazing accomplishment . 1
verbinski implements every hack-artist trick to give us the ooky-spookies . 0
two hours fly by -- opera 's a pleasure when you do n't have to endure intermissions -- and even a novice to the form comes away exhilarated . 1
in all , this is a watchable movie that 's not quite the memorable experience it might have been . 0
drops you into a dizzying , volatile , pressure-cooker of a situation that quickly snowballs out of control , while focusing on the what much more than the why . 1
atom egoyan has conjured up a multilayered work that tackles any number of fascinating issues 1
slick piece of cross-promotion . 1
well-nigh unendurable ... though the picture strains to become cinematic poetry , it remains depressingly prosaic and dull . 0
majidi is an unconventional storyteller , capable of finding beauty in the most depressing places . 1
the movie is n't just hilarious : it 's witty and inventive , too , and in hindsight , it is n't even all that dumb . 1
filmmakers who can deftly change moods are treasures and even marvels . 1
the vitality of the actors keeps the intensity of the film high , even as the strafings blend together . 1
( a ) shapeless blob of desperate entertainment . 0
in the end , the movie collapses on its shaky foundation despite the best efforts of director joe carnahan . 0
true tale of courage -- and complicity -- at auschwitz is a harrowing drama that tries to tell of the unspeakable . 1
a study in shades of gray , offering itself up in subtle plot maneuvers ... 1
no screen fantasy-adventure in recent memory has the showmanship of clones ' last 45 minutes . 1
more romantic , more emotional and ultimately more satisfying than the teary-eyed original . 1
this is a shameless sham , calculated to cash in on the popularity of its stars . 0
if you 've ever entertained the notion of doing what the title of this film implies , what sex with strangers actually shows may put you off the idea forever . 0
once the 50 year old benigni appears as the title character , we find ourselves longing for the block of wood to come back . 0
stultifyingly , dumbfoundingly , mind-numbingly bad . 0
an effectively creepy , fear-inducing ( not fear-reducing ) film from japanese director hideo nakata , who takes the superstitious curse on chain letters and actually applies it . 1
sustains its dreamlike glide through a succession of cheesy coincidences and voluptuous cheap effects , not the least of which is rebecca romijn-stamos . 0
because of an unnecessary and clumsy last scene , ` swimfan ' left me with a very bad feeling . 0
no aspirations to social import inform the movie version . 0
sit through this one , and you wo n't need a magic watch to stop time ; your dvd player will do it for you . 0
for the first time in years , de niro digs deep emotionally , perhaps because he 's been stirred by the powerful work of his co-stars . 1
not since tom cruise in risky business has an actor made such a strong impression in his underwear . 1
an interesting story with a pertinent ( cinematically unique ) message , told fairly well and scored to perfection , i found myself struggling to put my finger on that elusive `` missing thing . '' 1
... routine , harmless diversion and little else . 1
is the time really ripe for a warmed-over james bond adventure , with a village idiot as the 007 clone ? 0
even the finest chef ca n't make a hotdog into anything more than a hotdog , and robert de niro ca n't make this movie anything more than a trashy cop buddy comedy . 0
the reality of the new live-action pinocchio he directed , cowrote and starred in borders on the grotesque . 0
samira makhmalbaf 's new film blackboards is much like the ethos of a stream of consciousness , although , it 's unfortunate for the viewer that the thoughts and reflections coming through are torpid and banal 0
a bloated gasbag thesis grotesquely impressed by its own gargantuan aura of self-importance ... 0
every time you look , sweet home alabama is taking another bummer of a wrong turn . 0
how do you spell cliché ? 0
no telegraphing is too obvious or simplistic for this movie . 0
director of photography benoit delhomme shot the movie in delicious colors , and the costumes and sets are grand . 1
i thought my own watch had stopped keeping time as i slogged my way through clockstoppers . 0
less dizzying than just dizzy , the jaunt is practically over before it begins . 0
overall the film feels like a low-budget tv pilot that could not find a buyer to play it on the tube . 0
they should have called it gutterball . 0
corpus collosum -- while undeniably interesting -- wore out its welcome well before the end credits rolled about 45 minutes in . 0
( a ) n utterly charming and hilarious film that reminded me of the best of the disney comedies from the 60s . 1
there 's too much falseness to the second half , and what began as an intriguing look at youth fizzles into a dull , ridiculous attempt at heart-tugging . 0
wince-inducing dialogue , thrift-shop costumes , prosthetic makeup by silly putty and kmart blue-light-special effects all conspire to test trekkie loyalty . 0
a rigorously structured and exquisitely filmed drama about a father and son connection that is a brief shooting star of love . 1
this is human comedy at its most amusing , interesting and confirming . 1
whaley 's determination to immerse you in sheer , unrelenting wretchedness is exhausting . 0
worth watching for dong jie 's performance -- and for the way it documents a culture in the throes of rapid change . 1
a poignant , artfully crafted meditation on mortality . 1
too restrained to be a freak show , too mercenary and obvious to be cerebral , too dull and pretentious to be engaging ... the isle defies an easy categorization . 0
vera 's three actors -- mollà , gil and bardem -- excel in insightful , empathetic performances . 1
it 's everything you do n't go to the movies for . 0
( grant 's ) bumbling magic takes over the film , and it turns out to be another winning star vehicle . 1
it gets onto the screen just about as much of the novella as one could reasonably expect , and is engrossing and moving in its own right . 1
velocity represents everything wrong with '' independent film '' as a commodified , sold-out concept on the american filmmaking scene . 0
but taken as a stylish and energetic one-shot , the queen of the damned can not be said to suck . 1
the piece plays as well as it does thanks in large measure to anspaugh 's three lead actresses . 1
suffocated by its fussy script and uptight characters , this musty adaptation is all the more annoying since it 's been packaged and sold back to us by hollywood . 0
but what are adults doing in the theater at all ? 0
like being trapped at a perpetual frat party ... how can something so gross be so boring ? 0
the man from elysian fields is a cold , bliss-less work that groans along thinking itself some important comment on how life throws us some beguiling curves . 0
this is n't even madonna 's swept away . 0
the experience of going to a film festival is a rewarding one ; the experiencing of sampling one through this movie is not . 0
american chai encourages rueful laughter at stereotypes only an indian-american would recognize . 0
my big fat greek wedding uses stereotypes in a delightful blend of sweet romance and lovingly dished out humor . 1
... a magnificent drama well worth tracking down . 1
oscar wilde 's masterpiece , the importance of being earnest , may be the best play of the 19th century . 1
jose campanella delivers a loosely autobiographical story brushed with sentimentality but brimming with gentle humor , bittersweet pathos , and lyric moments that linger like snapshots of memory . 1
but it still jingles in the pocket . 1
it 's a demented kitsch mess ( although the smeary digital video does match the muddled narrative ) , but it 's savvy about celebrity and has more guts and energy than much of what will open this year . 1
you really have to wonder how on earth anyone , anywhere could have thought they 'd make audiences guffaw with a script as utterly diabolical as this . 0
one from the heart . 1
made with no discernible craft and monstrously sanctimonious in dealing with childhood loss . 0
people cinema at its finest . 1
what 's surprising about full frontal is that despite its overt self-awareness , parts of the movie still manage to break past the artifice and thoroughly engage you . 1
and when you 're talking about a slapstick comedy , that 's a pretty big problem . 0
a working class `` us vs. them '' opera that leaves no heartstring untugged and no liberal cause unplundered . 1
nelson 's brutally unsentimental approach ... sucks the humanity from the film , leaving behind an horrific but weirdly unemotional spectacle . 0
one long string of cliches . 0
like watching a dress rehearsal the week before the show goes up : everything 's in place but something 's just a little off-kilter . 0
it 's hard to imagine alan arkin being better than he is in this performance . 1
the film will play equally well on both the standard and giant screens . 1
... a fun little timewaster , helped especially by the cool presence of jean reno . 1
something like scrubbing the toilet . 0
there 's enough melodrama in this magnolia primavera to make pta proud yet director muccino 's characters are less worthy of puccini than they are of daytime television . 0
may be far from the best of the series , but it 's assured , wonderfully respectful of its past and thrilling enough to make it abundantly clear that this movie phenomenon has once again reinvented itself for a new generation . 1
if there 's one thing this world needs less of , it 's movies about college that are written and directed by people who could n't pass an entrance exam . 0
writer/director joe carnahan 's grimy crime drama is a manual of precinct cliches , but it moves fast enough to cover its clunky dialogue and lapses in logic . 1
the result is a gaudy bag of stale candy , something from a halloween that died . 0
it 's a lovely film with lovely performances by buy and accorsi . 1
there 's something auspicious , and daring , too , about the artistic instinct that pushes a majority-oriented director like steven spielberg to follow a.i. with this challenging report so liable to unnerve the majority . 1
movie fans , get ready to take off ... the other direction . 0
not an objectionable or dull film ; it merely lacks everything except good intentions . 0
while its careful pace and seemingly opaque story may not satisfy every moviegoer 's appetite , the film 's final scene is soaringly , transparently moving . 1
a film about a young man finding god that is accessible and touching to the marrow . 1
a compelling spanish film about the withering effects of jealousy in the life of a young monarch whose sexual passion for her husband becomes an obsession . 1
an infectious cultural fable with a tasty balance of family drama and frenetic comedy . 1
i do n't think i laughed out loud once . 0
very special effects , brilliantly bold colors and heightened reality ca n't hide the giant achilles ' heel in `` stuart little 2 `` : there 's just no story , folks . 0
not the kind of film that will appeal to a mainstream american audience , but there is a certain charm about the film that makes it a suitable entry into the fest circuit . 1
it 's a beautiful madness . 1
when the film ended , i felt tired and drained and wanted to lie on my own deathbed for a while . 0
not really bad so much as distasteful : we need kidnapping suspense dramas right now like we need doomsday thrillers . 0
as ` chick flicks ' go , this one is pretty miserable , resorting to string-pulling rather than legitimate character development and intelligent plotting . 0
by candidly detailing the politics involved in the creation of an extraordinary piece of music , ( jones ) calls our attention to the inherent conflict between commerce and creativity . 1
one of the most significant moviegoing pleasures of the year . 1
prurient playthings aside , there 's little to love about this english trifle . 0
a grimly competent and stolid and earnest military courtroom drama . 1
at once half-baked and overheated . 0
the structure the film takes may find matt damon and ben affleck once again looking for residuals as this officially completes a good will hunting trilogy that was never planned . 1
the movie does a good job of laying out some of the major issues that we encounter as we journey through life . 1
very psychoanalytical -- provocatively so -- and also refreshingly literary . 1
aside from minor tinkering , this is the same movie you probably loved in 1994 , except that it looks even better . 1
the film makes a fatal mistake : it asks us to care about a young man whose only apparent virtue is that he is not quite as unpleasant as some of the people in his life . 0
a valueless kiddie paean to pro basketball underwritten by the nba . 0
based on a devilishly witty script by heather mcgowan and niels mueller , the film gets great laughs , but never at the expense of its characters 1
it 's as if you 're watching a movie that was made in 1978 but not released then because it was so weak , and it has been unearthed and released now , when it has become even weaker . 0
that 's a cheat . 0
it 's somewhat clumsy and too lethargically paced -- but its story about a mysterious creature with psychic abilities offers a solid build-up , a terrific climax , and some nice chills along the way . 0
it 's fun lite . 1
... an otherwise intense , twist-and-turn thriller that certainly should n't hurt talented young gaghan 's resume . 1
it confirms fincher 's status as a film maker who artfully bends technical know-how to the service of psychological insight . 1
the film contains no good jokes , no good scenes , barely a moment when carvey 's saturday night live-honed mimicry rises above the level of embarrassment . 0
a fitfully amusing romp that , if nothing else , will appeal to fans of malcolm in the middle and its pubescent star , frankie muniz . 1
it 's not original , and , robbed of the element of surprise , it does n't have any huge laughs in its story of irresponsible cops who love to play pranks . 0
though moonlight mile is replete with acclaimed actors and actresses and tackles a subject that 's potentially moving , the movie is too predictable and too self-conscious to reach a level of high drama . 0
a tender , witty , captivating film about friendship , love , memory , trust and loyalty . 1
for all its technical virtuosity , the film is so mired in juvenile and near-xenophobic pedagogy that it 's enough to make one pine for the day when godard can no longer handle the rigors of filmmaking . 0
this film seems thirsty for reflection , itself taking on adolescent qualities . 0
this nickleby thing might have more homosexual undertones than an eddie murphy film . 0
bogdanovich tantalizes by offering a peep show into the lives of the era 's creme de la celluloid . 1
but the power of these ( subjects ) is obscured by the majority of the film that shows a stationary camera on a subject that could be mistaken for giving a public oration , rather than contributing to a film 's narrative . 0
irwin is a man with enough charisma and audacity to carry a dozen films , but this particular result is ultimately held back from being something greater . 0
griffiths proves she 's that rare luminary who continually raises the standard of her profession . 1
just as moving , uplifting and funny as ever . 1
enormously entertaining for moviegoers of any age . 1
a lean , deftly shot , well-acted , weirdly retro thriller that recalls a raft of '60s and '70s european-set spy pictures . 1
this is a good script , good dialogue , funny even for adults . 1
the affectionate loopiness that once seemed congenital to demme 's perspective has a tough time emerging from between the badly dated cutesy-pie mystery scenario and the newfangled hollywood post-production effects . 0
this surreal gilliam-esque film is also a troubling interpretation of ecclesiastes . 1
i can take infantile humor ... but this is the sort of infantile that makes you wonder about changing the director and writer 's diapers . 0
this piece of channel 5 grade trash is , quite frankly , an insult to the intelligence of the true genre enthusiast . 0
a delightful coming-of-age story . 1
a spellbinding african film about the modern condition of rootlessness , a state experienced by millions around the globe . 1
a strangely compelling and brilliantly acted psychological drama . 1
the only excitement comes when the credits finally roll and you get to leave the theater . 0
the movie is dawn of the dead crossed with john carpenter 's ghosts of mars , with zombies not as ghoulish as the first and trains not as big as the second . 0
it has the charm of the original american road movies , feasting on the gorgeous , ramshackle landscape of the filmmaker 's motherland . 1
exciting and direct , with ghost imagery that shows just enough to keep us on our toes . 1
it 's a buggy drag . 0
it wants to tweak them with a taste of tangy new humor . 1
late marriage 's stiffness is unlikely to demonstrate the emotional clout to sweep u.s. viewers off their feet . 0
candid and comfortable ; a film that deftly balances action and reflection as it lets you grasp and feel the passion others have for their work . 1
a quiet treasure -- a film to be savored . 1
the movie , directed by mick jackson , leaves no cliche unturned , from the predictable plot to the characters straight out of central casting . 0
this is the sort of burly action flick where one coincidence pummels another , narrative necessity is a drunken roundhouse , and whatever passes for logic is a factor of the last plot device left standing . 0
teen movies have really hit the skids . 0
woody allen 's latest is an ambling , broad comedy about all there is to love -- and hate -- about the movie biz . 1
it 's made with deftly unsettling genre flair . 1
manages to show life in all of its banality when the intention is quite the opposite . 0
ultimately feels empty and unsatisfying , like swallowing a communion wafer without the wine . 0
collateral damage finally delivers the goods for schwarzenegger fans . 1
a giggle-inducing comedy with snappy dialogue and winning performances by an unlikely team of oscar-winners : susan sarandon and goldie hawn . 1
it 's too self-important and plodding to be funny , and too clipped and abbreviated to be an epic . 0
will amuse and provoke adventurous adults in specialty venues . 1
sometimes seems less like storytelling than something the otherwise compelling director needed to get off his chest . 0
but this films lacks the passion required to sell the material . 0
what is 100 % missing here is a script of even the most elemental literacy , an inkling of genuine wit , and anything resembling acting . 0
there 's a wickedly subversive bent to the best parts of birthday girl . 1
a better title , for all concerned , might be swept under the rug . 0
a wildly inconsistent emotional experience . 0
given how heavy-handed and portent-heavy it is , this could be the worst thing soderbergh has ever done . 0
despite the evocative aesthetics evincing the hollow state of modern love life , the film never percolates beyond a monotonous whine . 0
an absurdist comedy about alienation , separation and loss . 0
... mafia , rap stars and hood rats butt their ugly heads in a regurgitation of cinematic violence that gives brutal birth to an unlikely , but likable , hero . ' 1
his healthy sense of satire is light and fun ... 1
trademark american triteness and simplicity are tossed out the window with the intelligent french drama that deftly explores the difficult relationship between a father and son . 1
miller is playing so free with emotions , and the fact that children are hostages to fortune , that he makes the audience hostage to his swaggering affectation of seriousness . 1
impostor has a handful of thrilling moments and a couple of good performances , but the movie does n't quite fly . 0
part low rent godfather . 0
( serry ) wants to blend politics and drama , an admirable ambition . 1
for all the writhing and wailing , tears , rage and opium overdoses , there 's no sense of actual passion being washed away in love 's dissolution . 0
it 's fascinating to see how bettany and mcdowell play off each other . 1
in a way , the film feels like a breath of fresh air , but only to those that allow it in . 1
visually imaginative , thematically instructive and thoroughly delightful , it takes us on a roller-coaster ride from innocence to experience without even a hint of that typical kiddie-flick sentimentality . 1
the film 's welcome breeziness and some unbelievably hilarious moments -- most portraying the idiocy of the film industry -- make it mostly worth the trip . 1
add yet another hat to a talented head , clooney 's a good director . 1
stephen rea , aidan quinn , and alan bates play desmond 's legal eagles , and when joined by brosnan , the sight of this grandiloquent quartet lolling in pretty irish settings is a pleasant enough thing , ` tis . 1
bennett 's naturalistic performance speaks volumes more truth than any ` reality ' show , and anybody contemplating their own drastic life changes should watch some body first . 1
it 's inoffensive , cheerful , built to inspire the young people , set to an unending soundtrack of beach party pop numbers and aside from its remarkable camerawork and awesome scenery , it 's about as exciting as a sunburn . 0
while it 's genuinely cool to hear characters talk about early rap records ( sugar hill gang , etc. ) , the constant referencing of hip-hop arcana can alienate even the savviest audiences . 0
dull , lifeless , and amateurishly assembled . 0
mcconaughey 's fun to watch , the dragons are okay , not much fire in the script . 1
the far future may be awesome to consider , but from period detail to matters of the heart , this film is most transporting when it stays put in the past . 1
has all the depth of a wading pool . 0
a movie with a real anarchic flair . 1
a subject like this should inspire reaction in its audience ; the pianist does not . 0
... is an arthritic attempt at directing by callie khouri . 0
looking aristocratic , luminous yet careworn in jane hamilton 's exemplary costumes , rampling gives a performance that could not be improved upon . ' 1
#coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# originally from https://github.com/nlpyang/pytorch-transformers/blob/master/examples/run_glue.py
# Finetuning the library models for sequence classification on GLUE (Bert, XLM, XLNet, RoBERTa).
# Adapted to the SAG task and expanded to include more models from the huggingface library by Ulrike Pado, HFT Stuttgart.
from __future__ import absolute_import, division, print_function
import argparse
import glob
import logging
import os
import random
import json
import numpy as np
import torch
from torch.utils.data import (DataLoader, RandomSampler, SequentialSampler,
TensorDataset)
from torch.utils.data.distributed import DistributedSampler
try:
from torch.utils.tensorboard import SummaryWriter
except:
from tensorboardX import SummaryWriter
from tqdm import tqdm, trange
from transformers import (BertConfig,
BertForSequenceClassification, BertTokenizer,
DebertaConfig,
DebertaForSequenceClassification, DebertaTokenizer,
RobertaConfig,
RobertaForSequenceClassification,
RobertaTokenizer,
T5Config,
T5ForConditionalGeneration,
T5Tokenizer,
XLNetConfig,
XLNetForSequenceClassification,
XLNetTokenizer
)
from transformers import AdamW, get_linear_schedule_with_warmup
from transformers import glue_compute_metrics as compute_metrics
from transformers import glue_output_modes as output_modes
from transformers import glue_processors as processors
from transformers import glue_convert_examples_to_features as convert_examples_to_features
logger = logging.getLogger(__name__)
MODEL_CLASSES = {
'bert': (BertConfig, BertForSequenceClassification, BertTokenizer),
'xlnet': (XLNetConfig, XLNetForSequenceClassification, XLNetTokenizer),
'roberta': (RobertaConfig, RobertaForSequenceClassification, RobertaTokenizer),
'deberta': (DebertaConfig, DebertaForSequenceClassification, DebertaTokenizer),
't5': (T5Config, T5ForConditionalGeneration, T5Tokenizer)
}
def set_seed(args):
random.seed(args.seed)
np.random.seed(args.seed)
torch.manual_seed(args.seed)
if args.n_gpu > 0:
torch.cuda.manual_seed_all(args.seed)
def train(args, train_dataset, model, tokenizer):
""" Train the model """
if args.local_rank in [-1, 0]:
tb_writer = SummaryWriter()
args.train_batch_size = args.per_gpu_train_batch_size * max(1, args.n_gpu)
train_sampler = RandomSampler(train_dataset) if args.local_rank == -1 else DistributedSampler(train_dataset)
train_dataloader = DataLoader(train_dataset, sampler=train_sampler, batch_size=args.train_batch_size)
if args.max_steps > 0:
t_total = args.max_steps
args.num_train_epochs = args.max_steps // (len(train_dataloader) // args.gradient_accumulation_steps) + 1
else:
t_total = len(train_dataloader) // args.gradient_accumulation_steps * args.num_train_epochs
# Prepare optimizer and schedule (linear warmup and decay)
no_decay = ['bias', 'LayerNorm.weight']
optimizer_grouped_parameters = [
{'params': [p for n, p in model.named_parameters() if not any(nd in n for nd in no_decay)], 'weight_decay': args.weight_decay},
{'params': [p for n, p in model.named_parameters() if any(nd in n for nd in no_decay)], 'weight_decay': 0.0}
]
optimizer = AdamW(optimizer_grouped_parameters, lr=args.learning_rate, eps=args.adam_epsilon)
scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps=args.warmup_steps, num_training_steps=t_total)
if args.fp16:
try:
from apex import amp
except ImportError:
raise ImportError("Please install apex from https://www.github.com/nvidia/apex to use fp16 training.")
model, optimizer = amp.initialize(model, optimizer, opt_level=args.fp16_opt_level)
# multi-gpu training (should be after apex fp16 initialization)
if args.n_gpu > 1:
model = torch.nn.DataParallel(model)
# Distributed training (should be after apex fp16 initialization)
if args.local_rank != -1:
model = torch.nn.parallel.DistributedDataParallel(model, device_ids=[args.local_rank],
output_device=args.local_rank,
find_unused_parameters=True)
# Train!
logger.info("***** Running training *****")
logger.info(" Num examples = %d", len(train_dataset))
logger.info(" Num Epochs = %d", args.num_train_epochs)
logger.info(" Instantaneous batch size per GPU = %d", args.per_gpu_train_batch_size)
logger.info(" Total train batch size (w. parallel, distributed & accumulation) = %d",
args.train_batch_size * args.gradient_accumulation_steps * (torch.distributed.get_world_size() if args.local_rank != -1 else 1))
logger.info(" Gradient Accumulation steps = %d", args.gradient_accumulation_steps)
logger.info(" Total optimization steps = %d", t_total)
global_step = 0
tr_loss, logging_loss = 0.0, 0.0
model.zero_grad()
train_iterator = trange(int(args.num_train_epochs), desc="Epoch", disable=args.local_rank not in [-1, 0])
set_seed(args) # Added here for reproductibility (even between python 2 and 3)
for _ in train_iterator:
epoch_iterator = tqdm(train_dataloader, desc="Iteration", disable=args.local_rank not in [-1, 0])
for step, batch in enumerate(epoch_iterator):
model.train()
batch = tuple(t.to(args.device) for t in batch)
inputs = {'input_ids': batch[0],
'attention_mask': batch[1],
'labels': batch[3]}
if args.model_type != 'roberta':
inputs['token_type_ids'] = batch[2] # RoBERTa doesn't use segment_ids
outputs = model(**inputs)
loss = outputs[0] # model outputs are always tuple in transformers (see doc)
if args.n_gpu > 1:
loss = loss.mean() # mean() to average on multi-gpu parallel training
if args.gradient_accumulation_steps > 1:
loss = loss / args.gradient_accumulation_steps
if args.fp16:
with amp.scale_loss(loss, optimizer) as scaled_loss:
scaled_loss.backward()
else:
loss.backward()
tr_loss += loss.item()
if (step + 1) % args.gradient_accumulation_steps == 0:
if args.fp16:
torch.nn.utils.clip_grad_norm_(amp.master_params(optimizer), args.max_grad_norm)
else:
torch.nn.utils.clip_grad_norm_(model.parameters(), args.max_grad_norm)
optimizer.step()
scheduler.step() # Update learning rate schedule
model.zero_grad()
global_step += 1
if args.local_rank in [-1, 0] and args.logging_steps > 0 and global_step % args.logging_steps == 0:
logs = {}
if args.local_rank == -1 and args.evaluate_during_training: # Only evaluate when single GPU otherwise metrics may not average well
results = evaluate(args, model, tokenizer)
for key, value in results.items():
eval_key = 'eval_{}'.format(key)
logs[eval_key] = value
loss_scalar = (tr_loss - logging_loss) / args.logging_steps
learning_rate_scalar = scheduler.get_lr()[0]
logs['learning_rate'] = learning_rate_scalar
logs['loss'] = loss_scalar
logging_loss = tr_loss
for key, value in logs.items():
tb_writer.add_scalar(key, value, global_step)
print(json.dumps({**logs, **{'step': global_step}}))
if args.local_rank in [-1, 0] and args.save_steps > 0 and global_step % args.save_steps == 0:
# Save model checkpoint
output_dir = os.path.join(args.output_dir, 'checkpoint-{}'.format(global_step))
if not os.path.exists(output_dir):
os.makedirs(output_dir)
model_to_save = model.module if hasattr(model, 'module') else model # Take care of distributed/parallel training
model_to_save.save_pretrained(output_dir)
torch.save(args, os.path.join(output_dir, 'training_args.bin'))
logger.info("Saving model checkpoint to %s", output_dir)
if args.max_steps > 0 and global_step > args.max_steps:
epoch_iterator.close()
break
if args.max_steps > 0 and global_step > args.max_steps:
train_iterator.close()
break
if args.local_rank in [-1, 0]:
tb_writer.close()
return global_step, tr_loss / global_step
def evaluate(args, model, tokenizer, prefix=""):
# Loop to handle MNLI double evaluation (matched, mis-matched)
eval_task_names = ("mnli", "mnli-mm") if args.task_name == "mnli" else (args.task_name,)
eval_outputs_dirs = (args.output_dir, args.output_dir + '-MM') if args.task_name == "mnli" else (args.output_dir,)
results = {}
for eval_task, eval_output_dir in zip(eval_task_names, eval_outputs_dirs):
eval_dataset = load_and_cache_examples(args, eval_task, tokenizer, evaluate=True)
if not os.path.exists(eval_output_dir) and args.local_rank in [-1, 0]:
os.makedirs(eval_output_dir)
args.eval_batch_size = args.per_gpu_eval_batch_size * max(1, args.n_gpu)
# Note that DistributedSampler samples randomly
eval_sampler = SequentialSampler(eval_dataset)
eval_dataloader = DataLoader(eval_dataset, sampler=eval_sampler, batch_size=args.eval_batch_size)
# multi-gpu eval
if args.n_gpu > 1:
model = torch.nn.DataParallel(model)
# Eval!
logger.info("***** Running evaluation {} *****".format(prefix))
logger.info(" Num examples = %d", len(eval_dataset))
logger.info(" Batch size = %d", args.eval_batch_size)
eval_loss = 0.0
nb_eval_steps = 0
preds = None
out_label_ids = None
for batch in tqdm(eval_dataloader, desc="Evaluating"):
model.eval()
batch = tuple(t.to(args.device) for t in batch)
with torch.no_grad():
inputs = {'input_ids': batch[0],
'attention_mask': batch[1],
'labels': batch[3]}
if args.model_type != 'roberta':
inputs['token_type_ids'] = batch[2]
# RoBERTa doesn't use segment_ids
outputs = model(**inputs)
tmp_eval_loss, logits = outputs[:2]
eval_loss += tmp_eval_loss.mean().item()
nb_eval_steps += 1
if preds is None:
preds = logits.detach().cpu().numpy()
out_label_ids = inputs['labels'].detach().cpu().numpy()
else:
preds = np.append(preds, logits.detach().cpu().numpy(), axis=0)
out_label_ids = np.append(out_label_ids, inputs['labels'].detach().cpu().numpy(), axis=0)
eval_loss = eval_loss / nb_eval_steps
if args.output_mode == "classification":
preds = np.argmax(preds, axis=1)
elif args.output_mode == "regression":
preds = np.squeeze(preds)
result = compute_metrics(eval_task, preds, out_label_ids)
results.update(result)
output_eval_file = os.path.join(eval_output_dir, prefix, "eval_results.txt")
with open(output_eval_file, "w") as writer:
logger.info("***** Eval results {} *****".format(prefix))
for key in sorted(result.keys()):
logger.info(" %s = %s", key, str(result[key]))
writer.write("%s = %s\n" % (key, str(result[key])))
return results
def load_and_cache_examples(args, task, tokenizer, evaluate=False):
examples = []
if args.local_rank not in [-1, 0] and not evaluate:
torch.distributed.barrier() # Make sure only the first process in distributed training process the dataset, and the others will use the cache
processor = processors[task]()
output_mode = output_modes[task]
# Load data features from cache or dataset file
cached_features_file = os.path.join(args.data_dir, 'cached_{}_{}_{}_{}'.format(
'dev' if evaluate else 'train',
list(filter(None, args.model_name_or_path.split('/'))).pop(),
str(args.max_seq_length),
str(task)))
if os.path.exists(cached_features_file) and not args.overwrite_cache:
logger.info("Loading features from cached file %s", cached_features_file)
features = torch.load(cached_features_file)
else:
logger.info("Creating features from dataset file at %s", args.data_dir)
label_list = processor.get_labels()
if task in ['mnli', 'mnli-mm'] and args.model_type in ['roberta']:
# HACK(label indices are swapped in RoBERTa pretrained model)
label_list[1], label_list[2] = label_list[2], label_list[1]
examples = processor.get_dev_examples(args.data_dir) if evaluate else processor.get_train_examples(args.data_dir)
features = convert_examples_to_features(examples,
tokenizer,
label_list=label_list,
max_length=args.max_seq_length,
output_mode=output_mode,
task = task
#pad_on_left=bool(args.model_type in ['xlnet']), # pad on the left for xlnet
#pad_token=tokenizer.convert_tokens_to_ids([tokenizer.pad_token])[0],
#pad_token_segment_id=4 if args.model_type in ['xlnet'] else 0,
)
if args.local_rank in [-1, 0]:
logger.info("Saving features into cached file %s", cached_features_file)
torch.save(features, cached_features_file)
if args.local_rank == 0 and not evaluate:
torch.distributed.barrier() # Make sure only the first process in distributed training process the dataset, and the others will use the cache
# Convert to Tensors and build dataset
all_input_ids = torch.tensor([f.input_ids for f in features], dtype=torch.long)
all_attention_mask = torch.tensor([f.attention_mask for f in features], dtype=torch.long)
if args.model_type in ['roberta']: # fake this output for RoBERTa model
all_token_type_ids = torch.tensor([0]*len(features))
else:
all_token_type_ids = torch.tensor([f.token_type_ids for f in features], dtype=torch.long)
if output_mode == "classification":
all_labels = torch.tensor([f.label for f in features], dtype=torch.long)
elif output_mode == "regression":
all_labels = torch.tensor([f.label for f in features], dtype=torch.float)
dataset = TensorDataset(all_input_ids, all_attention_mask, all_token_type_ids, all_labels)
return dataset
def main():
parser = argparse.ArgumentParser()
## Required parameters
parser.add_argument("--data_dir", default=None, type=str, required=True,
help="The input data dir. Should contain the .tsv files (or other data files) for the task.")
parser.add_argument("--model_type", default=None, type=str, required=True,
help="Model type selected in the list: " + ", ".join(MODEL_CLASSES))
parser.add_argument("--model_name_or_path", default=None, type=str, required=True,
help="Path to pre-trained model")
parser.add_argument("--task_name", default=None, type=str, required=True,
help="The name of the task to train selected in the list: " + ", ".join(processors.keys()))
parser.add_argument("--output_dir", default=None, type=str, required=True,
help="The output directory where the model predictions and checkpoints will be written.")
## Other parameters
parser.add_argument("--config_name", default="", type=str,
help="Pretrained config name or path if not the same as model_name")
parser.add_argument("--tokenizer_name", default="", type=str,
help="Pretrained tokenizer name or path if not the same as model_name")
parser.add_argument("--cache_dir", default="", type=str,
help="Where do you want to store the pre-trained models downloaded from s3")
parser.add_argument("--max_seq_length", default=128, type=int,
help="The maximum total input sequence length after tokenization. Sequences longer "
"than this will be truncated, sequences shorter will be padded.")
parser.add_argument("--do_train", action='store_true',
help="Whether to run training.")
parser.add_argument("--do_eval", action='store_true',
help="Whether to run eval on the dev set.")
parser.add_argument("--evaluate_during_training", action='store_true',
help="Rul evaluation during training at each logging step.")
parser.add_argument("--do_lower_case", action='store_true',
help="Set this flag if you are using an uncased model.")
parser.add_argument("--per_gpu_train_batch_size", default=8, type=int,
help="Batch size per GPU/CPU for training.")
parser.add_argument("--per_gpu_eval_batch_size", default=8, type=int,
help="Batch size per GPU/CPU for evaluation.")
parser.add_argument('--gradient_accumulation_steps', type=int, default=1,
help="Number of updates steps to accumulate before performing a backward/update pass.")
parser.add_argument("--learning_rate", default=5e-5, type=float,
help="The initial learning rate for Adam.")
parser.add_argument("--weight_decay", default=0.0, type=float,
help="Weight deay if we apply some.")
parser.add_argument("--adam_epsilon", default=1e-8, type=float,
help="Epsilon for Adam optimizer.")
parser.add_argument("--max_grad_norm", default=1.0, type=float,
help="Max gradient norm.")
parser.add_argument("--num_train_epochs", default=3.0, type=float,
help="Total number of training epochs to perform.")
parser.add_argument("--max_steps", default=-1, type=int,
help="If > 0: set total number of training steps to perform. Override num_train_epochs.")
parser.add_argument("--warmup_steps", default=0, type=int,
help="Linear warmup over warmup_steps.")
parser.add_argument('--logging_steps', type=int, default=50,
help="Log every X updates steps.")
parser.add_argument('--save_steps', type=int, default=50,
help="Save checkpoint every X updates steps.")
parser.add_argument("--eval_all_checkpoints", action='store_true',
help="Evaluate all checkpoints starting with the same prefix as model_name ending and ending with step number")
parser.add_argument("--no_cuda", action='store_true',
help="Avoid using CUDA when available")
parser.add_argument('--overwrite_output_dir', action='store_true',
help="Overwrite the content of the output directory")
parser.add_argument('--overwrite_cache', action='store_true',
help="Overwrite the cached training and evaluation sets")
parser.add_argument('--seed', type=int, default=42,
help="random seed for initialization")
parser.add_argument('--fp16', action='store_true',
help="Whether to use 16-bit (mixed) precision (through NVIDIA apex) instead of 32-bit")
parser.add_argument('--fp16_opt_level', type=str, default='O1',
help="For fp16: Apex AMP optimization level selected in ['O0', 'O1', 'O2', and 'O3']."
"See details at https://nvidia.github.io/apex/amp.html")
parser.add_argument("--local_rank", type=int, default=-1,
help="For distributed training: local_rank")
parser.add_argument('--server_ip', type=str, default='', help="For distant debugging.")
parser.add_argument('--server_port', type=str, default='', help="For distant debugging.")
args = parser.parse_args()
if os.path.exists(args.output_dir) and os.listdir(args.output_dir) and args.do_train and not args.overwrite_output_dir:
raise ValueError("Output directory ({}) already exists and is not empty. Use --overwrite_output_dir to overcome.".format(args.output_dir))
# Setup distant debugging if needed
if args.server_ip and args.server_port:
# Distant debugging - see https://code.visualstudio.com/docs/python/debugging#_attach-to-a-local-script
import ptvsd
print("Waiting for debugger attach")
ptvsd.enable_attach(address=(args.server_ip, args.server_port), redirect_output=True)
ptvsd.wait_for_attach()
# Setup CUDA, GPU & distributed training
if args.local_rank == -1 or args.no_cuda:
device = torch.device("cuda" if torch.cuda.is_available() and not args.no_cuda else "cpu")
args.n_gpu = torch.cuda.device_count()
else: # Initializes the distributed backend which will take care of sychronizing nodes/GPUs
torch.cuda.set_device(args.local_rank)
device = torch.device("cuda", args.local_rank)
torch.distributed.init_process_group(backend='nccl')
args.n_gpu = 1
args.device = device
# Setup logging
logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s',
datefmt = '%m/%d/%Y %H:%M:%S',
level = logging.INFO if args.local_rank in [-1, 0] else logging.WARN)
logger.warning("Process rank: %s, device: %s, n_gpu: %s, distributed training: %s, 16-bits training: %s",
args.local_rank, device, args.n_gpu, bool(args.local_rank != -1), args.fp16)
# Set seed
set_seed(args)
# Prepare GLUE task
args.task_name = args.task_name.lower()
if args.task_name not in processors:
raise ValueError("Task not found: %s" % (args.task_name))
processor = processors[args.task_name]()
args.output_mode = output_modes[args.task_name]
label_list = processor.get_labels()
num_labels = len(label_list)
# Load pretrained model and tokenizer
if args.local_rank not in [-1, 0]:
torch.distributed.barrier() # Make sure only the first process in distributed training will download model & vocab
args.model_type = args.model_type.lower()
config_class, model_class, tokenizer_class = MODEL_CLASSES[args.model_type]
config = config_class.from_pretrained(args.config_name if args.config_name else args.model_name_or_path,
num_labels=num_labels,
finetuning_task=args.task_name,
cache_dir=args.cache_dir if args.cache_dir else None)
tokenizer = tokenizer_class.from_pretrained(args.tokenizer_name if args.tokenizer_name else args.model_name_or_path,
do_lower_case=args.do_lower_case,
cache_dir=args.cache_dir if args.cache_dir else None
)
model = model_class.from_pretrained(args.model_name_or_path,
from_tf=bool('.ckpt' in args.model_name_or_path),
config=config,
cache_dir=args.cache_dir if args.cache_dir else None)
if args.local_rank == 0:
torch.distributed.barrier() # Make sure only the first process in distributed training will download model & vocab
model.to(args.device)
logger.info("Training/evaluation parameters %s", args)
# Training
if args.do_train:
train_dataset = load_and_cache_examples(args, args.task_name, tokenizer, evaluate=False)
global_step, tr_loss = train(args, train_dataset, model, tokenizer)
logger.info(" global_step = %s, average loss = %s", global_step, tr_loss)
# Saving best-practices: if you use defaults names for the model, you can reload it using from_pretrained()
if args.do_train and (args.local_rank == -1 or torch.distributed.get_rank() == 0):
# Create output directory if needed
if not os.path.exists(args.output_dir) and args.local_rank in [-1, 0]:
os.makedirs(args.output_dir)
logger.info("Saving model checkpoint to %s", args.output_dir)
# Save a trained model, configuration and tokenizer using `save_pretrained()`.
# They can then be reloaded using `from_pretrained()`
model_to_save = model.module if hasattr(model, 'module') else model # Take care of distributed/parallel training
model_to_save.save_pretrained(args.output_dir)
tokenizer.save_pretrained(args.output_dir)
# Good practice: save your training arguments together with the trained model
torch.save(args, os.path.join(args.output_dir, 'training_args.bin'))
# Load a trained model and vocabulary that you have fine-tuned
model = model_class.from_pretrained(args.output_dir)
tokenizer = tokenizer_class.from_pretrained(args.output_dir)
model.to(args.device)
# Evaluation
results = {}
if args.do_eval and args.local_rank in [-1, 0]:
if args.do_train: # use the freshly trained model
tokenizer = tokenizer_class.from_pretrained(args.output_dir, do_lower_case=args.do_lower_case)
else: # no previous training, use model specificed in the arguments
tokenizer = tokenizer_class.from_pretrained(args.model_name_or_path, do_lower_case=args.do_lower_case)
checkpoints = [args.output_dir]
if args.eval_all_checkpoints:
checkpoints = list(os.path.dirname(c) for c in sorted(glob.glob(args.output_dir + '/**/' + args.model_name_or_path, recursive=True)))
logging.getLogger("transformers.modeling_utils").setLevel(logging.WARN) # Reduce logging
logger.info("Evaluate the following checkpoints: %s", checkpoints)
for checkpoint in checkpoints:
global_step = checkpoint.split('-')[-1] if len(checkpoints) > 1 else ""
prefix = checkpoint.split('/')[-1] if checkpoint.find('checkpoint') != -1 else ""
if args.do_train: # use the freshly trained model
model = model_class.from_pretrained(checkpoint)
else: # no previous training, use model specificed in the arguments
model = model_class.from_pretrained(args.model_name_or_path)
model.to(args.device)
result = evaluate(args, model, tokenizer, prefix=prefix)
result = dict((k + '_{}'.format(global_step), v) for k, v in result.items())
results.update(result)
return results
if __name__ == "__main__":
main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment