Visualize sentence dependency structure in Python

You can use libraries like spaCy or Stanza to visualize sentence dependency structure in Python. These libraries provide tools for natural language processing (NLP), including dependency parsing.
Python  Text Analysis 

Find the semantic similarity of words using the gensim library

Here is the code uses the gensim library to load a pre-trained Word2Vec model and find words that are semantically similar to the word "king".
Python  Text Analysis 

Performing calculations between a 1-dimensional array and a 2-dimensional array in Python

Here are examples demonstrate various ways to perform calculations between 1D and 2D arrays in Python using NumPy.
Python 

Differences between lists and tuples in Python

In Python, both lists and tuples are used to store collections of items, but they have different characteristics and use cases.
Python 

Merging arrays in Python

Merging arrays (or lists) in Python can be done in several ways depending on your specific needs. Here are some examples.
Python 

Array slicing in Python

Array slicing in Python allows you to extract a portion of a list, string, or other sequence types. Here are some examples of array slicing in Python.
Python 

Practical examples of lambda functions in Python

Lambda functions in Python are small, anonymous functions defined with the lambda keyword. They can have any number of arguments but only one expression. Here are some detailed examples of lambda functions in Python.
Python 

A complete example using Python's list() to solve practical problems

Here is a complete example using Python's list(), demonstrating how to create, manipulate, and utilize lists to solve practical problems.
Python 

Summarize the usage of the Python list() function.

The list is one of the most commonly used data structures in Python. It is used to store an ordered collection of elements, which can be of any type (e.g., integers, strings, or even other lists). This tutorial will provide a detailed guide on the basic usage and common operations of list.
Python 

Count the number of occurrences of each character in a string in Python

This article demonstrates the use of dictionaries in Python through an example. It creates an empty dictionary to store characters from a string and their corresponding occurrence counts.
Python 

Use Python to load raw text data files

It is very convenient to use Python to load raw text data into the memory for data processing. Here, we provide the code template for your reference. It shows you how to list the data files that you want and read the text data into a list.
Python  Text Analysis 

How to calculate keyword frequency and draw the bar chart in PHP

This post shows you how to calculate the keyword frequency from text and draw the bar chart by using the JpGraph library.
PHP  JpGraph  Text Analysis 

How to count words in a string in PHP

Show you how to count words and extract words from a string by using the PHP function str_word_count()
PHP 

Create an object from a string variable in PHP

In PHP, objects can be created from string variables. It provides a very convenient way for you to define rules in text and handle requests dynamically. In this post, we show you how to do it.
PHP 

Reverse an array in PHP by using recursion

Let's go back to a computer science textbook topic. Show you how to reverse an array in PHP without using any native array functions such as array_xxx().
PHP 

PHP functions strcspn() and strspn()

It's convenient to use the PHP functions strcspn() and strspn() to find out the masking characters and filter a string
PHP 

Write your own filters and functions in Twig

Create your own custom filters and functions that can be used in Twig templates
PHP  Twig 

String concatenation and interpolation in Twig

Two useful operations in Twig for string concatenation and interpolation
PHP  Twig 

Render a DateTime object in Twig

Use the date filter to render DateTime instances in Twig
PHP  Twig 

Setup Twig for the web project in WampServer on Windows

Setup Twig in WampServer on Windows
PHP  Twig 


Search