Question: Could anyone point me to direction how to use GPT-J model for text paraphrasing . As generating text is easy, but paraphrasing?
Do I need to fine tune on paraphrasing dataset? Or could I just use few shot training?

Answer: 
You need to check first if both conditions are true, if not the both case would never execute:

```
def one_two(word):
    if word == "":
        return "empty"
    if word[0] == "o" and word[-1] == "t":
        return "onetwo"
    elif word[0] == "o":
        return "one"
    elif word[-1] == "t":
        return "two"

print(one_two("only") == "one")
print(one_two("cart") == "two")
print(one_two("o+++t") == "onetwo")

```
you are saying return so code doesn't continue
you can try check it otherway around or simply go like this:

```
def one_two(word):
    msg = ""
    if word[0] == "o":
       msg += "one"
    if word[-1] == "t":
       msg += "two"
    return msg

assert (one_two("only") == "one")
assert (one_two("cart") == "two")
assert (one_two("o+++t") == "onetwo")

```