Spaces:
Running
Running
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Package definitions for the `TextGraphs` library. | |
| see copyright/license https://huggingface.co/spaces/DerwenAI/textgraphs/blob/main/README.md | |
| """ | |
| from .defaults import DBPEDIA_MIN_ALIAS, DBPEDIA_MIN_SIM, \ | |
| DBPEDIA_SEARCH_API, DBPEDIA_SPARQL_API, DBPEDIA_SPOTLIGHT_API, \ | |
| FISHING_API, MAX_SKIP, MREBEL_MODEL, \ | |
| NER_MODEL, OPENNRE_MIN_PROB, OPENNRE_MODEL, \ | |
| PAGERANK_ALPHA, SPACY_MODEL, WIKIDATA_API | |
| from .doc import TextGraphs | |
| from .elem import Edge, KGSearchHit, LinkedEntity, Node, NodeEnum, NounChunk, RelEnum | |
| from .gor import Affinity, GraphOfRelations, RelDir, SheafSeed, TransArc | |
| from .graph import SimpleGraph | |
| from .kg import KGWikiMedia | |
| from .ner import NERSpanMarker | |
| from .pipe import Component, InferRel, KnowledgeGraph, Pipeline, PipelineFactory | |
| from .rel import InferRel_OpenNRE, InferRel_Rebel | |
| from .util import EnumBase, \ | |
| calc_quantile_bins, root_mean_square, stripe_column | |
| from .version import get_repo_version, \ | |
| __version__, __version_major__, __version_minor__, __version_patch__ | |
| from .vis import NodeStyle, RenderPyVis | |
| __release__ = __version__ | |
| __title__ = "TextGraphs: raw texts, LLMs, and KGs, oh my!" | |
| __description__ = "TextGraphs + LLMs + graph ML for entity extraction, linking, ranking, and constructing a lemma graph" # pylint: disable=C0301 | |
| __copyright__ = "2023-2024, Derwen, Inc." | |
| __author__ = """\n""".join([ | |
| "derwen.ai <info@derwen.ai>" | |
| ]) | |