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.
|