We don't have a method to summarize pieces of text, which was the idea that gave rise to this entire project.
Solution
Add a function that takes in a body of text and returns a summary. This utilizes the node-summarizer package, which uses a weighted graph traversal approach to summarizing text. This function can be called in our API endpoints for Email Summarization and Document Summarization.
Testing
This was tested by temporarily introducing a console log into an already exposed route. I passed a few different bodies of text into this function and got a good summary as output.
Notes
In the future, this function should now be able to be altered (we could even completely change the summarization approach), but the routes that call it should not be affected.
Problem
We don't have a method to summarize pieces of text, which was the idea that gave rise to this entire project.
Solution
Add a function that takes in a body of text and returns a summary. This utilizes the
node-summarizer
package, which uses a weighted graph traversal approach to summarizing text. This function can be called in our API endpoints for Email Summarization and Document Summarization.Testing
This was tested by temporarily introducing a console log into an already exposed route. I passed a few different bodies of text into this function and got a good summary as output.
Notes
In the future, this function should now be able to be altered (we could even completely change the summarization approach), but the routes that call it should not be affected.
Closes #20