Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sammous/allennlp_tagger
Academic Paper/Document classifier based on SCOPUS categories
https://github.com/sammous/allennlp_tagger
allennlp classification nlp python pytorch scopus
Last synced: 3 months ago
JSON representation
Academic Paper/Document classifier based on SCOPUS categories
- Host: GitHub
- URL: https://github.com/sammous/allennlp_tagger
- Owner: sammous
- Created: 2018-04-10T13:47:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:58:19.000Z (about 2 years ago)
- Last Synced: 2024-10-03T10:32:23.207Z (3 months ago)
- Topics: allennlp, classification, nlp, python, pytorch, scopus
- Language: Python
- Homepage:
- Size: 45 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Academic Paper/Document classifier based on SCOPUS categories
## Usage
Paper classifier taking as input a JSON with follow fields :```
text: string
```And returning probabilities for over 237 categories extracted from SCOPUS.
## Training
To train a model :
```
python -m allennlp.run train allen_trainer/scopus_classifier.json \
-s model \
--include-package papers
```## Making Predictions
Making predictions on a JSON file :
```
allennlp predict model/model.tar.gz \
scopus_test.json \
--include-package papers \
--predictor paper-classifier \
--output-file scopus_test_pred.json
```## Demo
### Visualisation demo for a text classifier.
The folder `demo` contains the front app to demo a model trained via [allenNLP](allennlp.org) with some visualisations. Examples can be previewed on their [demo website](demo.allennlp.org/).
### RequirementsallenNLP server must be running with a classification model (allenNLP simple server) on port `8000`.
Example command :
```
python -m allennlp.service.server_simple \
--archive-path model/model.tar.gz \
--predictor paper-classifier \
--include-package tagger
```### Running demo
To run the demo :
```
cd demo
sudo npm install
sudo npm start
```
## Credits- https://github.com/allenai/allennlp-simple-server-visualization/tree/master/demo/src
- https://github.com/allenai/allennlp
- http://www.allennlp.org