Wav-2-Txt

Fri 14 November 2025

title: "Wav 2 Text" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false


import speech_recognition as sr
from os import path
from pydub import AudioSegment
'''
How to install ffmpeg:
brew tap varenc/ffmpeg
brew tap-pin varenc/ffmpeg
brew install ffmpeg $(brew options ffmpeg --compact)
    https://gist.github.com/clayton/6196167 …

Category: textprocessing

Read More

Webanalyzer Simple

Fri 14 November 2025

title: "Web Analyzer Simple" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false


import webanalyzer
w = webanalyzer.WebAnalyzer()

w.headers = {
    "User-Agent": "custom ua",
    "header-key": "header-value"
}

w.allow_redirect = True
w.aggression = 0
r = w.start("http://www.fatezero.org")

print(r)
[{'name': 'Script', 'origin': 'whatweb'}, {'name': 'HTML5', 'origin': 'whatweb'}, {'name': 'Fastly …

Category: basics

Read More

Wiki-Bag-Of-Words

Fri 14 November 2025

title: "Wiki Bag of Words" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false


import re
from nltk.tokenize import word_tokenize
from collections import Counter
article = """'\'\'\'Debugging\'\'\' is the process of finding and resolving of defects that prevent correct operation of computer software or a system.  \n\nNumerous books …

Category: textprocessing

Read More

Wiki-Bag-Of-Words-2

Fri 14 November 2025

title: "Wiki Bag of Words 2" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false


import re
from nltk.tokenize import word_tokenize
from collections import Counter
article = """Natural lead consists of four stable isotopes with mass numbers of 204, 206, 207, and 208,[27] and traces of five short-lived radioisotopes …

Category: textprocessing

Read More

Wired-Reader

Fri 14 November 2025

title: "Wired Reader" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


import requests
from bs4 import BeautifulSoup
page = requests.get('https://www.wired.com/2013/09/nsa-backdoored-and-stole-keys/')
soup = BeautifulSoup(page.text, 'html.parser')
artist_name_list = soup.find(class_='article-body-component')

print(artist_name_list.text[:100])
It was only a matter …

Category: webreader

Read More

Word-Average

Fri 14 November 2025

title: "Word Average" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false


import nltk
f =open('canola.txt','r')
raw = f.read()
raw
'OTTAWA—The federal Liberals promised Wednesday to give Canada’s canola farmers much-needed financial aid to help lessen the impact of China’s decision to ban the …

Category: textprocessing

Read More

Word-Cloud-Shutter-Island

Fri 14 November 2025

title: "Word Cloud on Shutter Island Script" author: "Rj" date: 2019-04-21 description: "-" type: technical_note draft: false


from os import path
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import os

from wordcloud import WordCloud, STOPWORDS
# Read the whole text.
text = open(path.join('', 'script.txt …

Category: textprocessing

Read More

Word Counter

Fri 14 November 2025

title: "Word Counter" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


from collections import defaultdict
import re
content = """You know U make me wanna
You know U make me wanna
To start it off, I know you know me
To come to think of it, it was …

Category: basics

Read More

Word-Counter-Basic-1562

Fri 14 November 2025

title: "Word Counter" author: "Rj" date: 2019-05-20 description: "-" type: technical_note draft: false


from collections import defaultdict
import re
content = """You know U make me wanna
You know U make me wanna
To start it off, I know you know me
To come to think of it, it was only last …

Category: basics

Read More

Word To Chars

Fri 14 November 2025

title: "Word to Chars" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false


word = "Toronto"
word
'Toronto'
type(word)
str
letters = word.split()
type(letters)
list
for l in letters:
    print(l, type(l))
Toronto <class 'str'>
len(letters)
1
chars = list(word)
type(chars)
list
for c …

Category: basics

Read More
Page 142 of 146

« Prev Next »