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.

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
vfdev-5commented, Apr 7, 2021

@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…

1reaction
KickItLikeShikacommented, Apr 8, 2021

@cozek check if you can access the NB now

Read more comments on GitHub >

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

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