Fast Simple Tasty Way To eat Brinjal
This is how it looks, easy to cook, nutritious Brinjals! With any breads!

- Take brinjal-I took one big brinjal, you can use smaller ones too. As per need, availability and quantity to make.
- Heat some oil in a pressure cooker.
- Put chopped onions in it–1 onion
- Let it change its color slightly.
5. Put grinded/chopped tomato in pressure cooker.
6. Put spices, salt, chili as per tastes.
7. Cut big pieces of brinjal(s) and put in pressure cooker and add one small glass of water in it too, for easy cooking.
8. Close the cooker.
9. Ones 2-3 whistles of cooker are made, close the lid of gas
10. Take out the steam from the cooker with help of spoon opening the whistle knob of cooker.
11. Heat the cooker to dry the ingeditents in cooker.
12. Once partially dry, as per requirements again close gas.
Serve it hot with any bread!


Split chickpeas Snacks
Here are great snacks for any occasion and full of proteins and nutrition. Have a look at what I am telling you the recipe of:



- Take oil as per taste in frying pan. Heat it till you can see mild heat waves.

2. Add Asafoetida (a small pinch), minced Ginger and Garlic in it.

3. Immediately add chopped onions in it-2 onions

4. Let the onions change the color slightly as here:

5. Add 2 finely cut tomato in the frying pan. And mix it. Add turmeric, salt, spices, chilli as per taste.

6. Immediately add to it properly washed 1 bowl of split chickpeas.

7. Put more water in pan and heat it, till the softness you need in snacks is reached. Keep drying the water by heating it. I personally like not very soft but just enough to eat like soft nutty snacks! Check your likings. Here are the pics of transformation of this mixture to yummy snack!



And here our snacks are ready to eat
i. Do add coriander leaves for more flavour
ii.Add raw finely cut onions decorated in plate as below, it adds much more flavor. For best taste. Dip the chopped onions in water for 10 -15 minutes to take away pungent taste of onions. And the snacks will taste as fresh as anything
iii. Check if you like putting fresh lemon in it—-I like it with all these additions!
Enjoy the feast in snacks time. Here, is how it looked after cooking was over!
Onion-Asafoetida-Ginger Chicken Snacks
Roasted Chicken is lot popular than what I am writing here today. Its onion chicken snacks! Another way to have chicken as a starter–Tasty and handy to make and eat—As Snacks! First the recipe, then other things!



- Heat water and put the frozen chicken in water. (6 leg piece recipe here). Put 3 table spoon of salt to clean it properly.
- Chop 2 large sized (around 4 inch) and put in pan containing heated oil.
- Let it change its color slightly. Put grated Asafoetida- a pinch , ginger, spices, chili, as per tastes and needful flavors!

4. Cut 5 small (2 inches in diameter) tomatoes into four pieces and grind it in a mixer to foam a paste.

5. Put the tomato grinded in the pan, as in Step 3.

6. Mix it in pan well.

7. Heat the pan ingredients till oil separates from the mixture. As in image below:


8. Put chicken pieces (I used leg pieces) and water in pan. And heat till, pieces are sot and water dries out. Then the chicken snacks are dry and ready to be taken with drinks and in the misty evenings!



Dry it in Frying Pan and the softness you need, as per taste. I like bit hard and sometimes soft too! Different possibilities are possible!

Time to serve to family and guests and self too!

Close-ups!

Ready in my bowl for sumptuous feast!
Hide not Baby




