REL is a modular Entity Linking package that can both be integrated in existing pipelines or be used as an API. REL has various meanings, one might first notice that it stands for relation, which is a suiting name for the problems that can be tackled with this package. Additionally, in Dutch a 'rel' means a disturbance of the public order, which is exactly what we aim to achieve with the release of this package.
import requests IP_ADDRESS = "http://gem.cs.ru.nl/api" PORT = "80" text_doc = "If you're going to try, go all the way - Charles Bukowski" # Example EL. document = { "text": text_doc, "spans": [] } # Example ED. document = { "text": text_doc, "spans": [(41, 16)] } API_result = requests.post("{}:{}".format(IP_ADDRESS, PORT), json=document).json()
github地址:https://github.com/informagi/REL