question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use pytorch text in the projects

See original GitHub issue

Hi,

I’ve very limited python knowledge. I couldn’t find how to integrate pytorch-text to my projects. When I type from dataloaders.text.torchtext import data to python reply after import torch I got the following error:

>>> from dataloaders.text.torchtext import data
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dataloaders.text.torchtext

Then I decided, my system don’t have the corrresponding package and I tried to install it like torch-vision package. (pip install torchvision) Unfortunatelly i couldn’t make it since there isn’t such a package. So how could I use this package ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jekbradburycommented, Jul 8, 2017

Does the change in #52 solve your problem? You should be able to try it locally.

0reactions
marikgoldsteincommented, Oct 1, 2017

@jekbradbury I left a comment in pull #52. Seems like there is still an ascii vs. UTF-8 issue. I commented there because this issue thread is a mix of a few issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text classification with the torchtext library - PyTorch
In this tutorial, we will show how to use the torchtext library to build the dataset for the text classification analysis. Users will...
Read more >
How to tokenize text using pytorch - ProjectPro
Step 1 - Import library. import torchtext from torchtext.data import get_tokenizer ; Step 2 - Take Sample text. text = "This is a...
Read more >
Build Your First Text Classification model using PyTorch
Overview. Learn how to perform text classification using PyTorch; Grasp the importance of Pack Padding feature; Understand the key points ...
Read more >
Text Classification on Custom Dataset using PyTorch and ...
Text Classification on Custom Dataset using PyTorch and TORCHTEXT – On Kaggle Tweet Sentiment dataIn this video I will explain how you can ......
Read more >
pytorch/text: Data loaders and abstractions for text and NLP
A simple way is to build PyTorch from source and use the same environment to build torchtext. If you are using the nightly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found