Hide not Baby
I need you
Hide not
For I will search you
Hide not
But——
Hide more—for I will drag you out
And I will love it
Hide baby I am coming!
Hide——–
I wont leave you
Open you tie
Open the collar buttons
I ll pull you out buy your collars
Hide not baby
As its fruitless
I ll find you for sure
Hide if you still wanna play with me!
Hide and seek
For I shall seek you
Hide baby
But you cant hide from me
Don’t play hide and seek
For I seek you even more!
Hide not baby
Ethical Artificial Intelligence (AI) : Find solutions to avoid problems in AI ! Let them complete the electric bulb- to see clearly in the darkness of Data !
What is imperative is right versus wrong! Not about researchers confused in what is ethical AI and what is not. Yes, you can think and write about it as much as you like. But Ethical AI, as you say it means doing the right things and debarring from wrong things! But even a man with enough experience in authoring books can tell whether the benefits outweighs the temporary side effects ! How ??? As he have enough intelligence, though not artificial intelligence ! Focus your energies in right things, the stakeholders are there to guide you for a purpose. Don’t stop the electric bulb from being invented by figuring out the problems in its use for underground illegal mining of diamonds, look for benefits and leave rest on stakeholders – the inceptors! Belief and trust, are the key in any business. Any business be it an academic institute runs on these two factors. Let the Stakeholders take hold of the task. And if you think there are way too many problems—-We need solutions – not cribbing’s—all without disturbing the making of the new electric bulb- to see clearly in the darkness of Data !
Rights things are as right as the agreement one takes while joining a duty in say medicine or police, an oath to do right things till the end of time of duty! So, what is this right and what is wrong! Well, anything against welfare of majority is wrong while work to be focused for welfare of the residents of Earth, be it animals, be it humans, birds, trees, flowers, insects…….(yes, it is well said man is a evolution of monkey) !
It is for a greater vision and greater goal that we should strive Ethical AI in, and not in small petty things, which can be handled by solutions ! Solutions to track editing’s done in AI! These are all hacks to scare people from AI ! AI has much good to give to humans than bad! Oh yes, perhaps the stakeholders know how to use the remote controls of AI ! And, I believe we have studied AI hard to know the right from the wrong, researched well in AI to understand the depths and breaths of the subject ! More than that its impact! And gain the maturity of grasping the side effects of any wrong tools of AI.
I would like to express through this short article. Not to spread panics about AI among people ! And only thing I would like to say is provide solutions to the problem’s dear researchers of AI, CSE !
Solutions to tackle the problems you think AI can pose. You can mail me if you find it difficult to find solution to the “so called threats of AI”! Everything has a solution! Only thing is to stop cribbing and finding it! And these have to be found, since AI was a dream of Man, for a better world, even when huge data on which it is used today was not pilled up on papers, disks and web! Hence all the problems can be sort out—you are a researcher, find a solution to sort it out! While, data authenticity problem a researcher today spoke of in an international channel! What’s the problem with that—-this is not an Ethical AI problem! This is a research problem! Just think! Ethical AI — I will give you an example—- “a robot trained to help someone guide way——took control of his car and took it off” —————–This is a problem of Ethical AI———! A threat to humans! A wrong and any such wrongs and rights are easily distinguishable by a learned human (any profession) ! Once again data on which training is done, personal data (permissions are asked to use data, you can deny anytime), and other things, ——-don’t pose threat to man at large—though there are personal losses to a fraction of celebrated people––as thy are mostly looked in awe and subject to most agony—These are problems to be solved and people need its solutions——! Not problems to be scared of and hue about! In short I would say—- Focus on Big Issues that are real threats ! For smaller problems which may be big to someone—-you have to find solutions! How—-! I can let you know ! But just think ! You are researchers yourselves! So we need solutions to problems which are there in AI – Guys get ready to find solutions not altogether quitting what the vision of Man was once——not what needs to be done and what not — but how to do it managing the side effects coming in the way ! And ethical and non-ethical a learned person can tell!
I will give you an example. When coal was first used as a source of energy everyone knew it is emitting harmful gasses in environment, but had man stopped there, we wont have had a developed world rather mud filled un-bricked communities. Yes, climate change is here, but there are solutions to everything. There are solutions to this problem to. Hence same with AI – find solutions! Try and you will find.
Online Health of Mankind-Online Health Trial – To a machine-read by a machine-not to a human!
In this article I want to present to you my ideas on a new software I am planning to develop viz. Online health of Mankind–based on volunteers who would like to volunteer for this task to predict future problems, even the extents of next spikes in a harmless disease to life threating problems. We, on Earth, have seen that a virus halted all of our lives. And we have to be future ready for not just a virus, just be anything, any medical or even societal problem. The software I am working on does the same. For that we would need some volunteers to engage in “online clinical trials”, no inputs would be needed from them. Just day to day workings. And all that data will go to machine, neither I nor my co-researchers would ever look into your day to day data. Just the machines would guide us like a weather monitoring system as “the human or our kids” key areas of interests to keep the mankind alert for any problems of future. Who know what — but COVID has taught us to be prepared! Its totally your wish to participate in it or not which is my installing this software tool in your device !
We are living in a new world—It all started few decades back. The Online World will continue to exists in our lives whether we agree with it or not, whether you like it or not. This is the new reality. This online world has become a necessity for us as a daily part of our lives. It is a small parallel world we live in and I say can be rightly called “Parallel Online Universe” . Yes, this is a full Universe on its own! And Yes we all live parallelly in our online presence on World Wide Web -WWW ! Oh yes, but this is not completely what we are, just the way we need and consume things are perpetrated in our daily lives much easily through Internet and now we are all used to it. Lest, we never though, before entering this world, that we need security guards there in and thefts are possible in online Internet life too! Aalas, all we saw was Use, Use and Use of being Online! if WWW has to give you so much comfort, friends, shopping’s, news, sports, entertainments and what not to mention here ! Everything in virtual world –and here you rub your mouse to call in the Internet Jinny! And just tell it — I want to watch a online live music concert. “Your wish my command” says the Jinny!
Well Well Well ! There are so many uses of internet! And yes, there are thieves too. But my today’s article is focused on Online Data and its respect, values, authenticity, purpose and use to society while making sure privacy is retained and maintained to the levels allowed by a particular citizen of Online Universe! Yes, Dear ladies and gentlemen – This online world where plethora of our data is shared is new, so is the people’s understandings – trying to figure out rules of what is right and what is wrong. I will explain this with an example, Corona is going on Earth, drugs were to be made ready to tackle it. The pharmaceutical companies of whatever extent wanted to heal mankind. But they had to do some testing on humans for that. Yes, you may not like to volunteer for a noble cause to test a drug which had already been made very deliberately and prior to that had been tested on animals. AND all was fine with the drug inventors. But what about human testing? Oh, you don’t want to get it done on you! That is ok—But your NO to clinical trial wont mean NO by everyone for clinical trials ! Right ! So, if some one is ready to do clinical trial of a new drug well tested by scientists on all parameters—they respect your “No” and they wont ask you and neither ask you for a reason. But there are folks who want to do what ever they can do for mankind welfare—and go in for human trials—-! Not for money but for mankind.
In the same way—If you don’t want to share your internet online data, such as links you clicked and your eating habits—you would be respected–! And your choice should be respected. But to tell you all major companies do ask your permissions! And if he like to share his preferences for data analytics, its his right to do so. Your independent voice cant stop him. Online data trials are needed for a healthy Online Universe ! Just like clinical trials are needed! If its your right to say “NO” to online trials, some need their voice too to say “YES” too. If you think your personal data would be leaked to a machine doing analytics and you are afraid of it. Some do say we are not afraid as we are not doing anything wrong or some are too open about their personal data—that they even write on their Twitter accounts—this is my after bath pic, now I am going to movie—That too with public view on. So, for some there is nothing to hide on in personnel data as to them it hardly matters if a machine does some algorithmic predictions based on it. No human is reading it for sure !!!!! Guaranteed! So to whom a data is leaked to –A Machine! Its ok if you don’t want a machine to know your preferences, but some are too ok—-that it’s a machine doing a job for a better Online Working of WWW Universe-a parallel world we all live in. And they may like to participate in Online data analytics trials too. These people should have a voice too!
Now I want to express why online data trials are needed for a even 1% of sample size of population of users and what are its uses. We all know we are in Pandemic, which is not ending and, its already more than a year. Ever thought of how it is affecting our lives. How we have changed and molded ourselves not only in working, but also in listening to songs, our movie tastes, to mention a few. What if some folks want to contribute to where the best creature on Earth viz Man is going online? Is it not important from scientific and medicinal purpose, for we want to predict if mankind is entering a depression pandemic? or are people anxious of something? or our kids too much into horrors stories-which should not happen, or is it that too many people from sample are involved in reading blogs about change in governments, or may be lot of people in the online trials asking for second marriage and not getting a right mate ? These are serious problems! Oh, yes what if our children start searching – alcohol online! Yes they would for sure not liked to be tracked by machines, but parents would set their privacy permissions! Not them! And we care for the future of our children and would not like to support even teenage pregnancy and sexually transmitted diseases. These are just some of the many reasons why parents would allow—–altleast some for their non-adult children privacy data to be tracked. How else can the machines find out about internet data theft when they click to buy a thing not meant for them. Its ok for parents and teachers to handle it. But this contribution is for the health of mankind not just for some, on the expense of some people donating their personal data and their children personal data for online trials! All to be read and executed by machines! Which will give no personnel information but a summary of the data analytics and where the online world is going to— We hope we will find some online contributors even one family in few hundred families can help us to lead a happy online life and hence happy life on Earth! Think over it! If you believe in ethics, believe in mankind –believe in trust! This is the aim of my algorithm to detect “Online Health of mankind”— purely on basis of personal choice as its your personal data.
These are some of the many problems which if even 1% of the online users agree –to share can really help mankind in several predictions. Even next wave of pandemic, malaria outbreak, or even the overall health of a country, society and Earth as on whole can be measure by these small personal data sharing———-All On Donation Basis not on theft basis.
Well there are thefts also that happen online-so many unpopular applications and website do data thefts. Sell data and use it in wrong way. Hence, I just recommend you to use authentic applications and websites, which always ask you permissions for your clinical trials of online data—which is safe and secure way to donate some data for analysis by mankind!
I don’t know whether this is being implemented yet or not, but this is my vision and my mission. If some one wants to donate personal choices what is your problem to it. You can say no. If it had been my company, I wont interfere in it. And you would be free to do what you like. !
Happy Earths Day- Let NATURE BE NATURAL , Let Earth BE MORE Natural !
Earth has is been though a lot with and without humans since its creation and existence. Be it acid rains that marked a start to all the major processes or be it the ice age! It has gone through several turmoil’s and still retain self equilibrium of the essential atmospheric, seismical, polar, geographical, biological processes, to mention a few, to the required levels, if not the best levels.
Not just industry emissions you have to focus on dear Leaders! What about cost of taking raw materials from beneath the earth crust? Is the mobile I use, is this its actual cost ? What is its cost to Earth ? How can we calculate its cost? Find parameters! Else I will let you know in my upcoming articles! How to find actual costs. What people see are visible effects on dear Mother Earth, viz. rise in temperature, pollution and ice melting on Earth making seal levels high. See invisible effects too—-earthquakes, volcanoes, un-necessary cyclones, hurricanes, flash flooding’s, thy are all saying something. Yes, climate change, and what about the permanent changes we are doing below earth crust–by over- mining– What is the limit on mining? Did you check seismic layers before giving permission to mine? Or is it just coal and gold? No, my dear people- Look beyond it. Ecosystems! How will you measure loses to ecosystems and extinct species—the damage is unrecoverable. I will give you metrics to measures these losses and use of Mathematics and AI in upcoming articles.
#BE_NATURAL ! #BE_GREEN !
On this Earth Day, 2021, when we look at Earth and the changes to some of the factors mentioned above, in past 100 years and more precisely 70 years, major changes were made in:
- Our way of livings
- Our day to day needs
- The way we commute
- The way we communicate
- The way we gain information-be it informative or for entertainment
- The way we cook
- The way we eat
- The way we carry things—Yes its a reference to Plastic we use in everything today
- In one phrase “Almost Everything”
Compare living in age 70 years back. Not much of vehicles, no mobile phones, no networks, no plastic, no plethora of gadgets in houses, no 4G, no 2G either! , no microwaves & ovens, no air conditioners, fridges,………………………………..so on!
And what we had then?? Birds lots of them singing, plants everywhere in our surroundings, Cattles nearby, fresh milk, fresh butter, fresh flour, fresh and cheap vegetables easily available in neighborhoods. Why so many pesticides, why not set some standards ? Why not use AI based learnings ? Where have birds gone from neighborhood? No trees, no green plants, and lot of cellular networks to disturb them in cities, I am not say mobile technology is not needed, the thing is finding right balance between human needs and birds, animals and insects needs too– they form an equal parts in ecosystem and give back a lot–to Earth and humans! Why most meditation audio recordings have nature sounds, birds chirping sounds? As they have healing effects! But now——real voices are replaced by audio——Is it the same ! Watching a Live Music Concert and watching on TV – Is it same ? Where are honey bees? When breaking a bee hive and eating fresh honey was so common. Who used to buy honey when every other tree around had bee hives. And we used to play with butterflies???? And present home grown flowers to our teachers every week. No! Yes, the average age of man has increased but so have the diseases. The present situation is a clear indication of the proofs of what I am saying. We have to take the best from the modernization but keeping track not to make irrepairable changes to our beloved planet!
Civilizations lived before as well. Sewage was then also and is not a new alian word in our dictionary, so why rivers and seas be allowed to accept sewages as in some part of world–even in good parts of world?? Or is in all our efforts we just focusing on making new cars, tech, robots and earn money and keep economy going without looking at side effects. How many car humans needs? Why existing cars cant be reused with attachable AI components and efficient fuels or batteries?? Do you know dismantling a car and creating a new car what if costs to Earth? To someone it must be few thousands of dollars, but what is the cost of a new gadget on and to Earth ?
Not just a car. I am asking you what is the cost of the following on Earth?
- A plastic bottle to store water: Oh yeah wooden or natural rubber is too costly, who will do hardwork with wooden bottles and who will grow so much of rubber, where concrete jungles can be made???
- A plastic boat?
- A plastic toys? Wooden toys take much longer to be made. But do you know so much wood is being burnt. One could have used it in constructive way and replantation could have been performed.
- Untreated Sewage flow in fresh and salty waters?
- Gasses emitted from equipment’s such as Fridge and air conditioners.
- A new gadget
- A new cellular tower
- Excess unground MINING!
Its not just green house effect that the world leaders have to reduce in by 2030! Well dear leaders look at- natural preserves, where are our ecosystems? Where are our plants, trees and flowers, where are our animals, the cats that used to come to our houses to steal milk from our kitchens, which our kids used to play with. Or we want our kids to live in a virtual worlds post CORONA times too ? Isn’t that too much.
Oh if you say, these thing are our bread and butter! Well then growing natural rubber, jute, silk(in an nature friendly way), wood, carpentry to produce daily use things from wood, would produce even more jobs than the current sources of employments of manufacturing non-earth friendly un-disposable stuffs. Can we calculate it ? How much employments would be produced ? It is just a way to change – Just a step. No change is ever welcomed by all easily, as humans as complacent with what they are doing and how things are happening. This is human nature. But it is a change in way we think, and gradual change in way things can change. And more employments would be produced for demand is high always for essential things. I am not asking one to replace plastic from medicinal procedures which needs it most of the times, till an alternative is discovered well in our research labs of chemistry departments!
We don’t need to go to aroma therapy to breathe in natural scents of flowers. Each community garden should be having natural aroma therapy via variety of flowers, plants and herbs growing there. Why we don’t see hens, rabbits, kittens in gardens now ? Do we need to go to far off zoos for them ? Why injections are given to make cows give more milk? Hens are given these too? And there was a article I read (I don’t know was it authentic or not ) that eating eggs of such hens can effect hormonal processes of young children–till than switch to organic eggs??? —- We cant avoid everything, but we can let NATURE BE NATURAL ! Let NATURE BE NATURAL , Let Earth BE MORE Natural ! That is what is my message on this World Earth Day!
I can provide you metrics of costs in upcoming blogs–It may take some time as I am busy with my own works too. Well it can be good industry project. I can guide you if you need.
AI: Sentiment Analysis and Fuzzy Sets based Summarization Technique —- Research based Approach (sample explanation with Python)
Here, in this article I am proposing a novel technique to summarize text documents. Well I am not writing a research paper for it but giving you basic explanations of key steps involved. It is a novel technique as sentiments have not been used with Fuzzy Inference Engine to the best of my knowledge for Text Summarization. I started working on this topic in 2016, though given time constraints and constraints, I didn’t publish the work yet. The work I did was in Java using Java based libraries. I have rewritten the code in Python for you to understand the basic steps, to be expanded into. Values and knowledge base in Fuzzy Inference Systems have to be edited as per applications. I have provided sample values for your understandings, not the values used in original research [which shall be send for publications and made available later].
This article can be taken as a (1) Tutorial for learning application of Fuzzy Inference Engine, Mamdani systems in particular, (2) Summarization technique in Python, (3) Novel research proposal for application of sentiment analysis in Fuzzy based Summarization Techniques.
Typically, this article was meant for research publication. But I have enough publications and I want research to reach humble minds for free! Here is the proposed technique in python.
1. Pre-processing documents and sentences
| # import important NLP packages from future import unicode_literals import spacy,en_core_web_sm from collections import Counter nlp = spacy.load(‘en_core_web_sm’) from spacy.matcher import Matcher matcher = Matcher(nlp.vocab) sentence_to_be_ranked = (‘Financially good conference situations.’) text_document_snippet = (‘There is a developer beautiful and great conference happening on 21 July 2019 in London. The conference is in area of biological sciences.’) #Load the complete document from a file. This is for illustration only doc = nlp(text) sent = nlp(title) |
2. Get Largest Noun Chuck
Get the main longest noun chunk from the text fragment. Only most important chuck is being considered by the algorithm and shall be returned. There can be several kinds of chunking possible. Chunking is a kind of shallow processing. Why chucking —as it is useful in summarization techniques to highlight the important phrases. And largest chunks will be highlighted in the summary across all sentences after ranking them all. Other chunking techniques exists, look in my future articles about more on this. Here, just key steps of summarization.
| # inputSentence is the input to of which the longest chunk is to be found def getMainNounChuck(inputSentence): lenChunk = 0 prevLen = -1 mainChunk = “” for chunk in inputSentence.noun_chunks: lenChunk = len(chunk) print (chunk) print(lenChunk) if prevLen < lenChunk: mainChunk = chunk prevLen = lenChunk print(“Main chunk is: “, mainChunk) return mainChunk Sample Output: Main largest chunk in sentence for ranking is: Financially good conference situations Main largest chunk in given 2 sentences is: beautiful and great conference |
3. Get Sentiment Score of Sentence to be Ranked
There are several ways to compute the sentiment of a given sentence to be ranked as a part of collection of sentences to create an extract. The two methods are not exhaustive, but there are plethora of other options to compute the sentiments. For, research purposes I suggest you use a supervised or unsupervised trainer to train sentiment module on the topic of your interest, this means the domain in which you wish to perform the experiments: Is it sports news articles, medical articles, movie review summarization. Such a sentiment analyzer will be more beneficial to the output and relevance of results. But since the article aims to just give snippets of tasks in short. You can look on my other articles of how to learn sentiments per domain of text categories.
def getSentimentScore(doc): print(“Sentiment is “, doc.sentiment * 10) return doc.sentiment * 10 Another way to compute sentiment def getsentiment2(sent): from textblob import TextBlob sentimentObject = TextBlob(sent) sentimentObject = sentimentObject.sentiment print(“Sentiment”, sentimentObject.polarity * 10) return sentimentObject.polarity * 10 Sample Output: sentence= (‘Financially good conference situations.’) Sentiment 7.0 Preferable Recommended way which I use and suggest: A self trained model on corpus! |
4. Similarity between document and sentence
The following small python code is enough to find basic similarity between a sentence and the text document(s) under consideration. Well there are several kinds of similarity measures in NLP some very popular being Wu-Palmer and Leacock Chordorow, path based similarity, Resnik measure, Lin measure to mention a few. As a researcher I suggest analysis on all these fronts before finalizing on any one. Some other similarity measures are lexical similarities, Cosine similarities among one-hot representations, vector space representations or FastText, GLOVE Vector representation or any other word embeddings such as Word2Vec or may be just WordNet based similarities. A lot of options to choose from. So which one I am using in this problem ? Or even in any other problem ? Still the task can be made more simple, the choice of algorithm, you can mail me for details once your basic steps are complete!
| def getSimilarity(sentence1, doc1): return doc1.similarity( sentence1 ) Recommended: More insight in kind of similarity measure used esp. the most useful ones for a current problem. A deep insight is needed here, while choice of technique to be used is being made. Sample Output: The similarity between sentence and document is 0.3219 |
en_core_web_sm, don’t come with word vectors and utilizes surface level context-sensitive tensors. Hence for an efficient toolkit you would have to use more than this! I have implemented this fragment of work in Java using DL4J!
5. Get Part of Speech Count
Part of Speech is another parameter to the Fuzzy Inference Engine that I propose to use in a slightly different way. Being as in typical NLP summarization techniques using Fuzzy Inference Engines, an input is typically used as NOUN count. But here we have proposed to use: Noun Count, Adjective Count, Adverb Count to mention a few. The code snippet for a easy computation of count of a particular POS tag as specified in parameter “inputPOSTag” for text in “inputText” can be written in Python as follows.
| def getPOSCOUNT(inputText, inputPOSTag): nlp = en_core_web_sm.load() count = 0 for tokenInputText in nlp(inputText): countPOS +=1 dictonaryInputText= (Counter(([token.pos_ for token in nlp( tokenInputText)]))) print( dictonaryInputText ) return dictonaryInputText [inputPOSTag]/( countPOS+1) * 100 |
6. Checking Values-So far So Good
The following code is to check the values computed by the NLP Engine is fine or not ! If not change the algorithms and techniques used as suggested in points above. Once done go to next step of setting up Fuzzy Inference Engine for summarization.
print(getMainNounChuck(sent))
print(“the similarity between sentences is”, getSimilarity(nlp(title),getMainNounChuck(doc)))
getSentimentScore(sent)
print(“Noun count” , getPOSCOUNT(text,”NOUN”))
print(“Verb count”, getPOSCOUNT(text,”VERB”))
print(“Adj count”, getPOSCOUNT(text,”ADJ”))
Sample Output for input above.
Adjective count 11.53846
7. Defining Fuzzy Inference System (FIS) for Ranking Sentences
The following steps are performed for ranking the Fuzzy Inference System (FIS)
7.1. Defining the Antecedents and Consequents functions
The following input parameters are used. These are all defined above in the NLP Processing technique in details. Again this is a snippet for understanding, actual research has much more complex components, which are not discussed here in this article.
The Fuzzy Logic toolkits for illustration used are as follows:
import skfuzzy as fuzz
from skfuzzy import control as ctrl
The input parameters in FIS for the explanation are: [See skfuzzy for details on parameters and their detailed implications, which I am not explaining here. Given knowledge of Fuzzy Logic and Fuzzy Systems are assumed to be at considerable levels in this article]
similarity_document = ctrl.Antecedent(np.arange(0, 1.25, .1), ‘similarity’)
sentiment_score = ctrl.Antecedent(np.arange(0, 1.25, .1), ‘sentiment_score’)
nounCount = ctrl.Antecedent(np.arange(0, 110, 10), ‘nounCount’)
verbCount = ctrl.Antecedent(np.arange(0, 110, 10), ‘verbCount’)
adjCount = ctrl.Antecedent(np.arange(0, 110, 10), ‘adjCount’)
The following is the output variable defined with parameters as given below.
#consequent
rank = ctrl.Consequent(np.arange(0, 24, 1), ‘rank’)
7.2. Define the Input and Output Linguistic variables in FIS
The following is brief description of how to define the Fuzzy Sets involved in the process.
similarity[‘low’] = fuzz.trimf(similarity.universe, [0, 0.3, 0.5])
similarity[‘average’] = fuzz.trimf(similarity.universe, [0.3, 0.7, 1])
similarity[‘high’] = # define as per requirements in your problem
sentiment_score[‘low’] = fuzz.trimf(sentiment_score.universe, [0, 0.3, 0.5])
sentiment_score[‘average’] = fuzz.trimf(sentiment_score.universe, [0.3, 0.7, 1])
sentiment_score[‘high’] = # define as per requirements in your problem
nounCount[‘low’] = fuzz.trimf(nounCount.universe, [0, 30, 50])
nounCount[‘average’] = fuzz.trimf(nounCount.universe, [30, 70, 100])
nounCount[‘high’] = # define as per requirements in your problem
verbCount[‘low’] = # define as per requirements in your problem
verbCount[‘average’] = # define as per requirements in your problem
verbCount[‘high’] = # define as per requirements in your problem
adjCount[‘low’] = # define as per requirements in your problem
adjCount[‘average’] = # define as per requirements in your problem
adjCount[‘high’] = # define as per requirements in your problem
Pictorial Representation of some Fuzzy sets defined for illustration (sentiment_score):

