Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent single word share with a separate table #118

Open
giobber opened this issue Oct 9, 2023 · 0 comments
Open

Represent single word share with a separate table #118

giobber opened this issue Oct 9, 2023 · 0 comments

Comments

@giobber
Copy link
Member

giobber commented Oct 9, 2023

Problem

At the moment Share link to Word in "tag" fashion. This works, but we lose information about frequency of a word inside a share (if present multiple times)

Solution

Add a new model called WordShare

class WordShare(...):
    word = ForeignKey(Word, ...)
    timestamp = models.DateTime(...)
    location = ...
    share = ForeignKey(...)

When a Share is added, instead of creating "Word tags" we can create single WordShare for each word found (timestamp and location come directly from Share, word is found via NLP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant