Skip to content

Ka|Ve Grubunun, AçıkHack Türkçe NLP Hackathonu için kurulmuş repositorydir. ||-|| This repository is created for Turkish NLP Hackathon AcikHack.

License

Notifications You must be signed in to change notification settings

kaveai/kave_summarify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ka-ve_summarify

Takım Üyeleri

  • Yunus Emre Gündoğmuş
  • Feyza Zeynep Salam
  • Emre Yüksel
  • Büşra Gökmen
  • Hasan Kemik

Kullanım

Gerekli Kütüphaneler

import pandas as pd
import numpy as np
from nltk.corpus import stopwords
import heapq
from gensim.summarization import keywords
from nltk import sent_tokenize
from sklearn.metrics.pairwise import cosine_similarity
from gensim.models import KeyedVectors
import networkx as nx
import re
import numpy as np
import json
import pickle
from keras.models import model_from_json
from keras.models import load_model
import Extraction_Based_Text_Summarization

Yukarıdaki kütüphaneleri programınıza ekledikten sonra,

ex_sum = extraction_based_sum()

kodu ile class'ı çağırabilir. Sonrasında elinizde özetlenmesini istediğiniz veri ile

ex_sum.get_sentences(text,k)

k kadar cümleyi metinden alabilirsiniz. Anahtar kelime çıkarımı için ise,

ex_sum.get_keywords(text,ratio)

kodunu kullanarak, metindeki kelime sayısının oranı kadar anahtar kelime alabilirsiniz. Bu sayıyı ratio değeri ile kontrol edebilirsiniz.

Referanslar

----------------------------------------------------------------------------------------------

Team Members

  • Yunus Emre Gündoğmuş
  • Feyza Zeynep Salam
  • Emre Yüksel
  • Büşra Gökmen
  • Hasan Kemik

How to use

Necessary Libraries

import pandas as pd
import numpy as np
from nltk.corpus import stopwords
import heapq
from gensim.summarization import keywords
from nltk import sent_tokenize
from sklearn.metrics.pairwise import cosine_similarity
from gensim.models import KeyedVectors
import networkx as nx
import re
import numpy as np
import json
import pickle
from keras.models import model_from_json
from keras.models import load_model
import Extraction_Based_Text_Summarization

After you've added those libraries,

ex_sum = extraction_based_sum()

you can use the class with that code, and after that, with the text you want to be summarized,

ex_sum.get_sentences(text,k)

you can take the best k sentences from it. For keyword extraction,

ex_sum.get_keywords(text,ratio)

with the code above, you can get keywords according to the ratio of the word count in the text. You can control that by changing ratio value.

References

About

Ka|Ve Grubunun, AçıkHack Türkçe NLP Hackathonu için kurulmuş repositorydir. ||-|| This repository is created for Turkish NLP Hackathon AcikHack.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published