7.3 Output Membership Functions for Linguistic Variable Rank
rank[‘low’] = fuzz.trimf(rank.universe, [0, 0, 10])
rank[‘average’] = # define as per requirements in your problem
rank[‘high’] = # define as per requirements in your problem
Sample Fuzzy Sets for “rank”

7.4 View the Fuzzy Sets
sentiment_score.view()
nounCount.view()
verbCount.view()
adjCount.view()
similarity.view()
rank.view()
8. FIS Rulebase-Sample
The following are some sample rules for FIS summarization toolkit. These are not exhaustive and are documented here to illustrate the procedure and to pave your understandings.
rule1 = ctrl.Rule(similarity[‘low’] | sentiment_score[‘low’], rank[‘low’])
rule2 = ctrl.Rule(sentiment_score[‘average’], rank[‘average’])
rule3 = ctrl.Rule(sentiment_score[‘average’] | similarity_title[‘average’], rank[‘average’])
rule4 = # define as per requirements and experts views
rule5 = # define as per requirements and experts views
rule6 = # define as per requirements and experts views
rule7 = # define as per requirements and experts views
rule8 = # define as per requirements and experts views
rule9 = # define as per requirements and experts views
rule10 = ctrl.Rule(similarity[‘high’] & nounCount[“high”] & sentiment_score[‘high’] & verbCount[“high”] , rank[‘high’])
Define FIS system now and perform simulations.
rankFIS = ctrl.ControlSystem([rule1, rule2, rule3, rule4, rule5, rule6, rule7, rule8, rule9, rule10])
rankFIS = ctrl.ControlSystemSimulation(rankFIS)
9. Computing Rank (Importance) of a Sentence using the sample FIS
Here for a particular a sentence whose importance or rank in respect to other members of text fragments is to be computed. The NLP properties defined in 2-6 above are computed and set in the FIS system as below:
rankFIS.input[‘similarity_title’] = getSimilarity(doc,sent)
rankFIS.input[‘sentiment_score’] = getsentiment2( sent )
rankFIS.input[‘nounCount’] = getPOSCOUNT( sentNLP ,”NOUN”)
rankFIS.input[‘verbCount’] = getPOSCOUNT( sentNLP ,”VERB”)
rankFIS.input[‘adjCount’] = getPOSCOUNT( sentNLP ,”ADJ”)
The following steps illustrates computation of ranks based on the inputs just provided through computations above.
rankFIS.compute()
print (“the answer is”)
print (rankFIS.output[‘rank’])
#view the Fuzzy Inference System
rank.view(sim=rankFIS)
The output of illustrative FIS for input taken in this article is as follows:
Rank = 7.3040, The FIS Rank defuzzification is as follows:

