Skip to content

Commit

Permalink
Merge pull request #233 from osamhack2021/develop
Browse files Browse the repository at this point in the history
* Develop -> Master
* ģµœģ¢… PR
  • Loading branch information
dev-taewon-kim authored Oct 20, 2021
2 parents ced907a + bf553f4 commit e9fa7ba
Show file tree
Hide file tree
Showing 380 changed files with 10,293 additions and 20,835 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ secrets.json
database.db

# commit empty dir
WEB/backend/data/db/*
!WEB/backend/data/db/.gitkeep
WEB(BE)/data/db/*
!WEB(BE)/data/db/.gitkeep

# keep twitter api secrets
# WEB/backend/crawler/crawler/model/twitter/secrets
Expand Down Expand Up @@ -251,6 +251,8 @@ psd
thumb
sketch

kendo-ui-license.txt

# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
Expand All @@ -263,3 +265,5 @@ pyvenv.cfg
pip-selfcheck.json

# End of https://www.toptal.com/developers/gitignore/api/django,react,python,venv
.env.development
.env.production
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def keywords(doc: DocumentRequest):
verbose=False
)
try:
results["keywords"] = keyword_extractor.summarize(doc.document, topk=10)
results["keywords"] = keyword_extractor.summarize(doc.document, topk=30)
except:
raise HTTPException(status_code=503, detail="The server is busy processing requests.")
finally:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class ExtractiveSummarizer(object):
"""Extractive summarize using gensim library."""
def __init__(self, ratio_or_count='ratio', ratio=0.2, word_count=50):
def __init__(self, ratio_or_count='ratio', ratio=0.4, word_count=50):
self.ratio = ratio
self.word_count = word_count
self.ratio_or_count = ratio_or_count
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added WEB(BE)/crawler/crawler/database.db-journal
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AnalyzedDataSerializer(serializers.Serializer):
category = serializers.CharField(required=True)
period = serializers.IntegerField(required=True)
tags = serializers.DictField(required=True)
search_text = serializers.CharField(required=False, allow_blank=True)
search_text = serializers.ListField(required=False, default = [])
limit = serializers.IntegerField(required=True)
offset = serializers.IntegerField(required=True)

Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e9fa7ba

Please sign in to comment.