---
title: "#nterm articles | Hashnode"
description: "Explore 1 articles tagged #nterm on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/nterm"
---

Tag

# #nterm

1 posts · 0 followers

[Mohamad Mahmood](https://hashnode.com/@mohamadrazzimy) · [Feb 13, 2025](https://hashnode.com/posts/python-generate-ngrams-and-nterms/67ad3619791d0c209b67465f)

### [Python: Generate Ngrams and Nterms](https://hashnotes.hashnode.dev/python-generate-ngrams-and-nterms?utm_source=hashnode&utm_medium=feed)

\[1\] Generate Ngrams from itertools import islice def generate\_ngrams(text, ngram\_size=(2, 2), min\_word\_size=3, return\_tuple=True): """ Generate strict n-grams (adjacent word sequences) from the input text. Args: text (str): The ...

2 min read · [hashnotes.hashnode.dev](https://hashnotes.hashnode.dev/python-generate-ngrams-and-nterms?utm_source=hashnode&utm_medium=feed)
