Hi,
I am getting audio from my mic using PyAudio as follows:
self.stream = audio.open(format=self.FORMAT,
> channels=self.CHANNELS,
> rate=self.RATE,
> input=True,
>
Hello,
I want to weight terms of a large text based on their semantics (not on
their frequency (TF-IDF)).
Is there a way to do that using NLTK or other means? through a vectorizer?
For example: a certain term weights more than others etc...
Thanks
--
https://mail.python.org/mailman/listinfo/pyt
the purpose of the diagram is to convey a minimalistic idea about the
structure of the code/implementation/software
Le mer. 25 déc. 2024 à 01:49, Thomas Passin via Python-list <
python-list@python.org> a écrit :
> On 12/24/2024 3:42 PM, marc nicole via Python-list wrote:
> > i
The full python package (pypi) being represented as the outermost frame
here including the 4 sub-frames)
Le mar. 24 déc. 2024 à 22:05, marc nicole a écrit :
> I want to convey the idea that main.py (main algorithm) imports 3 modules
> (V, S, M) (each of them containing .py scripts rela
mar. 24 déc. 2024 à 21:56, dn via Python-list a
écrit :
> On 25/12/24 06:27, marc nicole via Python-list wrote:
> > Hello community,
> >
> > I have created a Python code where a main algorithm uses three different
> > modules (.py) after importing them.
> >
> &g
it is here https://i.sstatic.net/ykk5Wd0w.png
Le mar. 24 déc. 2024 à 20:03, Michael Torrie via Python-list <
python-list@python.org> a écrit :
> On 12/24/24 10:27 AM, marc nicole via Python-list wrote:
> > the diagram is also attached here
>
> This text-only mailin
the diagram is also attached here
Le mar. 24 déc. 2024 à 18:27, marc nicole a écrit :
> Hello community,
>
> I have created a Python code where a main algorithm uses three different
> modules (.py) after importing them.
>
> To illustrate and describe it I have created the f
Hello community,
I have created a Python code where a main algorithm uses three different
modules (.py) after importing them.
To illustrate and describe it I have created the following component
diagram?
[image: checkso.PNG]
Could it be improved for better description and readability?
Thanks
Hello,
The fatal error exits the program with a code -1 while referencing the
memory address involved and nothing else.
How to catch it in Python 2.7?
PS: please not I am not talking about exceptions but an error resulting
from the disconnection of my bluetooth microphone abruptly and leading to
I am using the below class1 code to detect some event through the method
check_for_the_event()
# Some class1def check_for_the_event(self):
thread1 = threading.Timer(2, self.check_for_the_event)
thread1.start()# some processingif event is detected:
self.event_ok = Trueelse:
self.event_o
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.
I am using PyAudio to collect the sound through my PC mic as follows:
I am trying to assess whether the lips of a person are moving too much
while the mouth is closed (to conclude they are chewing).
I try to assess the lip movement through landmarks (dlib) :
Inspired by the mouth example (
https://github.com/mauckc/mouth-open/blob/master/detect_open_mouth.py#L17),
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
> On 25Sep2024 22:56, marc nicole wrote:
> >How to create a per-thread event in Python 2.7?
>
> Every time you make a Thread, make an Event. Pass it to the thread
> worker funct
How to create a per-thread event in Python 2.7?
On Wed, 25 Sept 2024, 22:47 Cameron Simpson via Python-list, <
python-list@python.org> wrote:
> On 25Sep2024 19:24, marc nicole wrote:
> >I want to know how to kill a specific running thread (say by its id)
> >
> >for
Hello guys,
I want to know how to kill a specific running thread (say by its id)
for now I run and kill a thread like the following:
# start thread
thread1 = threading.Thread(target= self.some_func(), args=( ...,), )
thread1.start()
# kill the thread
event_thread1 = threading.Event()
event_thread
reading the console DID display the messages correctly!
Thanks.
Le mar. 3 sept. 2024 à 10:48, Alan Gauld via Tutor a
écrit :
> On 02/09/2024 15:00, marc nicole via Python-list wrote:
> > Hello,
> >
> > I am using Python 2.7 on Windows 10
>
> Others have pointed out th
Hello,
I am using Python 2.7 on Windows 10 and I want to launch a process
independently of the rest of the code so that the execution continues while
the started process proceeds. I am using Process().start() from Python 2.7
as follows:
from multiprocessing import Process
def do_something(text):
You invitation to read on machine is not helping, if you wanna enlighten us
on this specific case otherwise pls spare me such comments which i know
On Wed, 31 Jul 2024, 16:00 Grant Edwards via Python-list, <
python-list@python.org> wrote:
> On 2024-07-31, marc nicole via Python-li
and a sheep wont have any target position or any probability
whatsoever in the image weirdobject.jpg
On Wed, 31 Jul 2024, 00:19 dn via Python-list,
wrote:
> On 31/07/24 06:18, marc nicole via Python-list wrote:
> > Hello all,
> >
> > I want to predict an object by given as in
OK, but how's the probability of small_ball greater than others? I can't
find it anyway, what's its value?
Le mar. 30 juil. 2024 à 21:37, Thomas Passin via Python-list <
python-list@python.org> a écrit :
> On 7/30/2024 2:18 PM, marc nicole via Python-list wrote:
> >
Hello all,
I want to predict an object by given as input an image and want to have my
model be able to predict the label. I have trained a model using tensorflow
based on annotated database where the target object to predict was added to
the pretrained model. the code I am using is the following w
Browsing the available version of tensorflow for the dates before January
2021 (date when Python 2.7 stopped being supported) I can't find a
tensorflow version for Python 2.7 that works under Windows.
The reference site I use is https://pypi.org/project/tensorflow/
Anybody can point out a compati
Tutor a
écrit :
> On 22/06/2024 13:41, marc nicole wrote:
>
> > So, given the x,y,z coordinates of a target object and the offset x,y,z
> of
> > arms of a robot, what is a good algorithm to perform to grab the object
> > between the hands (either from both sides o
Hello to all of this magnificent community!
I have this problem I had already spent a few days on and still can't
figure out a proper solution.
So, given the x,y,z coordinates of a target object and the offset x,y,z of
arms of a robot, what is a good algorithm to perform to grab the object
betwee
too detailed to focus on as I struggle to figure out how
> to move my hands to different parts of my keyboard while looking ...
>
> And that may be one variant of an algorithm where instead of trying to
> move all the way, you move art-way and LOOK where you are, then repeat.
I am trying to install numpy library on Python 2.7.15 in PyCharm but the
error message I get is:
ERROR: Could not find a version that satisfies the requirement numpy (from
> versions: none)
> ERROR: No matching distribution found for numpy
> c:\python27\lib\site-packages\pip\_vendor\urllib3\util\s
?
Which tuple I should use to refer to the underlying list value as you
suggest?
Anything else is good in my code ?
Thanks
Le dim. 31 mars 2024 à 01:44, MRAB via Python-list
a écrit :
> On 2024-03-31 00:09, marc nicole via Python-list wrote:
> > I am creating a memoization example with
I am creating a memoization example with a function that adds up / averages
the elements of an array and compares it with the cached ones to retrieve
them in case they are already stored.
In addition, I want to store only if the result of the function differs
considerably (passes a threshold e.g.
So I am trying to build a binary tree hierarchy given numerical elements
serving for its leaves (last level of the tree to build). From the leaves I
want to randomly create a name for the higher level of the hierarchy and
assign it to the children elements. For example: if the elements inputted
are
AM, marc nicole wrote:
> > Thanks for the reply,
> >
> > I think using a Pandas (or a Numpy) approach would optimize the
> > execution of the program.
> >
> > Target cells could be up to 10% the size of the dataset, a good example
> > to start with w
1/2024 7:37 AM, marc nicole via Python-list wrote:
> > Hello,
> >
> > I have an initial dataframe with a random list of target cells (each cell
> > being identified with a couple (x,y)).
> > I want to yield four different dataframes each containing the value of
> one
Hello,
I have an initial dataframe with a random list of target cells (each cell
being identified with a couple (x,y)).
I want to yield four different dataframes each containing the value of one
of the contour (surrounding) cells of each specified target cell.
the surrounding cells to consider fo
Hi all,
I have a csv OLAP dataset that I want to extract the domain hierarchies
from each of its dimensions.
Anybody could recommend a Python tool that could manage this properly?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Hello to All,
I want to create a cube from csv data file and to perform and aggregation
on it, the code is below:
from sqlalchemy import create_enginefrom cubes.tutorial.sql import
create_table_from_csvfrom cubes import Workspace, Cell, browser
import dataif __name__ == '__main__':
engine = c
Hello everyone,
Given a dataframe like this:
2 6
8 5
I want to yield the following list of lists:
[ [[2],[6,5]],
[[2],[6]],
[[2],[5]],
[[8],[6,5]],
[[8],[6]],
[[8],[5]],
[[6],[2,8]],
[[6],[8]],
[[6],[2]],
[[5],[2,8]],
[[5],[2]],
[[5],[8]],
[[6,5],[2,8]] ]
I have written the following (which d
I have used 0 to 10 sec time sleep but it is not working.. please help me
otherwise my assignment would get mark 0
--
https://mail.python.org/mailman/listinfo/python-list
browser.get('https://www.google.co.uk/search?q=Rashmi&oq=Rashmi&aqs=chrome..69i57j69i60l3.6857j0j1&sourceid=chrome&ie=UTF-8#q=Rashmi+Custom+Tailors')
time.sleep(5)
try:
p_links = browser.find_elements_by_css_selector(' div > h3 > a')
url_lis
Not actually that's not.. You said there could be a Problem in HTML that's why
I tested it on a new URL but it just viting the first URL not all.. Please
help..
--
https://mail.python.org/mailman/listinfo/python-list
Here you can see now
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
import random
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
browser.get('https://www.google.co.uk/search?q=Rashmi&oq=Rashmi&aqs=chrome..69i57j69i60l3.6857j0j1&sourceid=c
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
import random
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
--
https://mail.python.org/mailman/listinfo/python-list
Hi Deborah,
I checked again selecting css there found 11 URLS and I printed it is
printing all urls but it visits the first url not all..
--
https://mail.python.org/mailman/listinfo/python-list
browser.get('https://www.google.co.uk/search?q=Rashmi&oq=Rashmi&aqs=chrome..69i57j69i60l3.6857j0j1&sourceid=chrome&ie=UTF-8#q=Rashmi+Custom+Tailors')
time.sleep(5)
try:
p_links = browser.find_elements_by_css_selector('div > h3 > a')
url_list
42 matches
Mail list logo