How to connect SentiWordNet to RapidMiner? - rapidminer

SentiWordNet is a text file. In RapidMiner 'OpenWordNet Dictionary' can only be used to access only exe files. How can I extract the sentiment scores from SentiWordNet for further processing?
Thanks in Advance.

of course you can.. with a little bit of code you can take the sentiwordnet score from the text file.
but the problem is each same word might have several different meaning.
in handling this you can simply take the average score or doing wordsense disambiguation

Related

I want to create the simplest HTML code for random text generator

I took like one year or HTML and PHP programming but I don't think its enough for me to make this type of code, what should I look for or start with? I want it to simply print a random text (from a database I suppose) every time you open the page.
Math.random() is built into Javascript.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
document.write(Math.random());
PHP is like this: https://www.php.net/manual/en/function.rand.php
You have many options for generating random numbers.
Combine two word from a MySQL database at random
That's a more complex sample, but you can reduce it to answer your need.
(Change the limit to 1 instead of 10 and instead of combining 2 words, just use one)

Generating truth tables for basic logic circuits

Let's say I have a text file that looks like this:
<number> <name> <type> <inputs...>
1 XOR1 XOR A B
2 SUM XOR 1 C
What would be the best approach to generate the truth table for this circuit?
That depends on what you have available, and how big your file is.
Perl is optimized for reading files and generating simple text output. It doesn't have a library of boolean operators, but they're easy enough to write. I'd use that if I just wanted text-in, text-out.
If I wanted to display the data online AND generate a results file, I'd use PHP to read the data and write the table to a CSV file that could either be opened in Excel, or posted online in an HTML table.
If your data is in a REALLY BIG data file, I'd use SQL.
If your data is in a really huge file that you want to be accessible to authorized users online, and you want THEM to be able to create truth tables, I'd use Oracle's APEX to create an easy interface for them to build their own truth tables and play around with the data without altering it.
If you're in an electrical engineering environment, use the tools designed for your problem -- Verilog or similar.
Whatcha got? Whatcha wanna do with it?
-- Ada
I prefer using C#. I already have the code to 'parse' the input
text file. I just don't know where to start in terms of
actually 'simulating' it. The output can simply be a text file
with inputs and output values – Don 12 mins ago
How many inputs and how many outputs in the circuit you want to simulate?
The size of the simulation determines how it can most easily be run. If the circuit is small(ish), you can enter the inputs and circuit values into vector arrays, then cross them to get the output matrix.
Matlab is ideal for this, as it was written for processing arrays.
Again: Whatcha got, and whatcha wanna do with it?
-- Ada

Saving high score and other things - corona

I want to save a high score in my game. I saw that you need to use json library but I dont know how to use it. i want to save a table and not just a written text. Ther is an easy way of doing that?
adit:
I have found Ego:
http://techority.com/2011/12/28/ego-easy-saving-and-loading-in-your-corona-apps/
it works very good! but I am concern. i am not Savvy at thise things. someone can the me if it is Reliable?
You can solve your problem in a easier way..
Just declare a Variable for the Score like this..
local score=0
Then Increment the score variable by 1 whenever it hits the paddle. So Insert the coding in Collision Function as given below:
local function onCollision(event)
{
score=score+1
}
ball.collision=onCollision
ball:addEventListener("collision",ball)
Finally When you need to save your highscore (after gameover), You can use Preference instead of json which makes the larger coding.
local preference= require "preference"
local highscore=0
preference.save{highscore=score}
If you want to display the Highscore, then use the following:
highscore_value=preference.getValue("highscore")
display.newText(highscore_value,0,0,nil,30)
This might be useful for your problem !!
Refer here :Save highscore on corona sdk?

Where can I find a decent, representative sample dataset in json for test purposes?

I'm looking for a set of data that contains both numbers and strings (name/address, maybe), with a decent variety of data, around 1000 records, to test a JQuery-UI widget I'm developing. Does anyone know of such a dataset? Is there something floating around out there I could use?
Try this ... http://www.generatedata.com/#generator ... amazing tool to create whatever dataset you'd like

OCR recognition - gocr

I have a small problem while trying to do ocr using the tool gocr. It sometimes recognizes an o as zero and vice versa. To solve this, i tried to make it use a user specified database path. But doing that would require me to create a map for all possible characters. Is there any way in which i could tell gocr to just use the manual db for only these 2 characters??
Thanks
I'd suggest you just put those two characters in the db.lst file, and use it along with the ocr-engine...
so long
hank