EngVallex – REST-API
2 methods
i/ verbs - searching by verbs (lemmas)
ii/ frames - searching by frames (frame IDs)
i/ searching by verbs
parameters
- optional
-
verb – string (with regular expressions) – verb lemma, default value is ".*"
-
verbsLimit – number – maximum of listed verbs, default value is “1000”
-
examplesLimit – number – maximum of listed sentences from corpora for one frame, default value is “5”
-
examplesForm – type of listing sentences from corpora – value “plain” or “complex”, default value is “plain”
output
- number of found frames for entered verbs
- found frames in form:
verb_lemma1
frame_id1
informations from engvallex:
frame_elements:
func func1, …, funcN
func_alt1,…,func_altN
notes
examples from pdt_vallex
examples from pcedt
frame_id2
...
frame_idN
verb_lemma2
...
examples
http://lindat.mff.cuni.cz/services/EngVallex/api/verbs?verb=ab.*&examplesLimit=3&examplesForm=plain&verbsLimit=2
or
curl --data 'verb=ab.*&examplesLimit=3&examplesForm=plain&verbsLimit=2' http://lindat.mff.cuni.cz/services/EngVallex/api/verbs
ii) searching by frames
parameters
- optional
-
frame – string (with regular expressions) – frame ID, default value is ".*"
-
framesLimit – number – maximum of listed frames, default value is “1000”
-
examplesLimit – number – maximum of listed sentences from corpora for one frame, default value is “5”
-
examplesForm – type of listing sentences from corpora – value “plain” or “complex”, default value is “plain”
output
- number of found frames with entered frame ID
- informations (in the same form as for searching by verbs)
examples
http://lindat.mff.cuni.cz/services/EngVallex/api/frames?frame=ev-w202.*&examplesLimit=3&examplesForm=plain&framesLimit=2
or
curl --data 'frame=ev-w202.*&examplesLimit=3&examplesForm=plain&framesLimit=2' http://lindat.mff.cuni.cz/services/EngVallex/api/frames