Replace legacy code in `TextCNN` example
See original GitHub issue🚀 Feature
torchtext
in their latest release 0.9.0
moved a lot of features to legacy code, and because of that we temporary updated our TextCNN example to compatible with the legacy code in #1890 (as quick fix for now).
Now we need to replace the legacy code in this example with the provided features in torchtext==0.9.0
.
torchtext==0.9.0
release note: https://github.com/pytorch/text/releases/tag/v0.9.0-rc5- Migration guide from
torchtext
to show how to replace legacy code: https://github.com/pytorch/text/blob/master/examples/legacy_tutorial/migration_tutorial.ipynb
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Guide To Text Classification using TextCNN
TextCNN, a special tool to perform NLP modeling. It consists of multiple features like detecting edges, corners, and multiple textures.
Read more >GitHub - Cryptum169/textCNN-for-Chinese
When downloaded, place training_data under data/Sogou/training_data , directly replace local model directory with downloaded model folder is ok. Sample Code for ...
Read more >Replacing legacy code using Swift protocols
This week, let's take a look at a technique for dealing with legacy code that lets us replace a problematic system class-by-class, ...
Read more >torchtext legacy - You.com | The AI Search Engine You Control
Before you import torchtext.legacy , you need to !pip install torchtext==0.10.0 . ... pytorch/igniteReplace legacy code in `TextCNN` example #1900.
Read more >An explainable CNN approach for medical codes prediction ...
For example in work by Choi et al. [4], they proposed the Doctor AI system based on the presence of ICD codes to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cozek thanks for investigations. I think there is no value to keep legacy notebook as API changed. In our notebook we can add a requirement to install newer torchtext package. Yes, I agree that it would require rewriting a bit the tutorial as well.
@KickItLikeShika could you please check the error in the colab that has @cozek ? It should be certainly related to the input dataloaders…
@cozek check if you can access the NB now