Skip to content

Commit

Permalink
Added stem and lexical category fields for #444
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Aug 30, 2024
1 parent 9a6c8ef commit bba5494
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by Django 4.2.15 on 2024-08-30 20:05

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("validation", "0035_alter_historicalrecording_quality_and_more"),
]

operations = [
migrations.AddField(
model_name="historicalphrase",
name="lexical_category",
field=models.CharField(
blank=True, help_text="The Lexical Category of the word", max_length=256
),
),
migrations.AddField(
model_name="historicalphrase",
name="stem",
field=models.CharField(
blank=True, help_text="The stem of the word", max_length=256
),
),
migrations.AddField(
model_name="phrase",
name="lexical_category",
field=models.CharField(
blank=True, help_text="The Lexical Category of the word", max_length=256
),
),
migrations.AddField(
model_name="phrase",
name="stem",
field=models.CharField(
blank=True, help_text="The stem of the word", max_length=256
),
),
]
12 changes: 12 additions & 0 deletions validation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ class Phrase(models.Model):
null=True,
)

stem = models.CharField(
help_text="The stem of the word",
blank=True,
max_length=MAX_TRANSCRIPTION_LENGTH,
)

lexical_category = models.CharField(
help_text="The Lexical Category of the word",
blank=True,
max_length=MAX_TRANSCRIPTION_LENGTH,
)

semantic_class = models.ManyToManyField(SemanticClass, blank=True)

status = models.CharField(
Expand Down

0 comments on commit bba5494

Please sign in to comment.