INNER CODE UNIT · Python

Indicator

center-for-threat-informed-defense/tram · src/tram/models.py:127

class Indicator(models.Model):
    """Indicators extracted from a document for a report"""

    report = models.ForeignKey(Report, on_delete=models.CASCADE)
    indicator_type = models.CharField(max_length=200)
    value = models.CharField(max_length=200)
    created_on = models.DateTimeField(auto_now_add=True)
    updated_on = models.DateTimeField(auto_now=True)

    def __str__(self):
        return "%s: %s" % (self.indicator_type, self.value)


class Sentence(models.Model):
    text = models.TextField()
    document = models.ForeignKey(Document, null=True, on_delete=models.CASCADE)
    order = models.IntegerField(
        default=1000

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…