deep-keyphrase
Implement some keyphrase generation algorithm
Description
Implemented Paper
CopyRNN
ToDo List
CopyCNN
CopyTransformer
Usage
required files (4 files in total)
vocab_file: word line by line (don’t with index!!!!)
this paper proposes
training, valid and test file
data format for training, valid and test
json line format, every line is a dict:
{'tokens': ['this', 'paper', 'proposes', 'using', 'virtual', 'reality', 'to', 'enhance', 'the', 'perception', 'of', 'actions', 'by', 'distant', 'users', 'on', 'a', 'shared', 'application', '.', 'here', ',', 'distance', 'may', 'refer', 'either', 'to', 'space', '(', 'e.g.', 'in', 'a', 'remote', 'synchronous', 'collaboration', ')', 'or', 'time', '(', 'e.g.', 'during', 'playback', 'of', 'recorded', 'actions', ')', '.', 'our', 'approach', 'consists', 'in', 'immersing', 'the', 'application', 'in', 'a', 'virtual', 'inhabited', '3d', 'space', 'and', 'mimicking', 'user', 'actions', 'by', 'animating', 'avatars', '.', 'we', 'illustrate', 'this', 'approach', 'with', 'two', 'applications', ',', 'the', 'one', 'for', 'remote', 'collaboration', 'on', 'a', 'shared', 'application', 'and', 'the', 'other', 'to', 'playback', 'recorded', 'sequences', 'of', 'user', 'actions', '.', 'we', 'suggest', 'this', 'could', 'be', 'a', 'low', 'cost', 'enhancement', 'for', 'telepresence', '.'] ,
'keyphrases': [['telepresence'], ['animation'], ['avatars'], ['application', 'sharing'], ['collaborative', 'virtual', 'environments']]}
Training
download the kp20k
mkdir data mkdir data/raw mkdir data/raw/kp20k_new # !! please unzip kp20k data put the files into above folder manually python -m nltk.downloader punkt bash scripts/prepare_kp20k.sh bash scripts/train_copyrnn_kp20k.sh # start tensorboard # enter the experiment result dir, suffix is time that experiment starts cd data/kp20k/copyrnn_kp20k_basic-20191212-080000 # start tensorboard services tenosrboard --bind_all --logdir logs --port 6006
Notes
- compared with the original
seq2seq-keyphrase-pytorch - fix the implementation error:
copy mechanism
train and inference are not correspond (training doesn't have input feeding and inference has input feeding)
easy data preparing
tensorboard support
faster beam search (6x faster used cpu and more than 10x faster used gpu)
- compared with the original
Metadata
Release files for deep-keyphrase 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deep-keyphrase-0.0.9.tar.gz | 44.0 kB | Without provenance | Details for deep-keyphrase-0.0.9.tar.gz |
Release files / deep-keyphrase-0.0.9.tar.gz
| Download URL | deep-keyphrase-0.0.9.tar.gz |
|---|---|
| Size | 44.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c152df5f1fe62500448632fa593a49ee6d71affaaf644d3c8866683246091aaa
|
|
BLAKE2b-256 checksum How to use checksums |
22f71a9b07c3f6396d2d016282603a0ac42fcb0bd45177074d6dbf1f73fe2f85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
|
Security for deep-keyphrase 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.