• Django,  e-lo,  Github

    Django database API foreign key 102

    https://docs.djangoproject.com/en/2.0/topics/db/queries/   Our models have now changed and a new model has been added to e-lo. In RawText, we store the input, in BlobText we store the functions from TextBlob lib. If we remove the instance from the first table, we also need to remove it from the second. Ref on_delete = models.CASCADE Lets add two instances and view them, then delete them.  

    Comments Off on Django database API foreign key 102
  • e-lo,  Natural Language Prossesing (NLP)

    TextBlob 101 Information Retrieval

    TextBlob https://www.analyticsvidhya.com/blog/2018/02/natural-language-processing-for-beginners-using-textblob/   Information retrieval (IR) is the activity of obtaining information system resources relevant to an information need from a collection of information resources. Searches can be based on full-text or other content-based indexing. Information retrieval is the science of searching for information in a document, searching for documents themselves, and also searching for metadata that describe data, and for databases of texts, images or sounds. I tried to run the following code, but it turns out that it was a bit late. I forgot to download the corpora. from textblob import TextBlob blob = TextBlob(MyCommand.elo.data_txt(book)) print(blob.sentences) The MyCommand.elo.data_txt(book) is returning the actual txt saved in db. The actual…

    Comments Off on TextBlob 101 Information Retrieval