Gensim not available on osx-arm64

For those of you masochists who like to try running these exercises on your local env, as of 2 MAR 2022 you can expect challenges running C1_W4 natively on the M1 Mac. Some evidence that it can work under x86_64 emulation, but I haven’t yet built a new virtual env to try it out. Will update with results if I do.

See for reference:
and: import gensim segmentation fault (macOS Big Sur, Apple M1/Apple Silicon/ARM) · Issue #3036 · RaRe-Technologies/gensim · GitHub

Both import statements

import gensim and
from gensim.models import KeyedVectors

are dead imports.

You can remove them in your local version of the files.

@Mubsi @paulinpaloalto could you please file a ticket on NLP repo to remove these dead imports? There are a few more unused imports in the file as well. Thanks.

My new devops for local testing is start by commenting out all the imports and let the python parser tell me which ones are actually needed :face_with_raised_eyebrow:. (Maybe DLAI qa team should consider doing the same, and not only remove the stale imports from the notebooks but from cloud container env specs as well)


#import gensim
#import matplotlib.pyplot as plt
#import scipy
#import sklearn
#from gensim.models import KeyedVectors
#from nltk.tokenize import TweetTokenizer