10. Conclusions
This was a brief article explaining the key steps in building FIS based system for summarization. Once ranks for all sentences are formed the main chunk identified in top p% of sentences can be highlighted in the application as the output of the tool. This is a novel approach in that sentiments have not been used in any work with FIS for summarization as of now. Also adjective count, chunking, adverb counts have not been used prior to this proposal in this article.
The aim of article is to lay emphasis that research can progress outside research publications too ! At least research proposals can ! Further this article explains how to use FIS in NLP application of text extraction.
History- prior to 5000 BC ! Well Written and Kept Intact even now??? Why are the manuscripts, history, dating several millennium back- IMPORTANT!
What is older than oldest proofs of mankind and mans existence on Earth! We are going to Mars and Moon! Have we explored to our past fully?
One example of millenniums old manuscripts are Vedas, Upanishads (if I am not wrong) Do check the exact dates on internet! What are others. Can we summarize them for easy understanding of common minds!
Here, is an example:
How old are the Vedas? – Ancient Science
What are Vedas & How Old are Vedas – HindUtsav
Other parts of worlds manuscripts please ?
Well if you have hard(soft)copy of scripts dating back to 5000 BC intact, they have much more to give us, not just the information, but society structures, living situations, including food, clothing and patterns of climatic behaviors predominant in the regions, in the times! Not just that how the civilization communicated with the world outside its realm –though planes were not there ! And may be forgotten healing and medicinal practices!
It is awesome to have a original view of such old scriptures and even been able to read them. Yes, one can start with English translation to understanding the histories and then can follow the original versions, after gaining the language competencies.
Well if there are around 1200 BC manuscripts, iron embeddings etc. available to us on Earth, well intact??. Then, these must be history much older than 2000 BC. Why? Because if something is written on a good preferable form of media – wooden paper. It must have been written on leaf before that, before being copies to the presently available form, and it must be on voice of people and in the mouths of great preachers and teachers-the Kings and Queens!? How can I say so– Based on Logics! Logic & no fiction here— that this is how the mode of communications must have progressed (if I am not wrong, my logics here, as I am not a historian nor an archaeologist, just a inquisitive learner) while man learned to use printer and computer to print modern day — solutions and discoveries.
Back then there were no computers, as man started writing with feather’s of birds on dried leaves and so on. Wisdom of mouth got a mode of communication through these snippets. This is (may be others too agree, may be noted before too, common sense, that is all), one probable philosophy of transfer of knowledge. Hence, a script written in Sanskrit dating 1200 BC, means the fundamentals were transferred through various communication techniques developed in this process of development of mode of information processing in early eras of pre-historic times. This amounts to fundamentals being even older than 1500 BC and the word of mouth things even much elder to around 5000 BC. Imagine the no paper world—and how the rulers must be transferring knowledge after ——–oral language was invented for communication ! 1200 BC is just for an illustration. I am myself reading how old the oldest scriptures on earth are.
The Aryan language existed in around 10,000 BC. [As per Source on this website: How old are the Vedas? – Ancient Science]. So, are their any manuscripts dating back to 10,000 BC ?
Which other civilizations on earth have such old works preserved till date ? Do comment about your knowledge about these facts. My interest in this area is recent and I am as naïve to the subject as you. This article is my objective analysis of any such old scripture on globe. If I am wrong in my analysis I am open to suggestion to improve my inquisition on this highly interesting area of research. [research->>re –searching].
Several website gave a new date to some archeologically old precious things to study which are human own writings -scriptures. So, even I am wondering the exact date and the technique used to find it. Radiocarbon dating?
As per these articles, Vedas, which are scripts intact written in Devanagari. Check the links on left panel on top of this webpage to have a view of how these old scripts look like. This is just an example. I am curious for all the old articles and snippets and manuscripts all around the globe not just in India! Yes a lot of them from India are available on internet and I try too look into it myself, whenever I get time. Do mail me more such scriptures from your regions!




You must be logged in to post a comment.