-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlamapi_routes_test
More file actions
31 lines (20 loc) · 2.44 KB
/
lamapi_routes_test
File metadata and controls
31 lines (20 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Test Http requests for LAM api:
**Continuousdoc2vec:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/temporal/continuousdoc2vec/fetch -d '{"resource_ids": ['39435', '39426', '39425', '38657']}'
**Continuouswikifier2order:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/ordonize/continuouswikification2order/reordonize -d '{"resource_id": '39420', "candidates": ['39435', '39426', '39425', '38657']}'
**Continuouswikifier:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/temporal/continuouswikifier/fetch -d '{"resource_ids": ['39435', '39426', '39425', '38657'], "wikification_type": 'SIMPLE'}'
**difficulty:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/difficulty/conpersec/res -d '{"resource_ids": ['39435', '39426', '39425', '38657']}'
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/difficulty/tfidf2technicity/res -d '{"resource_ids": ['39435', '39426', '39425', '38657']}'
**doc2vec:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/distance/doc2vec/fetch -d '{"resource_ids": ['39435', '39426', '39425', '38657']}'
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/distance/doc2vec/knn/res -d '{"resource_id": '39435'}'
**predict_missing_deponcandidatetype:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/missingresource/missingresources/predictmissing -d '{"previous": '39435', "after": '7', "candidate_ids": ['39435', '9', '7', '7']}'
**tfidf:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/distance/text2tfidf/fetch -d '{"resource_ids": ['39435', '39426', '39425', '38657'], "tfidf_type": 'SIMPLE'}'
**wikifierModel routes:
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:5000/distance/wikifier/fetch -d '{"resource_ids": ['39435', '39426', '39425', '38657'], "wikification_type": 'SIMPLE'}'
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/distance/wikifier/text -d '{"resource_texts": ['Your text1 here...'', 'Your text2 here...''], "wikification_type": 'SIMPLE'}'