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

Update docstring

parent e3031e84
......@@ -5,10 +5,7 @@ import random
class LM(abc.ABC):
@abc.abstractmethod
def loglikelihood(self, context, continuation):
"""Compute log-likelihood of a generation a continuation from a context
Assume that the final text will simple be
context + continuation
"""Compute log-likelihood of generating a continuation from a context
:param context: str
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