Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Preprocessing Tools

  • TextPreprocessor.py:
    • Filter the corpus to contain the most frequently occuring words (the smallest set of unique words) whose cumulative frequency >= p% (e.g. 95%) of total words.
    • Create Word2Vec embeddings of the filtered corpus (firstly, run 0_train_word2vec.py on command line, then the word embeddings of Word2Vec are used to create the embeddings of the filtered corpus (see the example in TextPreprocessor.py)).
  • TransformerTextPreprocessor.py:
    • Filter the corpus to contain the most frequently occuring words (the smallest set of unique words) whose cumulative frequency >= p% (e.g. 95%) of total words.
    • Create text embeddings of the filtered corpus using the BERT transformer (see the example in TransformerTextPreprocessor.py).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages