This commit is contained in:
Nick
2019-09-20 13:12:41 -06:00
parent 083f10ffa5
commit 324aa6a559
3 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ class CTRLGenerator():
# Make sure only a possible verb is chosen.
if first_token:
for word in get_possible_verbs():
prompt_logits[_token][self.word2idx[word]] *= 1000
prompt_logits[_token][self.word2idx[word]] += max(prompt_logits)
first_token = False
# compute probabilities from logits
+1
View File
@@ -102,6 +102,7 @@ second_to_first_mappings = [
("You are ", "I am "),
("You ", "I "),
("you ", "I "),
(" you.", " me."),
]
def capitalize_helper(string):
View File