Changeset 34624 in project


Ignore:
Timestamp:
09/20/17 08:17:16 (3 months ago)
Author:
djireland
Message:
 
File:
1 edited

Legend:

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

    r34623 r34624  
    2828        (let ([constituents (lg:get-constituents linkage lg:MAX-STYLES)]
    2929              [diagram      (lg:get-diagram linkage #t 80)])
    30           (print "Constituents(" index ") -> " constituents)
    31           (print "Diagram(" index ") -> "  diagram)
     30          (print constituents)
     31          (print diagram)
    3232          (lg:delete-linkage! linkage))))
    3333    (when (<= index links-found)
     
    6666'''Produces the following output:'''
    6767
    68  Constituents(0) -> (S (NP the black.a fox.n)
     68 (S (NP the black.a fox.n)
    6969    (VP ran.v-d
    7070        (PP from
    7171            (NP the hunters.n))))
    7272
    73  Diagram(0) ->
    7473    +------------------------Xp------------------------+       
    7574    +----------->WV----------->+                       |       
     
    8079 LEFT-WALL the black.a fox.n ran.v-d from the hunters.n . RIGHT-WALL
    8180
    82  Constituents(1) -> (S (NP the black.a fox.n)
     81 (S (NP the black.a fox.n)
    8382    (VP ran.v-d
    8483        (PP from
    8584            (NP the hunters.n))))
    86 
    87  Diagram(1) ->
     85 
    8886    +------------------------Xp------------------------+       
    8987    +---------Wd--------+                              |       
Note: See TracChangeset for help on using the changeset viewer.