semvec/pypi-packages huggingface dataset:
astrotool 0.0.26
A Python package for astronomical calculations in Python or on the command line
Keywords: astronomy, ephemeris, date, time, coordinates

# AstroTool #

A Python package for astronomical calculations in Python or on the command line.


## Installation ##

This package can be installed using `pip install astrotool`.  This should automatically install the dependency
packages `astroconst`, `colored_traceback` and `numpy` if they haven't been installed already.  If you are
installing by hand, you have to ensure these packages are installed as well.


## AstroTool pages ##

* [Pypi](https://pypi.org/project/astrotool/): AstroTool Python package
* [GitHub](https://github.com/MarcvdSluys/AstroTool): AstroTool source code
* [Read the Docs](https://astrotool.readthedocs.io): AstroTool documentation


## Author and licence ##

* Author: Marc van der Sluys
* Contact: http://astro.ru.nl/~sluys/
* Licence: [EUPL 1.2](https://www.eupl.eu/1.2/en/)


## See also ##

* [AstroConst](https://pypi.org/project/astroconst/): a Python package that provides astronomical constants.
* [SolTrack](https://pypi.org/project/soltrack/): a free, fast and accurate
  [Python](https://pypi.org/project/soltrack/) or [C/C++](http://soltrack.sourceforge.net/) routine to compute
  the position of the Sun.
* [elp-mpp02](https://pypi.org/project/elp-mpp02/): accurate Moon positions using the lunar solution ELP/MPP02
  in Python.
* [libTheSky](http://libthesky.sourceforge.net/): a Fortran library to compute the positions of celestial
  bodies (Sun, Moon, planets, stars, asteroids, comets) and events (e.g. lunar phases) with great accuracy.


## References ##

* Meeus, [Astronomical algorithms](https://www.willbell.com/math/MC1.HTM), 2nd Ed.
* [Celestial mechanics in a nutshell (CMiaNS)](https://cmians.sourceforge.io/): online living document.
* This Python code is being adapted from the Fortran implementation in
  [libTheSky](http://libthesky.sourceforge.net/)


<sub>Copyright (c) 2021-2022 Marc van der Sluys</sub>
gilgamesh-summarizer 0.2.7
A package for summarizing RDF graphs for Question Answering pipelines
Requires Python: >=3.10

# Gilgamesh Summarization Tool

# Overview

Gilgamehs is an LLM-based ontology summarizaton. Developed as a pipeline for optimization in Knowledge Graph Question Answering tasks, to reduce a KG's complexity and prune possible multi-hop questions, further increasing the QA system accuracy. This pipeline utilizes the capabilities of LLMs to create concise summaries and locate possible redundant key-value patterns in the target KG. Implemented as a PyPI package, this pipeline can be deployed to summarize knowledge graphs as an optimization for question answering tasks. 

# Install

__Basic requirements:__

- Python version greater or equal to **3.10**.

      pip install gilgamesh-summarizer

# 🔍 Basic Usage: Creating summaries based on Key-Value Pairs

Currently, the major functionality of our tool is in creating ontology summaries through discovering and condensing key-value pair formations in Knowledge Graph ontologies.

Our pipline initially:

1. Parses ontology file and knowledge graph data
2. Create clusters from initial knowledge graph data
3. Cluster numbers can be reduced by removing nodes with high degrees
4. Clusters can be further reduced in size by spliting and re-clustering large clusers (powered by PyJedAI)

```python
from gilgamesh_summarizer.KnowledgeGraph import KnowledgeGraph

kg = KnowledgeGraph(path_to_rdf_data,path_to_ontology)

clusters, triples_dict = kg.create_clusters(prune_top_nodes=16,max_cluster_size=200)
clusters
```

And provides an unsloth based fine-tuned model locates meaningful information that can be used to create summaries

```python
from gilgamesh_summarizer.Summarizer import Summarizer

classifier = Summarizer(kg)
results = classifier.classify_clusters(clusters, triples_dict)
```

# Notebook Demo

An end to end example of the tool's summarization pipeline is presented here: [Notebook](https://colab.research.google.com/drive/1Ti1-wZOoofBinBLMEDKrTipDonNBHIwI?usp=sharing)

# Github Repository

The packages official Github [repo](https://github.com/KwtsPls/gilgamesh-summarizer)