├── .gitignore ├── EL ├── EntityLinker.py ├── __init__.py ├── assets │ └── custom_kb.jsonl ├── indexes │ ├── concept_aliases.json │ ├── nmslib_index.bin │ ├── tfidf_vectorizer.joblib │ └── tfidf_vectors_sparse.npz ├── readme.md └── scripts │ ├── candidate_generation.py │ ├── create_linker.py │ ├── file_cache.py │ ├── linker_utils.py │ ├── linking.py │ └── linking_utils.py ├── NER ├── EntityExtractor.py ├── __init__.py ├── assets │ ├── annotations_dev.jsonl │ ├── annotations_test.jsonl │ └── annotations_train.jsonl ├── configs │ ├── ner_tok2vec.cfg │ └── ner_trf.cfg ├── data │ ├── dev.spacy │ ├── test.spacy │ └── train.spacy ├── project.yml ├── readme.md ├── scripts │ └── parse_data.py └── training │ ├── model-best │ ├── config.cfg │ ├── meta.json │ ├── ner │ │ ├── cfg │ │ ├── model │ │ └── moves │ ├── tok2vec │ │ ├── cfg │ │ └── model │ ├── tokenizer │ └── vocab │ │ ├── key2row │ │ ├── lookups.bin │ │ ├── strings.json │ │ └── vectors │ └── model-last │ ├── config.cfg │ ├── meta.json │ ├── ner │ ├── cfg │ ├── model │ └── moves │ ├── tok2vec │ ├── cfg │ └── model │ ├── tokenizer │ └── vocab │ ├── key2row │ ├── lookups.bin │ ├── strings.json │ └── vectors ├── PipelineModel.py ├── RE ├── RelationExtractor.py ├── __init__.py ├── assets │ ├── annotations_dev.jsonl │ ├── annotations_test.jsonl │ └── annotations_train.jsonl ├── configs │ ├── rel_tok2vec.cfg │ └── rel_trf.cfg ├── data │ ├── dev.spacy │ ├── test.spacy │ └── train.spacy ├── project.yml ├── readme.md ├── scripts │ ├── custom_functions.py │ ├── evaluate.py │ ├── parse_data.py │ ├── rel_model.py │ └── rel_pipe.py └── training │ ├── model-best │ ├── config.cfg │ ├── meta.json │ ├── relation_extractor │ │ ├── cfg │ │ └── model │ ├── tok2vec │ │ ├── cfg │ │ └── model │ ├── tokenizer │ └── vocab │ │ ├── key2row │ │ ├── lookups.bin │ │ ├── strings.json │ │ └── vectors │ └── model-last │ ├── config.cfg │ ├── meta.json │ ├── relation_extractor │ ├── cfg │ └── model │ ├── tok2vec │ ├── cfg │ └── model │ ├── tokenizer │ └── vocab │ ├── key2row │ ├── lookups.bin │ ├── strings.json │ └── vectors ├── README.md ├── example.png ├── pipeline.yml ├── requirements.txt └── utils.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/.gitignore -------------------------------------------------------------------------------- /EL/EntityLinker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/EntityLinker.py -------------------------------------------------------------------------------- /EL/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/__init__.py -------------------------------------------------------------------------------- /EL/assets/custom_kb.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/assets/custom_kb.jsonl -------------------------------------------------------------------------------- /EL/indexes/concept_aliases.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/indexes/concept_aliases.json -------------------------------------------------------------------------------- /EL/indexes/nmslib_index.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/indexes/nmslib_index.bin -------------------------------------------------------------------------------- /EL/indexes/tfidf_vectorizer.joblib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/indexes/tfidf_vectorizer.joblib -------------------------------------------------------------------------------- /EL/indexes/tfidf_vectors_sparse.npz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/indexes/tfidf_vectors_sparse.npz -------------------------------------------------------------------------------- /EL/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/readme.md -------------------------------------------------------------------------------- /EL/scripts/candidate_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/candidate_generation.py -------------------------------------------------------------------------------- /EL/scripts/create_linker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/create_linker.py -------------------------------------------------------------------------------- /EL/scripts/file_cache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/file_cache.py -------------------------------------------------------------------------------- /EL/scripts/linker_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/linker_utils.py -------------------------------------------------------------------------------- /EL/scripts/linking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/linking.py -------------------------------------------------------------------------------- /EL/scripts/linking_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/EL/scripts/linking_utils.py -------------------------------------------------------------------------------- /NER/EntityExtractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/EntityExtractor.py -------------------------------------------------------------------------------- /NER/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /NER/assets/annotations_dev.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/assets/annotations_dev.jsonl -------------------------------------------------------------------------------- /NER/assets/annotations_test.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/assets/annotations_test.jsonl -------------------------------------------------------------------------------- /NER/assets/annotations_train.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/assets/annotations_train.jsonl -------------------------------------------------------------------------------- /NER/configs/ner_tok2vec.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/configs/ner_tok2vec.cfg -------------------------------------------------------------------------------- /NER/configs/ner_trf.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/configs/ner_trf.cfg -------------------------------------------------------------------------------- /NER/data/dev.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/data/dev.spacy -------------------------------------------------------------------------------- /NER/data/test.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/data/test.spacy -------------------------------------------------------------------------------- /NER/data/train.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/data/train.spacy -------------------------------------------------------------------------------- /NER/project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/project.yml -------------------------------------------------------------------------------- /NER/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/readme.md -------------------------------------------------------------------------------- /NER/scripts/parse_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/scripts/parse_data.py -------------------------------------------------------------------------------- /NER/training/model-best/config.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/config.cfg -------------------------------------------------------------------------------- /NER/training/model-best/meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/meta.json -------------------------------------------------------------------------------- /NER/training/model-best/ner/cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/ner/cfg -------------------------------------------------------------------------------- /NER/training/model-best/ner/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/ner/model -------------------------------------------------------------------------------- /NER/training/model-best/ner/moves: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/ner/moves -------------------------------------------------------------------------------- /NER/training/model-best/tok2vec/cfg: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /NER/training/model-best/tok2vec/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/tok2vec/model -------------------------------------------------------------------------------- /NER/training/model-best/tokenizer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/tokenizer -------------------------------------------------------------------------------- /NER/training/model-best/vocab/key2row: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/vocab/key2row -------------------------------------------------------------------------------- /NER/training/model-best/vocab/lookups.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/vocab/lookups.bin -------------------------------------------------------------------------------- /NER/training/model-best/vocab/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/vocab/strings.json -------------------------------------------------------------------------------- /NER/training/model-best/vocab/vectors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-best/vocab/vectors -------------------------------------------------------------------------------- /NER/training/model-last/config.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/config.cfg -------------------------------------------------------------------------------- /NER/training/model-last/meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/meta.json -------------------------------------------------------------------------------- /NER/training/model-last/ner/cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/ner/cfg -------------------------------------------------------------------------------- /NER/training/model-last/ner/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/ner/model -------------------------------------------------------------------------------- /NER/training/model-last/ner/moves: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/ner/moves -------------------------------------------------------------------------------- /NER/training/model-last/tok2vec/cfg: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /NER/training/model-last/tok2vec/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/tok2vec/model -------------------------------------------------------------------------------- /NER/training/model-last/tokenizer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/tokenizer -------------------------------------------------------------------------------- /NER/training/model-last/vocab/key2row: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/vocab/key2row -------------------------------------------------------------------------------- /NER/training/model-last/vocab/lookups.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/vocab/lookups.bin -------------------------------------------------------------------------------- /NER/training/model-last/vocab/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/vocab/strings.json -------------------------------------------------------------------------------- /NER/training/model-last/vocab/vectors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/NER/training/model-last/vocab/vectors -------------------------------------------------------------------------------- /PipelineModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/PipelineModel.py -------------------------------------------------------------------------------- /RE/RelationExtractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/RelationExtractor.py -------------------------------------------------------------------------------- /RE/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RE/assets/annotations_dev.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/assets/annotations_dev.jsonl -------------------------------------------------------------------------------- /RE/assets/annotations_test.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/assets/annotations_test.jsonl -------------------------------------------------------------------------------- /RE/assets/annotations_train.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/assets/annotations_train.jsonl -------------------------------------------------------------------------------- /RE/configs/rel_tok2vec.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/configs/rel_tok2vec.cfg -------------------------------------------------------------------------------- /RE/configs/rel_trf.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/configs/rel_trf.cfg -------------------------------------------------------------------------------- /RE/data/dev.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/data/dev.spacy -------------------------------------------------------------------------------- /RE/data/test.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/data/test.spacy -------------------------------------------------------------------------------- /RE/data/train.spacy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/data/train.spacy -------------------------------------------------------------------------------- /RE/project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/project.yml -------------------------------------------------------------------------------- /RE/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/readme.md -------------------------------------------------------------------------------- /RE/scripts/custom_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/scripts/custom_functions.py -------------------------------------------------------------------------------- /RE/scripts/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/scripts/evaluate.py -------------------------------------------------------------------------------- /RE/scripts/parse_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/scripts/parse_data.py -------------------------------------------------------------------------------- /RE/scripts/rel_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/scripts/rel_model.py -------------------------------------------------------------------------------- /RE/scripts/rel_pipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/scripts/rel_pipe.py -------------------------------------------------------------------------------- /RE/training/model-best/config.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/config.cfg -------------------------------------------------------------------------------- /RE/training/model-best/meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/meta.json -------------------------------------------------------------------------------- /RE/training/model-best/relation_extractor/cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/relation_extractor/cfg -------------------------------------------------------------------------------- /RE/training/model-best/relation_extractor/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/relation_extractor/model -------------------------------------------------------------------------------- /RE/training/model-best/tok2vec/cfg: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /RE/training/model-best/tok2vec/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/tok2vec/model -------------------------------------------------------------------------------- /RE/training/model-best/tokenizer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/tokenizer -------------------------------------------------------------------------------- /RE/training/model-best/vocab/key2row: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/vocab/key2row -------------------------------------------------------------------------------- /RE/training/model-best/vocab/lookups.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/vocab/lookups.bin -------------------------------------------------------------------------------- /RE/training/model-best/vocab/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/vocab/strings.json -------------------------------------------------------------------------------- /RE/training/model-best/vocab/vectors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-best/vocab/vectors -------------------------------------------------------------------------------- /RE/training/model-last/config.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/config.cfg -------------------------------------------------------------------------------- /RE/training/model-last/meta.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/meta.json -------------------------------------------------------------------------------- /RE/training/model-last/relation_extractor/cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/relation_extractor/cfg -------------------------------------------------------------------------------- /RE/training/model-last/relation_extractor/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/relation_extractor/model -------------------------------------------------------------------------------- /RE/training/model-last/tok2vec/cfg: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /RE/training/model-last/tok2vec/model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/tok2vec/model -------------------------------------------------------------------------------- /RE/training/model-last/tokenizer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/tokenizer -------------------------------------------------------------------------------- /RE/training/model-last/vocab/key2row: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/vocab/key2row -------------------------------------------------------------------------------- /RE/training/model-last/vocab/lookups.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/vocab/lookups.bin -------------------------------------------------------------------------------- /RE/training/model-last/vocab/strings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/vocab/strings.json -------------------------------------------------------------------------------- /RE/training/model-last/vocab/vectors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/RE/training/model-last/vocab/vectors -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/README.md -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/example.png -------------------------------------------------------------------------------- /pipeline.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/pipeline.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/requirements.txt -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdirthaBorgohain/NER-RE/HEAD/utils.py --------------------------------------------------------------------------------