Changeset 34615 in project


Ignore:
Timestamp:
09/20/17 07:38:55 (4 weeks ago)
Author:
djireland
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/link-grammar

    r34614 r34615  
    3434      (display-linkage sentence opts (+ index 1)))))
    3535 
    36 (define (process-links sentence opts)
    37   (let* ([verbosity   (lg:get-verbosity opts)]
    38          [links-found (lg:linkages-found sentence)]
    39          [max-links   1024]
    40          [index       0])
    41     (display-linkage sentence opts 0)))
    42  
    4336(define (parse text dictionary opts)
    4437  (let* ([sentence     (lg:create-sentence text dictionary)]
     
    4942       (lg:set-max-null-count! opts (lg:sentence-length sentence))
    5043       (set! num-linkages (lg:parse-sentence sentence opts))))
    51     (process-links sentence opts)))
     44    (display-linkage sentence opts 0)))
    5245
    5346; Main Entry
     
    7265Constituents(0) -> (S (NP the black.a fox.n) (VP ran.v-d (PP from (NP the hunters.n))) .)
    7366
    74 Diagram(0) ->
     67 Diagram(0) ->
    7568    +------------------------Xp------------------------+       
    7669    +----------->WV----------->+                       |       
     
    7972    |      |     +---A--+--Ss--+--MVp-+   +--Dmc-+     +--RW--+
    8073    |      |     |      |      |      |   |      |     |      |
    81 LEFT-WALL the black.a fox.n ran.v-d from the hunters.n . RIGHT-WALL
     74 LEFT-WALL the black.a fox.n ran.v-d from the hunters.n . RIGHT-WALL
    8275
     76 Constituents(1) -> (S (NP the black.a fox.n) (VP ran.v-d (PP from (NP the hunters.n))) .)
    8377
    84 Constituents(1) -> (S (NP the black.a fox.n) (VP ran.v-d (PP from (NP the hunters.n))) .)
    85 
    86 Diagram(1) ->
     78 Diagram(1) ->
    8779    +------------------------Xp------------------------+       
    8880    +---------Wd--------+                              |       
     
    9082    |      |     +---A--+--Ss--+--MVp-+   +--Dmc-+     +--RW--+
    9183    |      |     |      |      |      |   |      |     |      |
    92 LEFT-WALL the black.a fox.n ran.v-d from the hunters.n . RIGHT-WALL
    93 
     84 LEFT-WALL the black.a fox.n ran.v-d from the hunters.n . RIGHT-WALL
    9485
    9586== API
Note: See TracChangeset for help on using the changeset viewer.