File: README.md

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 (22 lines) | stat: -rw-r--r-- 783 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
# Libtorchtext Examples

- [Tokenizer](./tokenizer)

## Build

The example applications in this directory depend on `libtorch` and `libtorchtext`. If you have a working `PyTorch`, you
already have `libtorch`. Please refer to
[this tutorial](https://pytorch.org/tutorials/advanced/torch_script_custom_classes.html) for the use of `libtorch` and
TorchScript.

`libtorchtext` is the library of torchtext's C++ components without Python components. It is currently not distributed,
and it will be built alongside with the applications.

To build `libtorchtext` and the example applications you can run the following command.

```bash
chmod +x build.sh # give script execute permission
./build.sh
```

For the usages of each application, refer to the corresponding application directory.