blob: 68287ff00b282e304a01e2d3a59c8fdd1cb25131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
%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
- Initial package
|