CogIE API

API List

Named Entity Recognition

API:
http://210.75.240.140:9988/ner
Input format:
Parameter Description Example
sentence raw text Ontario is the most populous province in Canada.
Output format:
Name Description Type Example
mention entity mention list "mention": ["Ontario"]
start start position int "start": 0
end end position int "end": 1
type entity type str "type": ""

Entity Typing

API:
http://210.75.240.140:9988/typing
Input format:
Parameter Description Example
sentence raw text New details about the midnight phone call from the president of the National Basketball Players Association, Chris Paul, to the former President of the United States, Barack Obama, that helped save the NBA season have surfaced.
Output format:
Name Description Type Example
mention entity mention list "mention": ["National", "Basketball", "Players", "Association"]
start start position int "start": 12
end end position int "end": 16
type entity type list "types": ["/ORGANIZATION", "/ORGANIZATION/CORPORATION"]

Entity Linking

API:
http://210.75.240.140:9988/linking
Input format:
Parameter Description Example
sentence raw text New details about the midnight phone call from the president of the National Basketball Players Association, Chris Paul, to the former President of the United States, Barack Obama, that helped save the NBA season have surfaced.
Output format:
Name Description Type Example
mention entity mention str "mention": "chris paul"
start start position int "start": 17
end end position int "end": 19
title entity name in KB str "title": "Chris Paul"
text entity description str "text": " Christopher Emmanuel Paul (born May 6, 1985) is an American professional basketball player "
id entity id str "id": "995483"
url wikidata link str "url": "https://en.wikipedia.org/wiki?curid=4987149"
cognet_link cognet link str "cognet_link": "http://cognet.top/detail.html?id=ent:E1071472"

Relation Extraction

API:
http://210.75.240.140:9988/relation
Input format:
Parameter Description Example
sentence raw text New details about the midnight phone call from the president of the National Basketball Players Association, Chris Paul, to the former President of the United States, Barack Obama, that helped save the NBA season have surfaced.
Output format:
Name Description Type Example
head_entity head entity dict "head_entity": {
"end": 16,
"mention": ["National", "Basketball", "Players", "Association"],
"start": 12
}
tail_entity tail entity dict "tail_entity": {
"end": 28,
"mention": ["United", "States"],
"start": 26
}
relations relations list "relations": ["http://www.wikidata.org/prop/direct/P17"]

Event Extraction

API:
http://210.75.240.140:9988/event
Input format:
Parameter Description Example
sentence raw text Well, let's look at what the president is actually proposing for people who have been harmed by a bad doctor.
Output format:
Name Description Type Example
trigger trigger dict "tail_entity": {
"end": 28,
"mention": ["United", "States"],
"start": 26
}
arguments arguments dict "arguments": [{
"end": 14,
"label": "Victim",
"mention": ["people"],
"start": 13
}, {
"end": 19,
"label": "Victim",
"mention": ["who", "have", "been", "harmed", "by"],
"start": 14
}, {
"end": 22,
"label": "Agent",
"mention": ["a", "bad", "doctor"],
"start": 19
}]

Frame-Semantic Parsing

API:
http://210.75.240.140:9988/frame
Input format:
Parameter Description Example
sentence raw text DALnet is an Internet Relay Chat (IRC) network made up of 33 servers, with a stable population of approximately 8,000 users in about 7,000 channels. DALnet is accessible by connecting with an IRC client to an active DALnet server on ports 6660 through 6669, and 7000. SSL users can connect on port 6697 as well. The generic round-robin address is irc.dal.net.
Output format:
Name Description Type Example
trigger trigger dict "frame": {
"frame": "Using",
"position": 23,
"word": "users"
}
arguments arguments dict "argument": [{
"end": 24,
"mention": ["users"],
"role": "instrument",
"start": 23
}]