The SpacyApi is the restful-Api that helps in easy interactions between the end users and the server. This is made with the help of flask, flask-restful, flask-sqlalchemy. Here, different types of operations are done to clean the text(for preprocessing) and find about the properties of the text like their part_of_speece, dependencies, and so on
- GET /data/string:text_id : This route helps in getting all the text of a certain
text_id
from the database.text descriptions
can be added to body andtext_id
should be passed in the url. Iftext_id
doesn't exist then it will be informed. - GET /plot/string:csv_filename : This route is for getting the graph plots of the given csv file. The
csv_filename
should be passed in the url to get the plots. The availablecsv_filename
are:
adj_frequency.csv
adj_noun_frequency.csv
name_frequency.csv
noun_adj_frequency.csv
noun_frequency.csv
noun_noun_phrase_frequency.csv
verb_frequency.csv
- POST /data/string:text_id : This route is for posting the data ie
text_description
to the database. Iftext_id
already exists or doesn't exist then it will be informed. - PUT /data/string:text_id : This route is for updating the
text_description
of the particulartext_id
. Iftext_id
doesnot exist, it will be informed. - DELETE /data/string:text_id : This route is for deleting the text of particular
text_id
. Iftext_id
doesnot exist, it will be informed.