Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Difficulty in adapting duplicates-filter in script
Post: RE: Difficulty in adapting duplicates-filter in sc...

@deanhystad Of course, here you go: <custom:Aspects xmi:id="1384" sofa="1" begin="5" end="47" FeatureCategory="JURY_General"/> <custom:Aspects xmi:id="1379" sofa="1" begin="49" end="8...
ledgreve General Coding Help 5 831 Jul-17-2023, 03:46 PM
    Thread: Difficulty in adapting duplicates-filter in script
Post: RE: Difficulty in adapting duplicates-filter in sc...

@deanhystad I have been trying to adapt the script using ChatGPT based on what you said and there is now an extra condition for the filter. Previously it looked at the aspect and sentence (though i do...
ledgreve General Coding Help 5 831 Jul-15-2023, 06:49 PM
    Thread: Difficulty in adapting duplicates-filter in script
Post: RE: Difficulty in adapting duplicates-filter in sc...

Hello @deanhystad, thank you for replying. The way I identified the duplicates was by manually counting them in this annotation file (53) and then looking how many there were in the csv containing the...
ledgreve General Coding Help 5 831 Jul-15-2023, 02:52 PM
    Thread: Difficulty in adapting duplicates-filter in script
Post: Difficulty in adapting duplicates-filter in script

Hello everyone, I have a script to parse and extract annotated data from xmi-files. I did not write this script myself (person who did is not reachable), have no coding/programming background and rea...
ledgreve General Coding Help 5 831 Jul-14-2023, 03:49 PM
    Thread: script to calculate data in csv-files
Post: script to calculate data in csv-files

Hello everyone, I have a bunch of csv-files (one per corpus) containing annotated data in multiple columns. I annotated aspects and sentiment. The only relevant columns are "Aspect category", "Polari...
ledgreve General Coding Help 0 1,058 May-19-2023, 07:24 AM
    Thread: remove partial duplicates from csv
Post: remove partial duplicates from csv

Hello, Firstly, I wish to mention and stress that I do not have a lot of experience with Python and programming in general. The situation: I have a csv consisting of annotated data to be used for ...
ledgreve General Coding Help 0 746 Dec-12-2022, 04:21 PM
    Thread: Coding problem scraping Goodreads reviews with GoodReadsScraper
Post: RE: Coding problem scraping Goodreads reviews with...

@micseydel @snippsat Thank you both for your advice! I will leave the code for what it is then, since I do not have enough knowledge and experience yet to debug the code. I have found another script...
ledgreve Web Scraping & Web Development 3 2,246 Jan-07-2020, 09:38 AM
    Thread: Coding problem scraping Goodreads reviews with GoodReadsScraper
Post: Coding problem scraping Goodreads reviews with Goo...

Hello, I came across OmarEinea's GoodReadsScraper on Github (https://github.com/OmarEinea/GoodReadsScraper) and would like to use his scripts to scrape the English reviews of some English books on Go...
ledgreve Web Scraping & Web Development 3 2,246 Jan-06-2020, 08:28 AM
    Thread: Please help: problem installing/importing langdetect module in Jupyter Notebook
Post: Please help: problem installing/importing langdete...

Hello, I would like to start by letting you know that I am a layperson. I only started working with Python a few weeks ago, so I am new to this. I would be very grateful for your help! I want to test...
ledgreve General Coding Help 3 7,188 Dec-12-2019, 12:24 PM
    Thread: extract specific data from a group of json-files
Post: RE: extract specific data from a group of json-fil...

Hi @DeaD_EyE! Thank you for helping me! where do I need to put my file to open it? Right now it's situated in my documents, but when I tried to open it, I received following error: Error:------------...
ledgreve General Coding Help 3 3,238 Dec-05-2019, 09:46 AM
    Thread: extract specific data from a group of json-files
Post: extract specific data from a group of json-files

Hello everyone! I have a a large collection of json-files (a few thousand) each containing metadata about a text post, such as the post-ID, the username (and full name, if made public by the user), t...
ledgreve General Coding Help 3 3,238 Dec-05-2019, 09:10 AM
    Thread: instaloaders problem: search certain hashtag - posts without hashtag extracted
Post: instaloaders problem: search certain hashtag - pos...

Hello! I am extracting instagram posts with diverse hashtags (f.e. "bachmannpreis") via the command line of my computer, using Instaloader (https://github.com/instaloader/instaloader). I use followin...
ledgreve General Coding Help 0 2,123 Nov-18-2019, 01:22 PM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

@snippsat Thank you for helping me! I have decided to keep working with the command line tool.
ledgreve General Coding Help 21 19,127 Nov-18-2019, 11:28 AM
    Thread: error merge text files
Post: RE: error merge text files

@Larz60+ Thank you!
ledgreve General Coding Help 3 2,629 Nov-18-2019, 11:23 AM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

@baguerik Thank you for the tip! How can I set up a counter? I just started using python, so I am rather new to programming and using code.
ledgreve General Coding Help 21 19,127 Nov-05-2019, 10:38 AM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

@buran Thank you! Then how do I know what their rate limit is and why don't I ever have this problem when using the command line? And what do they mean with "restarting or reinstantiating Instaloade...
ledgreve General Coding Help 21 19,127 Nov-05-2019, 10:27 AM
    Thread: error merge text files
Post: error merge text files

Hello! I want to merge all of the txt-files I have in a specific folder on my computer. I looked it up and apparently you have to use the following code/command in Powershell: copy *.txt newfile.tx...
ledgreve General Coding Help 3 2,629 Nov-05-2019, 10:07 AM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

@buran Thank you for sending me this, but the problem is that I don't really understand what it means. I am very new to programming and I don't understand most of the terminology yet. I especially don...
ledgreve General Coding Help 21 19,127 Nov-05-2019, 09:47 AM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

@snippsat I used the code you sent me and it worked, but as soon as I changed the hashtag or datetime, it stopped working. Let's say I want all posts between 1 Jan. 2007 and 31. Dec. 2017 with the has...
ledgreve General Coding Help 21 19,127 Nov-05-2019, 09:14 AM
    Thread: Problem installing instaloader
Post: RE: Problem installing instaloader

Thank you @Snippsat! I was able to install the pip instaloader package in my Jupyter Notebook by entering following code: import sys !{sys.executable} -m pip install instaloaderWhen I ran the cell I ...
ledgreve General Coding Help 21 19,127 Nov-04-2019, 08:53 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020