Bits of Language: corpus linguistics, NLP and text analytics
  • Corpus Linguistics
  • Tutorials
  • Text Complexity

From web pages to generated text with Trafilatura and Markovify

A few commands to gather texts from a website with Trafilatura, count frequent word sequences and generate new sentences with a Markov chain.

more ...

Batch file conversion to the same encoding on Linux

Detect file encodings with file -i, parse the output with grep and convert every file in a directory to UTF-8 with iconv in a short shell script.

more ...

Introducing the Microblog Explorer

Outline of the Microblog Explorer, which collects URLs from FriendFeed, identi.ca and Reddit to use as seeds for web crawling.

more ...

Find and delete LaTeX temporary files

A bash snippet with find that locates and deletes temporary pdflatex files such as aux, bbl, log and toc across directories.

more ...

A fast bash pipe for TreeTagger

A bash pipe for the TreeTagger POS tagger that converts text to ISO-8859-1 with iconv and cleans it with sed to feed one word per line.

more ...

About Adrien Barbaresi
Research Scientist and Data Engineer specializing in Natural Language Processing and Artificial Intelligence

  • Social

    • LinkedIn
    • GitHub
  • Tags

    • code snippet
    • corpus linguistics
    • data mining
    • python
    • readability assessment
    • research
    • text cleaning
    • trafilatura
    • web corpus construction
    • web crawling
  • Links

    • Homepage
    • Scientific Publications

© 2026 Adrien Barbaresi · Powered by pelican-bootstrap3, Pelican, Bootstrap

Creative Commons License Content licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top