File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -423,27 +423,28 @@ def goal_test(self, state):
423
423
424
424
>>> P3.samples(20)
425
425
'flatland by edwin a abbott 1884 to the wake of a certificate from nature herself proving the equal sided triangle'
426
+ """ )
427
+ __doc__ += """
426
428
427
429
## Probabilities of some common n-grams
428
- >>> P1['the']
429
- 0.061139348356200607
430
+ >>> P1['the'] #doctest:+ELLIPSIS
431
+ 0.0611...
430
432
431
- >>> P2[('of', 'the')]
432
- 0.010812081325655188
433
+ >>> P2[('of', 'the')] #doctest:+ELLIPSIS
434
+ 0.0108...
433
435
434
436
>>> P3[('', '', 'but')]
435
437
0.0
436
438
437
- >>> P3[('so', 'as', 'to')]
438
- 0.00032318721353860618
439
+ >>> P3[('so', 'as', 'to')] #doctest:+ELLIPSIS
440
+ 0.000323...
439
441
440
442
## Distributions given the previous n-1 words
441
443
>>> P2.cond_prob['went',].dictionary
444
+ {}
442
445
>>> P3.cond_prob['in', 'order'].dictionary
443
446
{'to': 6}
444
- """ )
445
447
446
- __doc__ += """
447
448
448
449
## Build and test an IR System
449
450
>>> uc = UnixConsultant()
You can’t perform that action at this time.
0 commit comments