Commit 75db3899 authored by Leo Gao's avatar Leo Gao
Browse files

Update docstring

parent e3031e84
...@@ -5,10 +5,7 @@ import random ...@@ -5,10 +5,7 @@ import random
class LM(abc.ABC): class LM(abc.ABC):
@abc.abstractmethod @abc.abstractmethod
def loglikelihood(self, context, continuation): def loglikelihood(self, context, continuation):
"""Compute log-likelihood of a generation a continuation from a context """Compute log-likelihood of generating a continuation from a context
Assume that the final text will simple be
context + continuation
:param context: str :param context: str
Context string Context string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment