Can we apply Neural Networks to two text comparisons? (I need the source code and reference)

Can we apply Neural Networks to two text comparisons?
Please give me helpful tips about how to proceed in this direction. You can provide relevant links and pointers to solve the above problem.
I am looking for source code for this problem or similar problem (as “Detect plagiarism using artificial neural networks”, etc…) . please help me.
thank you so much!!!