kasparlund / nlp Goto Github PK
View Code? Open in Web Editor NEWnlp using fastai
nlp using fastai
space containing paths are getting conflicted all around the code. And the folder names are not changeable in some cases(colab). pathlib and command line paths conflict. What could be a possible solution for this?
Hi,
I tried your notebook ULMFiT-Sentencepiece-Wiki-Training, but I get following error
when I executed from fastai_sentencepiece import *
Traceback (most recent call last):
File "/home/cahya/Work/miniconda3/envs/fastai-1.0/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3291, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-8-5a3a187ba9b4>", line 1, in <module>
from fastai_sentencepiece import *
File "/home/cahya/Work/Machine Learning/FastAI/nlp/fastai_sentencepiece.py", line 134
tl_hash = only_alphas(tl).encode()).hexdigest()
^
SyntaxError: invalid syntax
If I change
tl_hash = only_alphas(tl).encode()).hexdigest()
to
tl_hash = only_alphas(tl).encode().hexdigest()
it complains that a list doesn't have "encode" function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.