8
SupremeBrief Summarizing Legal Cases with NLP Andrew Koo - Insight Data Science

SupremeBrief Demo PDF version 2

Embed Size (px)

DESCRIPTION

This is demo of SupremeBrief, an app using NLP to create summary for legal court cases.

Citation preview

Page 1: SupremeBrief Demo PDF version 2

SupremeBrief Summarizing Legal Cases with NLP

Andrew Koo - Insight Data Science

Page 2: SupremeBrief Demo PDF version 2
Page 3: SupremeBrief Demo PDF version 2

Bush v. Gore (2000) - 121 S.Ct. 525

Page 4: SupremeBrief Demo PDF version 2

Bush v. Gore (121 S.Ct. 525)

In this instance, however, the question is not whether to believe a witness but how to interpret the marks or holes or scratches on an inanimate object, a piece of cardboard or paper which, it is said, might not have registered as a vote during the machine count.

What Counts as a Legal Vote?

Page 5: SupremeBrief Demo PDF version 2

Neural Network (word2vec)Vectorizing: The neural network finds features which are vector representations of the word

Calculating:

Ranking: Rank the sentences in the graph by applying PageRank

vector(Sentence)= mean( vector(Words) )

Converting: Use the sentence vectors and their cosine similarities to create a graph

Training: Use 120K documents to train a neural network model optimizing Θ so that it maximizes p(w |c)

Page 6: SupremeBrief Demo PDF version 2

U.S. Constitution

U.S. Government

U.S. Laws

U.S. Courts

Page 7: SupremeBrief Demo PDF version 2

Validation with 1000 Human Written Summaries

0

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

LSA Luhn TextRank TextRank NN 1K NN 120K

Nor

mal

ized

Sim

ilarit

y!

Sumy scikit-learn word2vec

Page 8: SupremeBrief Demo PDF version 2

Andrew Koo