Skip to main content

SONAD: Software Name Disambiguation

License
Python

SONAD (Software Name Disambiguation) is a command-line tool and Python package that links software mentions in scientific papers to their corresponding repository URLs. It leverages NLP, third-party tools like SOMEF, and metadata to resolve software names. It is limited to fetching URLs from GitHub, PyPI and CRAN. Take into account that this is not 100% accurate as it uses a machine learning model trained on data, but it did outperform models llama-3.1-8b-instant, qwen-qwq-32b, gemma2-9b-it and deepseek-r1-distill-llama-70b.


Installation

Install using pip:

pip install sonad

Initial Configuration

Before using SONAD, you must make sure that SOMEF works
(https://github.com/KnowledgeCaptureAndDiscovery/somef/?tab=readme-ov-file),
which is used for software metadata extraction.

Follow their instructions to make sure somef runs correctly on your system. It is installed with sonad, but the user should check if somef works before running sonad.

It is also strongly recommended to provide a GitHub API token to avoid rate limits when querying GitHub. You can configure this for sonad and somef once using:

If you wish not to use GitHub token, you then need to configure somef with automatic option (somef configure -a).

sonad configure

Your token will be saved for future runs.


Requirements

SONAD requires Python 3.10. All dependencies are installed automatically.

Some key libraries:

  • pandas
  • scikit-learn
  • xgboost
  • sentence-transformers
  • beautifulsoup4
  • requests
  • SPARQLWrapper
  • somef
  • textdistance
  • lxml
  • cloudpickle

Usage

After installation, you can run the main command:

sonad process -i <input_file.csv> -o <output_file.csv> [-t <temp_folder>] 

Parameters

  • -i, --input (required): Path to the input CSV file.
  • -o, --output (required): Path where the output CSV will be saved.
  • -t, --temp (optional): Folder where temporary files will be written it the folder is provided.

Input Format

The input CSV must contain the following columns:

  • name: The software name mentioned in the paper.
  • doi: The DOI of the paper.
  • paragraph: The paragraph in which the software is mentioned.

Optionally, it can include:

  • candidate_urls: A comma-separated list of candidate software URLs that might correspond to the software.

Example:

name,doi,paragraph,candidate_urls
Scikit-learn,10.1000/xyz123,"We used Scikit-learn for classification.","https://github.com/scikit-learn/scikit-learn"

Output Format

The output CSV will contain one row for each input mention, with the following columns:

  • name: The software name from the input.
  • paragraph: The paragraph where the software was mentioned.
  • doi: The DOI of the paper in which the software was mentioned.
  • synonyms: Alternative names or variants of the software name identified during processing.
  • language: The inferred programming language(s) used by the software, if available.
  • authors: Names of authors of the paper it they can be fetched from OpenAlex tool.
  • urls: A comma-separated list of predicted repository or project URLs (e.g., GitHub, PyPI, CRAN).
  • not_urls: URLs that were considered but rejected during disambiguation (e.g., due to low confidence or irrelevance).

Example:

name,paragraph,doi,synonyms,language,authors,urls,not_urls
Scikit-learn,"We used Scikit-learn for classification.",10.1000/xyz123,"scikit learn;sklearn",Python,"Pedregosa et al.","https://github.com/scikit-learn/scikit-learn","https://pypi.org/project/sklearn/"

License

MIT License © Jelena Djuric
https://github.com/jelenadjuric01


Contributions

Feel free to submit issues or pull requests on the GitHub repository:
https://github.com/jelenadjuric01/Software-Disambiguation

Metadata

Release files for sonad 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sonad 0.2.6
File Size Uploaded
sonad-0.2.6.tar.gz 91.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonad 0.2.6
File Interpreter ABI Platform
sonad-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 186.6 MB

Release files / sonad-0.2.6.tar.gz

Download URL sonad-0.2.6.tar.gz
Size 91.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3e0723ef809f1e36e25f1ba8a34aee9efbe551660cd9801d8aabbf22fa242b01
BLAKE2b-256 checksum
How to use checksums
8d634737b5ebd0d2fd123666f8ce1d4a8e41446fc2ff2889c25b1d443c1cb420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.3 Windows/10

Release files / sonad-0.2.6-py3-none-any.whl

Download URL sonad-0.2.6-py3-none-any.whl
Size 95.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9bb42463cee7a8206c925b6de7b0c484123cbd02809b4da784a1b2055ab3a053
BLAKE2b-256 checksum
How to use checksums
a7d336d4c12823e7ad5e60c4db98db6f4c28db0c8bfb1e8f2bfef2397cbbb8e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.12.3 Windows/10

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page