File: data_functional.rst

package info (click to toggle)
pytorch-text 0.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,560 kB
  • sloc: python: 14,197; cpp: 2,404; sh: 214; makefile: 20
file content (54 lines) | stat: -rw-r--r-- 1,158 bytes parent folder | download
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
.. role:: hidden
    :class: hidden-section

torchtext.data.functional
===========================

.. automodule:: torchtext.data.functional
.. currentmodule:: torchtext.data.functional

:hidden:`generate_sp_model`
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: generate_sp_model

:hidden:`load_sp_model`
~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: load_sp_model

:hidden:`sentencepiece_numericalizer`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: sentencepiece_numericalizer

:hidden:`sentencepiece_tokenizer`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: sentencepiece_tokenizer

:hidden:`custom_replace`
~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: custom_replace

:hidden:`simple_space_split`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: simple_space_split

:hidden:`numericalize_tokens_from_iterator`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: numericalize_tokens_from_iterator


:hidden:`filter_wikipedia_xml`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: filter_wikipedia_xml

:hidden:`to_map_style_dataset`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: to_map_style_dataset