Giter Club home page Giter Club logo

conceptualsummary's Introduction

ConceptualSummary

Generates Conceptual Summary Of a text


Algorithm to generate Conceptual Summary of a text

This task is divided into 3 small tasks

A. Select best 4 sentences

  1. Find a frequency table of top 10 most frequent words in text. These words will be known as keywords. Associate a score with each keyword directly proportional to frequency.

  2. Use Concept net to assign same score to words similar to these keywords. These similar words will also be used as keywords.

  3. Split the text into sentences.

  4. Assign Score to each sentence S using the following formula = (2.0titleScore+0.25sentenceLengthScore+1.0sentencePositionScore+2.0DbsSbsScore)/(2.0+0.25+1.0+2.0)

  5. Choose top 4 sentences with highest scores.

How to calculate Score
TitleScore :
count = Number Of common non-stop words between query and sentence  
NOTE: words in sentence that are similar in concept to any word in query are also counted (done with the help of concept net web API)  
titleScore = count / number Of words in query  
SentenceLengthScore:
sentenceLengthScore = 1.0-abs(number of words in sentence-20) / 20  
where 20 is ideal sentence length
SentencePositionScore:
n = normalized Position of sentence in between 0 and 1  
The following research paper has the values listed in page 3  
http://research.nii.ac.jp/ntcir/workshop/OnlineProceedings3/NTCIR3-TSC-SekiY.pdf  
SummationBasedSelection:
score = sum of scores of all keywords contained in the sentence calculated in first step  
summationBasedSelection = score / totalWordsInSentence
DensityBasedSelection:
The formula is well written in page 3 of the following paper  
http://www3.ntu.edu.sg/home/axsun/paper/sun_cikm07s.pdf  
DbsSbsScore = summationBasedSelection + densityBasedSelection  

B. Divide the selected sentences into chunks

  1. Create POS tree from sentences using open nlp tool.

  2. Store nouns, adjectives, pronouns, verb, adverb, adjective, conjuction, preposition in different arraylist.

  3. Create chunks from the sentences using ChunkerModel and ChunkerMe of open nlp tool thereby removing unneccessary conjuction.

  4. From the POS arraylists remove unneccessary POS if any present from each sentences.

C. Merge chunks and generate output

  1. Remove unnecessary articles and prepositions.

  2. Coreference resolution using stanford parser.

  3. Merge new chunks and generate output.



Creating jar file

Use these libraries while building source code:

  • ejml-0.19-nogui.jar
  • ejml-0.19-src.zip
  • englishPCFG.ser.gz
  • joda-time.jar
  • joda-time-2.1-sources.jar
  • jollyday.jar
  • jollyday-0.4.7-sources.jar
  • json-20160212.jar
  • wnl-1.3.3.jar
  • opennlp-maxent-3.0.3.jar
  • opennlp-tools-1.5.3.jar
  • opennlp-uima-1.5.3.jar
  • RiTaWN.jar
  • SentenceSplitter.java
  • stanford-corenlp-3.2.0.jar
  • stanford-corenlp-3.2.0-javadoc.jar
  • stanford-corenlp-3.2.0-models.jar
  • stanford-corenlp-3.2.0-sources.jar
  • supportWN.jar
  • xom.jar
  • xom-src-1.2.8.zip

Executing the jar file

  1. Use the above mentioned libraries while executing the jar file.
  2. In addition, keep these files into "lib" directory
    • ejml-0.19-src.zip
    • en-chunker.bin
    • englishPCFG.ser.gz
    • en-parser-chunking.bin
    • en-pos-maxent.bin
    • xom-src-1.2.8.zip
  3. Provide at least 1 GB of RAM while executing the jar file.
    • (Use "-Xmx1024m" argument in addition)

Team members names and contacts

conceptualsummary's People

Contributors

sushanto avatar a7i7 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.