snehilk1312 / inquiry_or_not

Identify the sentences in a file is question or not using Spacy(https://spacy.io/usage)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inquiry_or_not

Python script to take file input which will contain a sentence per line. For each sentence you have to identify:

  • if it’s a question or not by detecting question phrases like what,how etc.
  • and tag it yes or no.
  • Write tagged data into another output file Identify the sentences in a file is question or not

Before running the script do the following things:

  • install spacy(https://spacy.io/usage) using pip3 install spacy(linux/unix) or pip install spacy(windows)
  • download the model of the choice using "python3 -m spacy download en_core_web_sm"(linux/unix) or "python -m spacy download en_core_web_sm"(windows)

About

Identify the sentences in a file is question or not using Spacy(https://spacy.io/usage)


Languages

Language:Python 100.0%