Skip to content

Short snippets of different nlp AI tasks written with Keras.

Notifications You must be signed in to change notification settings

zushicat/keras-nlp-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keras-nlp-snippets

Short snippets of different nlp AI tasks written with Keras.

The scripts gradually get more complex. Links regarding basic ideas, code examples or concepts are left in the comments in each script. Use _load_data.py to load yml files (here starting with "conversations").

The data directory is not included. Here are the links

To use embedding n char level (i.e. german_vectors_100_char.txt as in 2_2_text_generation_simple_char.py), use utils/glove_char_embeddings.py on your glove embedding file.

0 Text classification

Just simple classifiers.

1 Sequence 2 sequence

Used i.e. for Q&A or translation, basically everything following the schema: something in -> something else out

2 Text generation

Basic examples for text generation (trained short on texts separated by linebreaks):

  • char level: 2_2_text_generation_simple_char.py
  • on word level: 2_3_text_generation_simple_word.py

About

Short snippets of different nlp AI tasks written with Keras.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages