diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-16 06:03:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-16 06:03:01 +0000 |
commit | 9dec07f8770c999dfc1554f8512d6c15c82edc0e (patch) | |
tree | bc2673fe917f0eacc9c4b44bbbd8cbf05f34e3b2 | |
parent | c8ca2e43ea509cb0242e2f86511275648ac1db8b (diff) |
automatic import of torchtext
-rw-r--r-- | sources | 2 | ||||
-rw-r--r-- | torchtext.spec (renamed from text.spec) | 109 |
2 files changed, 54 insertions, 57 deletions
@@ -1 +1 @@ -51a9713adaaccc5663ad6c4d4a13e777 v0.13.0.tar.gz +0a932ddf29de28dd729801983bfdd361 v0.16.2.tar.gz diff --git a/text.spec b/torchtext.spec index 68287ff..5da4260 100644 --- a/text.spec +++ b/torchtext.spec @@ -1,57 +1,54 @@ -%global commit 0.13.0 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) -%global pypi_name torchtext - -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: cmake -BuildRequires: ninja-build -BuildRequires: utf8proc-devel -BuildRequires: re2-devel -BuildRequires: double-conversion-devel -BuildRequires: sentencepiece - -BuildRequires: python3-numpy -BuildRequires: python3-scipy -BuildRequires: python3-scikit-learn -BuildRequires: python3-tqdm -BuildRequires: python3-requests -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm -BuildRequires: python3-pbr -BuildRequires: python3-pip -BuildRequires: python3-wheel -BuildRequires: python3-hatchling - -BuildRequires: python3-pytorch - -%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 -%py3_build - -%install -%py3_install - -%files -%{python3_sitelib}/* -%{python3_sitearch}/%{name} - -%changelog -* Sat Apr 15 2023 chelsey20011128@gmail.com - 0.13.0-1 +Name: torchtext
+Version: 0.16.2
+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: cmake
+BuildRequires: ninja-build
+BuildRequires: utf8proc-devel
+BuildRequires: re2-devel
+BuildRequires: double-conversion-devel
+BuildRequires: sentencepiece
+
+BuildRequires: python3-numpy
+BuildRequires: python3-scipy
+BuildRequires: python3-scikit-learn
+BuildRequires: python3-tqdm
+BuildRequires: python3-requests
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+
+BuildRequires: python3-pytorch
+
+%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-%{Version}
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%files
+%doc *.md
+%license LICENSE
+%{python3_sitearch}/*
+
+%changelog
+* Mon Apr 15 2024 chelsey<20011128@gmail.com>
- Initial package |