Skip to content
Snippets Groups Projects
Commit 6951291f authored by Christian's avatar Christian
Browse files

lower casing actions in action vectorizer

parent 83f33a78
No related branches found
No related tags found
No related merge requests found
...@@ -360,7 +360,7 @@ class VectorBase(Vector): ...@@ -360,7 +360,7 @@ class VectorBase(Vector):
act_vec = np.zeros(self.da_dim) act_vec = np.zeros(self.da_dim)
for da in action: for da in action:
da = tuple(da) da = tuple([a.lower() for a in da])
if da in self.act2vec: if da in self.act2vec:
act_vec[self.act2vec[da]] = 1. act_vec[self.act2vec[da]] = 1.
return act_vec return act_vec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment