Skip to content

Instantly share code, notes, and snippets.

@ampli
Created July 26, 2019 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ampli/8ea8e93b3a314ccbd762219056af7e20 to your computer and use it in GitHub Desktop.
Save ampli/8ea8e93b3a314ccbd762219056af7e20 to your computer and use it in GitHub Desktop.
Parsing the "And yet..." sentence with and without per-null-count pruning
Num: 1
%Parameters: </tmp/and-yet.batch
%link-grammar-5.6.2-86-g38986c796
%/tmp/link-grammar/master
%Dictionary directory: /usr/local/src/link-grammar-devel/master/data/en
+ time -o /tmp/link-grammar/master/time /tmp/link-grammar/master/link-parser/.libs/link-parser en
link-grammar: Info: Dictionary found at ../en/4.0.dict
link-grammar: Info: Dictionary version 5.6.3, locale en_US.UTF-8
link-grammar: Info: Library version link-grammar-5.7.0. Enter "!help" for help.
verbosity set to 2
Echoing of input sentence turned on.
limit set to 50000
short set to 20
spell set to 0
timeout set to 300
And yet he should be always ready to have a perfectly terrible scene, whenever we want one, and to become miserable, absolutely miserable, at a moment’s notice, and to overwhelm us with just reproaches in less than twenty minutes, and to be positively violent at the end of half an hour, and to leave us for ever at a quarter to eight, when we have to go and dress for dinner when, after that, one has seen him for really the last time, and he has refused to take back the little things he has given one, and promised never to communicate with one again, or to write one any foolish letters, he should be perfectly broken-hearted, and telegraph to one all day long, and send one little notes every half-hour by a private hansom, and dine quite alone at the club, so that every one should know how unhappy he was.
++++ Finished expression pruning 0.00 seconds
++++ Built disjuncts 0.08 seconds
++++ Eliminated duplicate disjuncts 0.03 seconds
++++ Encode for pruning 0.07 seconds
++++ power pruned 0.03 seconds
++++ pp pruning 0.00 seconds
++++ power pruned 0.01 seconds
++++ Encode for parsing 0.01 seconds
++++ Initialized fast matcher 0.03 seconds
++++ Counted parses (0 w/0 nulls) 11.94 seconds
++++ Built parse set 0.00 seconds
++++ Postprocessed all linkages 0.00 seconds
++++ Finished parse 0.00 seconds
No complete linkages found.
++++ Finished expression pruning 0.00 seconds
++++ Built disjuncts 0.06 seconds
++++ Eliminated duplicate disjuncts 0.03 seconds
++++ Encode for pruning 0.06 seconds
++++ power pruned 0.03 seconds
++++ pp pruning 0.00 seconds
++++ power pruned 0.01 seconds
++++ Encode for parsing 0.01 seconds
++++ Initialized fast matcher 0.06 seconds
++++ Counted parses (60129542116 w/1 null) 159.24 seconds
++++ Built parse set 0.76 seconds
link-grammar: Warning: Count overflow.
Considering a random subset of 50000 of an unknown and large number of linkages
Failing sentence contains the following words/morphemes:
LEFT-WALL and yet he should be always ready to have a perfectly terrible scene , whenever we want one become miserable absolutely at moment ’s notice overwhelm us with just reproaches in less than twenty minutes positively violent the end of half an hour leave for ever quarter eight when go dress dinner after that has seen him really last time refused take back little things given promised never communicate again or write any foolish letters broken-hearted telegraph all day long send notes every half-hour by private hansom dine quite alone club so know how unhappy was . RIGHT-WALL
++++ Postprocessed all linkages 6.08 seconds
++++ Sorted all linkages 0.01 seconds
++++ Finished parse 0.00 seconds
link-grammar: Warning: Combinatorial explosion! nulls=1 cnt=2147483647
Consider retrying the parse with the max allowed disjunct cost set lower.
At the command line, use !cost-max
++++ Time 166.37 seconds (166.37 total)
Found 2147483647 linkages (8 of 50000 random linkages had no P.P. violations) at null count 1
Linkage 1, cost vector = (UNUSED=1 DIS=41.33 LEN=876)
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->CPx---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------VJrsi----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
+------------------------------------------------------------>WV----------------------------------------------------------->+ +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------VJrpi-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| +-----------------------------------I----------------------------------+ | +-----------------------------------------------------------------------------------------------MVs-----------------------------------------------------------------------------------------------+ | | +---------------------------------MVa---------------------------------+ |
| | +------------------------------VJlsi-----------------------------+ +------------------------------------------I*a------------------------------------------+ +---------------------------------------I*t--------------------------------------+------------------------------------------------------------------------------VJrpi------------------------------------------------------------------------------+ +----------------------------------------CV-------------------------------------->+ | +--------------------------------------------------B*w--------------------------------------------------+ | +----------------------VJrpi----------------------+ | +------------------------------------------------------------------------------Xc------------------------------------------------------------------------------+
| | +-------------------MVs------------------+ | | +--------------------------------------VJlpi-------------------------------------+ | +----------------------------------VJlpi---------------------------------+ +-------------------------------I*t-------------------------------+ | +----------Cs----------+ | | +--------------Bp--------------+ +------------------I-----------------+ | | | +-----------------VJlpi-----------------+ | | +--------------------------Xca--------------------------+
| +---------->WV--------->+ | +--------------Os-------------+ +--------Xc--------+ | | | +-------------Xca------------+ | | | +-----------Pp-----------+ | | +----------------------------VJlpi---------------------------+ +--------MVp-------+------------J------------+ | | +<-----COd<-----+ +---------Wd---------+-------Sp------+ +---------Op---------+ +-----------Ss-----------+ | +-----------VJlpi-----------+ | | +------------------I*v------------------+ +--------------MVa-------------+ | | +-----------MVp-----------+ +--------Mam--------+ +------------MVs------------+------------CV----------->+ |
| +----Wdc---+ +-----Pa-----+ | | +----------Ds**x----------+ +----CV--->+ | | | +--------Pa-------+-------AJra-------+---MVx---+----------Ju----------+ | | | +----MVp----+-------Jp------+ +-----------Jp-----------+ | | +--------Pa-------+ +---Js---+ +---Mp---+ +----VJrpi---+------MVa-----+ | +-------SJls------+ +-----I----+ | +-----Xc-----+ | +----VC---+ +<----COa<---+ +--VJlpi-+--------------VJrpi--------------+ | +------Dmc------+ | +--------VJlst-------+------------MVi------------+ +--------MVa-------+ +---VJrpi---+-------Opn------+ | +------VJrsi-----+ +------VJlpi-----+ +----------MVpn---------+ | | | +-------SIsj------+ +---Js--+ +---SJls--+--------AJrc--------+ +---Js---+ +---Xd---+-----Cs----+ | +-----AF----+ |
+-->Wc---+-EBm-+ +--Ss-+--Ix--+-EBm-+ +--MVi-+ | +-PHc-+----EA----+----A---+ +--Xd-+--Cs-+-Sp-+-Os-+ | | | | +--AJla-+--EBm--+----EA----+ +Xd+ +Ds**c+--YS--+--Dmu--+ +-Xd-+--TO--+ +---Ox--+ | +----A----+ | +IDBVA+--EN-+---ND--+ +-Xd-+--TO--+ +--MVa--+ +--MVp-+ +Ds**v+-Mf-+-Js+ +-NSa+ +-Xd-+ +-I*a-+--Ox-+ +IDCAM+ | +Ds**c+---Mp--+-Jp-+ +-SJr+ +-Sp-+-MVi-+ +-VJlp+--VJrp-+--MVp-+---Ju---+ | +-Xd+---Js--+ | +Ss*s+--PP--+-Ox-+ | | +--DD-+ | +-Xd-+ +-Ss+---PP---+---MVi--+-Ift-+ | | +----A---+--Rn-+ +--PP--+--Os-+ +-Xd-+---VJrst--+ +---E--+ +---MVp---+-Js+ | +-Xd-+--TO-+-I*t-+--Os-+ +--DD--+ +-VJlsi+ +--Ss-+--Ift-+ +-------Em------+ +-Xd-+ +---MVp--+-Js+ +-DTa-+ | +-Xd-+-VJrpi-+-Os-+ | | +--Ds**c--+---Mp--+ +Ds**c+ | +-Xd-+ +--EAm-+-MVp-+ +Ds**c+ | +IDBUB+ +--Ds-+-Ss*s-+---I---+QI*d+--EAh-+ +-Ss-+ |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
LEFT-WALL and.ij yet.e he should.v be.v always ready.a to.r have.v a perfectly terrible.a scene.n , whenever we want.v one , and.j-v to.r become.v miserable.a ,.j absolutely miserable.a , at a moment.n ’s.p notice.n-u , and.j-v to.r overwhelm.v us with just.a reproaches.n in.r less than twenty minutes.u , and.j-v to.r be.v positively violent.a at the end.n of half an hour.i , and.j-v to.r leave.v us for ever at a quarter.n to.r eight ,.j when we have.v to.r go.v and.j-v dress.v for.p dinner.n-u when , after that.j-p , one has.v seen.v him for.r really.ij the last.a time.v , and.j-v he has.v refused.v-d to.r take.v back.v the little.a things.n he has.v given.v one , and.j-v promised.v-d never.e to.r communicate.v with one again , or.j-v to.r write.v one any foolish.a letters.v ,.j he should.v be.v perfectly broken-hearted[!].v-d , and.j-v telegraph.v to.r one all.a day.r long.e , and.j-v send.v one little.i notes.q every.d half-hour.n by a private.n hansom.n , and.j-c [dine] quite alone.a at the club.n , so that every.d one should.v know.v how unhappy.a he was.v-d .
Bye.
+ rc=0
master: 178.72u 0.57s 2:59.30e 1288772Kb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment