Posts by Giovana Morais • 108 points
7 posts
-
0
votes1
answer78
viewsQ: Is there a way to use Natural Language Processing (NLP) to transform strings into integers?
I saw some examples of codes to transform strings such as "four" into an integer 4, but it was always quite manual. Have some more automatic way to do this using NLP? One thing I noticed when I did…
-
2
votes1
answer60
viewsA: Why can’t Ambroses support type notes?
Well, according to PEP 3107 there really is no type annotations support for lambda functions and the reason for this is described in PEP itself (my free translation): The syntax of a lambda function…
-
0
votes2
answers143
viewsA: Kivy: INVALID PROPERTY NAME
its first function Ridget actually has to be a class because the <Ridget> in the archive .kv is an instance of her. class Ridget(FloatLayout): pass it is also good practice to let the class…
-
1
votes1
answer61
viewsA: Use C in Shellscript
Inside a shell script it is not possible to have native C code, like the case you mentioned from sed and of awk. I think it’s valid to think that in a shell script you can do everything you could do…
-
1
votes1
answer372
viewsA: How to assign a variable the sed command with formatting? Shellscript
To assign the result of a command to a variable has two options: the first is to use backticks, ie the severe accent (`). VAR=`echo "$VAR" | sed r -n "s/[0-9]+/X/p"` the second would be to use the…
-
1
votes1
answer489
viewsA: Import matplotlib.pyplot as plt error
Before importing the matplotlib try to spin this: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt According to that question and the documentation, backends are responsible…
pythonanswered Giovana Morais 108 -
1
votes1
answer235
viewsA: Making Predictions using LSTM with Keras
If your 2019 samples are in the same input format as the ones used for training and testing, you can either create a list of arrays with all or make one for and go playing one by one on the forecast…