from django.db import models
from django.db.models import Model

class Document(Model):
    def __init__(self, text):
        self.text = text
        self.words = text.split()

        # (start, end) tuples indicating word index ranges
        # that constitute a highlighted annotation
        self.annotations = set()

61b6bb948d2b0960946bf2041940b589ece46f9d
<mask token>

<mask token>


class Document(Model):
    <mask token>

<mask token>


class Document(Model):

    def __init__(self, text):
        self.text = text
        self.words = text.split()
        self.annotations = set()

from django.db import models
from django.db.models import Model


class Document(Model):

    def __init__(self, text):
        self.text = text
        self.words = text.split()
        self.annotations = set()

from django.db import models
from django.db.models import Model

class Document(Model):
    def __init__(self, text):
        self.text = text
        self.words = text.split()

        # (start, end) tuples indicating word index ranges
        # that constitute a highlighted annotation
        self.annotations = set()
