Changeset 34639 in project


Ignore:
Timestamp:
09/22/17 23:01:29 (4 weeks ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [220.233.44.123]:

File:
1 edited

Legend:

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

    r34632 r34639  
    2020
    2121<enscript highlight="scheme">
    22 (require-extension link-grammar)
     22(use (prefix link-grammar :lg))
    2323
    2424(define (display-linkage sentence opts index)
     
    100100
    101101
    102 <procedure>(lg:get-version) -> string</procedure>
    103 <procedure>(lg:get-dictionary-version dictionary*) -> string</procedure>
    104 <procedure>(lg:get-dictionary-locale) dictionary*) -> string</procedure>
     102<procedure>(get-version) -> string</procedure>
     103<procedure>(get-dictionary-version dictionary*) -> string</procedure>
     104<procedure>(get-dictionary-locale) dictionary*) -> string</procedure>
    105105
    106106
     
    109109==== Displaying Constituents
    110110
    111 <constant>lg:NO-DISPLAY</constant>
    112 <constant>lg:NO-MULTI-LINE</constant>
    113 <constant>lg:NO-BRACKET-TREE</constant>
    114 <constant>lg:NO-SINGLE-LINE</constant>
    115 <constant>lg:NO-MAX-STYLES</constant>
     111<constant>NO-DISPLAY</constant>
     112<constant>NO-MULTI-LINE</constant>
     113<constant>NO-BRACKET-TREE</constant>
     114<constant>NO-SINGLE-LINE</constant>
     115<constant>NO-MAX-STYLES</constant>
    116116
    117117==== Error Handling
    118118
    119 <constant>lg:FATAL</constant>
    120 <constant>lg:ERROR</constant>
    121 <constant>lg:WARN</constant>
    122 <constant>lg:INFO</constant>
    123 <constant>lg:DEBUG</constant>
    124 <constant>lg:TRACE</constant>
    125 <constant>lg:NONE</constant>
    126 
     119<constant>FATAL</constant>
     120<constant>ERROR</constant>
     121<constant>WARN</constant>
     122<constant>INFO</constant>
     123<constant>DEBUG</constant>
     124<constant>TRACE</constant>
     125<constant>NONE</constant>
    127126
    128127
     
    130129
    131130
    132 <procedure>(lg:create-default-dictionary)              -> dictionary*</procedure>
    133 <procedure>(lg:create-dictionary-from-utf8 string)     -> dictionary*</procedure>
    134 <procedure>(lg:create-dictionary-with-language string) -> dictionary*</procedure>
    135 <procedure>(lg:get-dictionary-language dictionary*)    -> string</procedure>
    136 <procedure>(lg:get-dictionary-data-dir dictionary*)    -> string</procedure>
    137 <procedure>(lg:set-dictionary-data-dir! string)</procedure>
    138 <procedure>(lg:delete-dictionary! dictionary*) </procedure>
    139 
     131<procedure>(create-default-dictionary)              -> dictionary*</procedure>
     132<procedure>(create-dictionary-from-utf8 string)     -> dictionary*</procedure>
     133<procedure>(create-dictionary-with-language string) -> dictionary*</procedure>
     134<procedure>(get-dictionary-language dictionary*)    -> string</procedure>
     135<procedure>(get-dictionary-data-dir dictionary*)    -> string</procedure>
     136<procedure>(set-dictionary-data-dir! string)</procedure>
     137<procedure>(delete-dictionary! dictionary*) </procedure>
    140138
    141139=== Parse Options
    142140
    143141
    144 <procedure>(lg:init-opts parse-options* int) -> parse-options* </procedure>
    145 <procedure>(lg:set-max-parse-time! parse-options* int)</procedure>
    146 <procedure>(lg:set-linkage-limit! parse-options* int)</procedure>
    147 <procedure>(lg:set-short-length! parse-options* int)</procedure>
    148 <procedure>(lg:set-disjunct-cost! parse-options* int)</procedure>
    149 <procedure>(lg:set-min-null-count! parse-options* int)</procedure>
    150 <procedure>(lg:set-max-null-count! parse-options* int)</procedure>
    151 <procedure>(lg:set-max-parse-time! parse-options* int)</procedure>
    152 <procedure>(lg:set-islands-ok! parse-options* bool)</procedure>
    153 <procedure>(lg:set-verbosity! parse-options* int)</procedure>
    154 <procedure>(lg:get-verbosity parse-options*) -> int </procedure>
    155 <procedure>(lg:resources-exhausted? parse-options*) -> bool </procedure>
    156 <procedure>(lg:memory-exhausted? parse-options*) -> bool </procedure>
    157 <procedure>(lg:timer-expired? parse-options*) -> bool </procedure>
    158 <procedure>(lg:reset-resources! parse-options*)</procedure>
    159 <procedure>(lg:delete-parse-options! parse-options*)</procedure>
     142<procedure>(init-opts parse-options* int) -> parse-options* </procedure>
     143<procedure>(set-max-parse-time! parse-options* int)</procedure>
     144<procedure>(set-linkage-limit! parse-options* int)</procedure>
     145<procedure>(set-short-length! parse-options* int)</procedure>
     146<procedure>(set-disjunct-cost! parse-options* int)</procedure>
     147<procedure>(set-min-null-count! parse-options* int)</procedure>
     148<procedure>(set-max-null-count! parse-options* int)</procedure>
     149<procedure>(set-max-parse-time! parse-options* int)</procedure>
     150<procedure>(set-islands-ok! parse-options* bool)</procedure>
     151<procedure>(set-verbosity! parse-options* int)</procedure>
     152<procedure>(get-verbosity parse-options*) -> int </procedure>
     153<procedure>(resources-exhausted? parse-options*) -> bool </procedure>
     154<procedure>(memory-exhausted? parse-options*) -> bool </procedure>
     155<procedure>(timer-expired? parse-options*) -> bool </procedure>
     156<procedure>(reset-resources! parse-options*)</procedure>
     157<procedure>(delete-parse-options! parse-options*)</procedure>
    160158
    161159
     
    163161
    164162
    165 <procedure>(lg:create-sentence string dictionary*) -> sentence* </procedure>
    166 <procedure>(lg:split-sentence sentence* parse-options*) -> int</procedure>
    167 <procedure>(lg:parse-sentence sentence* parse-options*) -> int</procedure>
    168 <procedure>(lg:sentence-length sentence*) -> int</procedure>
    169 <procedure>(lg:sentence-null-count sentence*) -> int</procedure>
    170 <procedure>(lg:sentence-disjunct-cost sentence* int) -> int</procedure>
    171 <procedure>(lg:sentence-link-cost sentence* int) -> int </procedure>
    172 <procedure>(lg:linkages-found sentence*) -> int</procedure>
    173 <procedure>(lg:linkages-post-processed sentence*) -> int</procedure>
    174 <procedure>(lg:linkages-violated sentence* int) -> int</procedure>
    175 <procedure>(lg:valid-linkages sentence*) -> int</procedure>
    176 <procedure>(lg:delete-sentence! sentence*)</procedure>
    177 
     163<procedure>(create-sentence string dictionary*) -> sentence* </procedure>
     164<procedure>(split-sentence sentence* parse-options*) -> int</procedure>
     165<procedure>(parse-sentence sentence* parse-options*) -> int</procedure>
     166<procedure>(sentence-length sentence*) -> int</procedure>
     167<procedure>(sentence-null-count sentence*) -> int</procedure>
     168<procedure>(sentence-disjunct-cost sentence* int) -> int</procedure>
     169<procedure>(sentence-link-cost sentence* int) -> int </procedure>
     170<procedure>(linkages-found sentence*) -> int</procedure>
     171<procedure>(linkages-post-processed sentence*) -> int</procedure>
     172<procedure>(linkages-violated sentence* int) -> int</procedure>
     173<procedure>(valid-linkages sentence*) -> int</procedure>
     174<procedure>(delete-sentence! sentence*)</procedure>
    178175                       
    179176=== Linkages
    180177
    181178
    182 <procedure>(lg:create-linkage int sentence* parse-options*) -> int </procedure>
    183 <procedure>(lg:corpus-cost linkage*) -> double </procedure>
    184 <procedure>(lg:get-lword linkage* int) -> int </procedure>
    185 <procedure>(lg:get-rword linkage* int) -> int </procedure>
    186 <procedure>(lg:get-words linkage*) -> list </procedure>
    187 <procedure>(lg:get-word linkage* int) -> string </procedure>
    188 <procedure>(lg:get-constituents linkage* int) -> string </procedure>
    189 <procedure>(lg:get-diagram linkage* bool int) -> string</procedure>
    190 <procedure>(lg:get-postscript inkage* bool bool) -> string </procedure>
    191 <procedure>(lg:get-disjuncts linkage*) -> string </procedure>
    192 <procedure>(lg:get-links-domains linkage*) -> string </procedure>
    193 <procedure>(lg:get-pp-msgs linkage*) -> string </procedure>
    194 <procedure>(lg:get-senses linkage*) -> string </procedure>
    195 <procedure>(lg:get-violation-name linkage*) -> string </procedure>
    196 <procedure>(lg:link-length linkage* int) -> int </procedure>
    197 <procedure>(lg:link-label linkage* int) -> int </procedure>
    198 <procedure>(lg:link-llabel linkage* int) -> int </procedure>
    199 <procedure>(lg:link-rlabel linkage* int) -> int </procedure>
    200 <procedure>(lg:link-cost linkage*) -> int </procedure>
    201 <procedure>(lg:link-domain-names  linkage* int) -> list </procedure>
    202 <procedure>(lg:num-words linkage*) -> int </procedure>
    203 <procedure>(lg:num-links linkage*) -> int </procedure>
    204 <procedure>(lg:num-domains linkage* int) -> int </procedure>
    205 <procedure>(lg:unused-word-cost linkage*) -> int </procedure>
    206 <procedure>(lg:delete-linkage! linkage*)</procedure>
     179<procedure>(create-linkage int sentence* parse-options*) -> int </procedure>
     180<procedure>(corpus-cost linkage*) -> double </procedure>
     181<procedure>(get-lword linkage* int) -> int </procedure>
     182<procedure>(get-rword linkage* int) -> int </procedure>
     183<procedure>(get-words linkage*) -> list </procedure>
     184<procedure>(get-word linkage* int) -> string </procedure>
     185<procedure>(get-constituents linkage* int) -> string </procedure>
     186<procedure>(get-diagram linkage* bool int) -> string</procedure>
     187<procedure>(get-postscript inkage* bool bool) -> string </procedure>
     188<procedure>(get-disjuncts linkage*) -> string </procedure>
     189<procedure>(get-links-domains linkage*) -> string </procedure>
     190<procedure>(get-pp-msgs linkage*) -> string </procedure>
     191<procedure>(get-senses linkage*) -> string </procedure>
     192<procedure>(get-violation-name linkage*) -> string </procedure>
     193<procedure>(link-length linkage* int) -> int </procedure>
     194<procedure>(link-label linkage* int) -> int </procedure>
     195<procedure>(link-llabel linkage* int) -> int </procedure>
     196<procedure>(link-rlabel linkage* int) -> int </procedure>
     197<procedure>(link-cost linkage*) -> int </procedure>
     198<procedure>(link-domain-names  linkage* int) -> list </procedure>
     199<procedure>(num-words linkage*) -> int </procedure>
     200<procedure>(num-links linkage*) -> int </procedure>
     201<procedure>(num-domains linkage* int) -> int </procedure>
     202<procedure>(unused-word-cost linkage*) -> int </procedure>
     203<procedure>(delete-linkage! linkage*)</procedure>
    207204
    208205== Changelog
Note: See TracChangeset for help on using the changeset viewer.