Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kirsur committed Sep 29, 2019
1 parent 9fdea70 commit ec46157
Show file tree
Hide file tree
Showing 14 changed files with 14,077 additions and 6,156 deletions.
145 changes: 145 additions & 0 deletions .ipynb_checkpoints/Generate Features.csv-checkpoint.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4,089 changes: 2,435 additions & 1,654 deletions .ipynb_checkpoints/model-checkpoint.ipynb

Large diffs are not rendered by default.

282 changes: 282 additions & 0 deletions 11_biology_1.txt

Large diffs are not rendered by default.

1,292 changes: 1,292 additions & 0 deletions 12_chemistry_12.txt

Large diffs are not rendered by default.

2,085 changes: 2,085 additions & 0 deletions 12_physics_1.txt

Large diffs are not rendered by default.

145 changes: 145 additions & 0 deletions Generate Features.csv.ipynb

Large diffs are not rendered by default.

19 changes: 0 additions & 19 deletions SimToSumm.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,10 @@ def _generate_summary(sentences, sentenceValue, threshold):



<<<<<<< HEAD
def getSimtoSum(p, paragraph):
l=_create_frequency_table(paragraph)
# i = sent_tokenize(paragraph)
scoredict = _score_sentences(p,l)
=======
paragraph="""A group of cells that are similar in structure and/or work together to achieve a particular function forms a tissue.
6.1 Are Plants and Animals Made of Same Types of Tissues?
Let us compare their structure and functions. Do plants and animals have the same structure? Do they both perform similar functions?
There are noticeable differences between the two. Plants are stationary or fixed – they don’t move. Since they have to be upright, they have a large quantity of supportive tissue. The supportive tissue generally has dead cells.
Animals on the other hand move around in search of food, mates and shelter. They consume more energy as compared to plants. Most of the tissues they contain are living.
Another difference between animals and plants is in the pattern of growth. The growth in plants is limited to certain regions, while this is not so in animals. There are some tissues in plants that divide throughout their life. These tissues are localised in certain regions. Based on the dividing capacity of the tissues, various plant tissues can be classified as growing or meristematic tissue and permanent tissue. Cell growth in animals is more uniform. So, there is no such demarcation of dividing and non-dividing regions in animals.
The structural organisation of organs and organ systems is far more specialised and localised in complex animals than even in very complex plants. This fundamental difference reflects the different modes of life pursued by these two major groups of organisms, particularly in their different feeding methods. Also, they are differently adapted for a sedentary existence on one hand (plants) and active locomotion on the other (animals), contributing to this difference in organ system design.
It is with reference to these complex animal and plant bodies that we will now talk about the concept of tissues in some detail.
"""


def getSimtoSum(paragraph):
l=_create_frequency_table(paragraph)
i=sent_tokenize(paragraph)
print(type(i))
scoredict = _score_sentences(i,l)
>>>>>>> 8280de6fdf2ac3253e75acec876d83e15ecfcbe7
threshold = _find_average_score(scoredict)
summary = _generate_summary(p, scoredict, 1.5 * threshold)
#print(scoredict.values()/len(scoredict.keys().split()))
Expand Down
Binary file modified __pycache__/textprocessing.cpython-36.pyc
Binary file not shown.
3,778 changes: 2,468 additions & 1,310 deletions features-test.csv

Large diffs are not rendered by default.

1,310 changes: 0 additions & 1,310 deletions features.csv

Large diffs are not rendered by default.

529 changes: 321 additions & 208 deletions final.json

Large diffs are not rendered by default.

4,089 changes: 2,435 additions & 1,654 deletions model.ipynb

Large diffs are not rendered by default.

2,468 changes: 2,468 additions & 0 deletions sentences-test.txt

Large diffs are not rendered by default.

0 comments on commit ec46157

Please sign in to comment.