pynif
pynif copied to clipboard
A small Python library for NLP Interchange Format (NIF) for NER(D) systems
I have a function that looks something like this: ``` def print_nif_contexts(filepath: str): with open(filepath, "r", encoding="utf8") as file: file_content = file.readlines() nif_content = "".join(file_content) nif_doc = NIFCollection.loads(nif_content) for context...
I have updated the package by adding an algorithm based on the paper Linked-Data Aware URI Schemes for Referencing Text Fragments (https://doi.org/10.1007/978-3-642-33876-2_17) to create ContextHashBasedStrings. I added the algorithm as...