[Solved] What representation of chat text data should I use for user classification? [closed]

You’re asking what ML representation you should use for user-classification of chat text. bag-of-words and word-vector are the main representations generally used in text-processing. However user-classification of chat is not the usual text-processing task, we look for telltale features indicative of a specific user. Here are some: character length, word length, sentence length of each … Read more

[Solved] Why is it i can’t display image? i been trying so many different codes but the image still doesn’t display [closed]

IMG tag should use this format : <img src=”https://stackoverflow.com/questions/40218136/<?php echo $st_row[“picture’] ?>” alt=”” /> But $st_row[‘picture’] should represent a path to the picture after you handled the upload (which means using the PHP code to save the uploaded file on your server). If this answer is insufficient, please provide more details (like the PHP code..). … Read more

[Solved] Python: Unhashable error, lists

Two major issues: 1) You are storing the results in chos_items, then not doing anything with them. full_items, when you exit the while loop, contains “end” or “” print(“That would be, {}”.format(‘ ‘.join([items[int(item)] for item in chos_items]))) Will give you a list of all the items chosen, but it won’t give how many, as you … Read more

[Solved] I need to create an array list in java i think?

public class Persons { int id;//persons id String name;//persons name String email;//persons email public Persons(int idNum, String student, String eAddress){ this.id = idNum; this.name = student; this.email = eAddress; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** * Id number * @return integer of the id */ public int getId(){ return id; } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** * name of person * … Read more

[Solved] Find rows with the same value in a column in two files

Let’s say your dataset is big in both dimensions – rows and columns. Then you want to use join. To use join, you have to sort your data first. Something along those lines: <File1.txt sort -k2,2 > File1-sorted.txt <File2.txt sort -k3,3 -S1G > File2-sorted.txt join -1 2 -2 3 File1-sorted.txt File2-sorted.txt > matches.txt The sort … Read more

[Solved] expected ‘void (**)(void *, const char *)’ but argument is of type ‘void (*)(void *, const char *)

It is pretty wonky, it wants to return the default error handler. So you have to pass a pointer to a variable. Like this (untested): xmlGenericErrorFunc handler; initGenericErrorDefaultFunc(&handler); If I understand your intentions properly, this is not the function you actually want to use to suppress errors. Use xmlSetGenericErrorFunc() instead. You can use initGenericErrorDefaultFunc() to … Read more

[Solved] Server error 500 [closed]

This is due to the error in the code.Enable error reporting and see what happens. This code will help you- ini_set(‘display_errors’, ‘1’); error_reporting(E_ALL ^ E_NOTICE); Read more- http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htm 4 solved Server error 500 [closed]

[Solved] i need to create an event listener. but i dont want to use any framework

Here’s how to create an EventListener without JQuery… [].forEach.call(document.querySelectorAll(‘.element’), function (el) { el.addEventListener(‘click’, function() { // Your code }, false); }); Documentation: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget.addEventListener This article is also interesting: http://blog.romanliutikov.com/post/63383858003/how-to-forget-about-jquery-and-start-using-native 2 solved i need to create an event listener. but i dont want to use any framework

[Solved] Understanding For-in Loop

This is where good indentation is key. var test = { “key1”: val1, “key2”: [ { “a”:1, “b”:[{},{}] }, { “a”:1, “b”:[{},{}] } ] }; Here you can clearly see that it in fact has 2 items. 0 solved Understanding For-in Loop

[Solved] Dynamic dropdown list

Easiest way of creating dynamic dropdown is by using jquery inside the head tag. Give onchange() event and guide the data to another page using jquery code, and then link 2 dropdowns. The code I did is like this, which I felt is the easiest way for dynamic dropdowns. jquery which I included is <script> … Read more

[Solved] How to set variable to a huge number

All data types are stored as bits, and there is a maximum number that most can hold. Learn about the data types and their limitations from MSDN:https://msdn.microsoft.com/en-us/library/47zceaw7.aspx Also see this answer:Is there any big integer class for Visual Basic .NET (128 or more bits)? 0 solved How to set variable to a huge number