From 011d3d636cb466b5e9b5c1afcd4d6b53fea38fbf Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 Apr 2024 16:41:11 +0000 Subject: automatic import of torchtext --- .gitignore | 1 + sources | 1 + text.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 sources create mode 100644 text.spec diff --git a/.gitignore b/.gitignore index e69de29..4a7c781 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v0.13.0.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..fd4951f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +51a9713adaaccc5663ad6c4d4a13e777 v0.13.0.tar.gz diff --git a/text.spec b/text.spec new file mode 100644 index 0000000..8298f51 --- /dev/null +++ b/text.spec @@ -0,0 +1,47 @@ +%global commit 0.13.0 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: torchtext +Version: 0.13.0 +Release: 1%{?dist} +Summary: Natural Language Processing library for PyTorch + +License: BSD +URL: https://github.com/pytorch/text +Source0: https://github.com/pytorch/text/archive/v%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: python3-devel +BuildRequires: python3-numpy +BuildRequires: python3-scipy +BuildRequires: python3-scikit-learn +BuildRequires: python3-matplotlib +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-torch + +%description +torchtext is a Natural Language Processing (NLP) library for PyTorch. It provides data +processing, datasets, and models for tasks such as text classification, language +modeling, and sequence-to-sequence learning. + +%prep +%autosetup -n text-%{commit} + +%build +export TORCHTEXT_BUILD_VERSION=%{version} +export TORCHTEXT_BUILD_NUMBER=1 +python3 setup.py bdist_wheel + +%install +%py3_install + +%files +%{python3_sitelib}/* + +%changelog +* Sat Apr 15 2023 Your Name - 0.13.0-1 +- Initial package -- cgit v1.2.3