Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrochukM committed Apr 1, 2018
1 parent 7b734e5 commit 20646f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Add PyTorch NLP to your project by following one the common use cases:
train[0] # RETURNS: {'text': 'For a movie that gets..', 'sentiment': 'pos'}
```
- Encode text into vectors with [torchnlp.text_encoders](http://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.text_encoders.html).
- Encode text into vectors with the [text encoders package](http://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.text_encoders.html).

```python
from torchnlp.text_encoders import WhitespaceEncoder
Expand All @@ -96,7 +96,7 @@ Add PyTorch NLP to your project by following one the common use cases:
vectors['hello'] # RETURNS: [torch.FloatTensor of size 100]
```

- Compute the BLEU Score with [torchnlp.metrics](http://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.metrics.html).
- Compute the BLEU Score with the [metrics package](http://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.metrics.html).

```python
from torchnlp.metrics import get_moses_multi_bleu
Expand Down

0 comments on commit 20646f6

Please sign in to comment.