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

Converting BeautifulSoup objects to LXML trees in Python

How to convert a document parsed with BeautifulSoup into an LXML tree in Python, for example to pass it on to htmldate or to run XPath queries on it.

more ...

How to make language detection with langid.py faster

Using py3langid, a modernized fork of the popular langid.py, as an example of how to maintain and speed up a Python package for language detection.

more ...

Web scraping with Trafilatura just got faster

Trafilatura’s HTML to text extraction got faster on its benchmark, thanks to changes in two dependencies, charset_normalizer and jusText.

more ...

A simple multilingual lemmatizer for Python

Simplemma is a simple multilingual lemmatizer for Python: it groups the inflected forms of a word under their dictionary form.

more ...

Evaluation of date extraction tools for Python

Python date extraction tools compared: htmldate performs best, runs faster and covers more small sites, blogs and non-English pages.

more ...

Evaluating scraping and text extraction tools for Python

Python packages for web scraping and text extraction compared on robustness and speed, to find which tool best separates main text from boilerplate.

more ...

Indexing text with ElasticSearch

Practical tips for indexing text with Elasticsearch: mappings, language analyzers and options for linguistic analysis of corpora such as tweets.

more ...

Parsing and converting HTML documents to XML format using Python’s lxml

How to parse HTML documents and convert them to XML TEI with Python’s lxml module, with code examples.

more ...

A one-pass valency-oriented chunker for German

A one-pass finite-state chunker for German, presented at LTC‘13, matches POS-tag patterns with regular expressions to find phrases and estimate verb valency.

more ...

Guessing if a URL points to a WordPress blog

How to tell quickly whether URLs point to WordPress blogs, combining a filter on common permalink patterns with HTTP HEAD requests.

more ...

  • «
  • 1
  • 2
  • »

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