r/LanguageTechnology • • Dec 10 '20

PhilosophAI : a tool for visualizing philosophical ideas throughout history using state of the art NLP model

Hi community !

Today, I am pleased to present our project of visualizing philosophical ideas throughout history. This project aims to understand the evolution of a philosophical theme through time using artificial intelligence techniques (NLP - Natural language processing) based on the similarity between texts and the links of influences between philosophers. We have implemented our work within an interactive web application for educational use. The data comes from wikipedia on the list of all the philosophers, their thoughts and the links of influences between them.

I hope you will find the idea original and fun to use :)

https://philosophai.herokuapp.com/

(I'm aware that my post doesn't really respect the rules of the community but I really need your feedback on our idea to improve it.)

PS: In the coming weeks, I will probably write an article to explain the reflections and the work that led us to this result :)

Thanks.

42 Upvotes

14 comments sorted by

3

u/[deleted] Dec 11 '20

Philosophy graduate here. This is really cool! Would it be possible to train your model on entries from the Stanford Encyclopedia of Philosophy or the Internet Encyclopedia of Philosophy? I know lots of NLP people use wikipedia due to its accessibility, but those two are authored by people who specialize in the topic of each entry.

1

u/Mathieu23AI Dec 11 '20

Absolutely.

We hesitated to use the Stanford database. However, the author's thoughts on the various subjects are sometimes very long and not summarized enough. So we preferred to use the wikipedia database because it is more concise. Nevertheless, it is possible that for the rest of the project we will use the Stanford database both to enrich it and to have better quality data.

Thank you for sharing the IEP database. It is structured very differently, combining the author approach and schools of thought.

With your qualifications, can we discuss privately in order to have more intuition on the different ways to approach the problem?

Thank you for the reply :)

4

u/[deleted] Dec 11 '20

This seems like a great idea but as a philosophy student you must know that philosophers have an extremely annoying habit of using words in fundamentally incompatable ways. As such the words themselves are not good signifiers of correlation.

How do you address this?

1

u/Mathieu23AI Dec 11 '20

Without going into too much detail, we first used a bi-LSTM model (https://paperswithcode.com/method/bilstm) that allows us to recontextualize each word in relation to its environment. If you don't know what a bi-LSTM is, I invite you to understand what a classical neural network is and then what an RNN is.

Through the intuition that I have (still ungrad student), it is not a problem. Indeed, for a given word in the sentence, we will assign values (in the form of a vector) according to the context (words before and words after). This means that the intrinsic meaning of the word counts less than its context. What would be problematic is to compare philosophical texts with texts from Twitter/Facebook because the words have very different meanings. But here we compare philosophical texts with each other.

2

u/[deleted] Dec 11 '20

I am not convinced that ML of any kind is able to understand the context to a deep enough degree to be able to tell apart, for example, the different meanings of extremely variant words such as God, good, evil, etc. especially given that much of philosophical texts are spent defining and critiquing other texts in which the words are used differently by previous authors than by the one writing the critique.

Seems like a classic case of a misuse of the tech for a problem that lies outside of its scope.

1

u/Mathieu23AI Dec 11 '20

For the first part of your answer I totally agree with you. ML systems are not able to understand the nuances of words and the context to a deep enough degree. However, in our case, we do not try to make the machine understand the deep meaning. We just want the machine to be able to encode the texts in order to compare them in a meaningful way.

To answer your question I will first explain how, from an input text, the system manages to find similar texts. And then show that the results are rather encouraging.

  1. I encode all my texts using BERT (a more powerful model than ELMO bi-LSTM, using same logic in different ways) . I therefore have a high dimension vector for each text.

  2. I select a text, I measure its similarity with all the other texts using the cosine similarity.I establish a ranking list of the texts from the most similar to the least similar. I keep only the top 5% of this list.

3.For the philosopher of the text selected as input, I assign a list of influence/influenced philosophers using the data on wikipedia.

4. In my top 5% ranking, I remove the texts that were not written by philosophers contained in the list of influence/influenced philosophers from the author of my input text.

5. And this is where the data in the graph comes from.

To support my explanation, I can show with rather satisfactory examples: if you take Jean-Jacques Rousseau on Political Theory (3), you can see that the similar texts chosen all deal with the theme of politics. If the system was completely stupid, it would take out texts by Aristotle, Thomas Hobbes on themes such as logic or religion....

1

u/[deleted] Dec 12 '20

So if the data about peers/references depends on human input there’s no reason to believe that the categorization produced by your algorithm is an objective reflection of influences- since the input may vary from article to article and in all cases is not going to be a complete representation.

So this is all to say that the tool then becomes one that can serve the purpose of info discovery but not classification.

1

u/Mathieu23AI Dec 12 '20

Absolutely. I guess when you say classification, you mean clustering? Because there are no values to predict. It's a problem of unsupervised learning (the distinction is important in machine learning).

In fact, we've proven that clustering doesn't work with the error metrics of the k-means algorithm: inertia and silhouette score are not very good. We can conclude that clustering does not work.

This idea has already been used to explore research papers. They tokenize the abstract of papers then they use the cosine similarity to explore similar papers.

2

u/crashbundicoot Dec 11 '20

how are the topics identified? Do you have a pre-defined set of topics or is this some kind of unsupervised topic modelling?

1

u/Mathieu23AI Dec 11 '20

The topics are intrinsic to the wikipedia data collection method. We have started to collect a list of philosophers: https://en.wikipedia.org/wiki/Lists_of_philosophers

Next, we selected the part concerning the philosophical thought of each philosopher (the one often called Thought, Philosophy). In this part, there are sub-parts that detail the different themes that he dealt with. The texts come from these subparts.

Everything will be explained in the article in a few days.

1

u/crashbundicoot Dec 11 '20

Looking forward to the article :)

1

u/Spare_Lengthiness708 Mar 14 '24

is this product still available? the link doesn't work anymore, but would love to see what it was