This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
import processing.core.*; | |
import rita.*; | |
import rita.wordnet.*; | |
import com.google.api.translate.Language; | |
import com.google.api.translate.Translate; | |
public class Test extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
import processing.core.*; | |
import rita.*; | |
import rita.wordnet.*; | |
import com.google.api.translate.Language; | |
import com.google.api.translate.Translate; | |
public class Test extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get distance between words that are the same POS | |
private float getWordDistance(IndexWord start, IndexWord end) | |
throws JWNLException, NullPointerException // on jwnl bug | |
{ | |
RelationshipList relList; | |
AsymmetricRelationship rel; | |
int cpIndex, relLength, depth, depthRootCp, depthCpLeaf; | |
float distance, newDistance; | |
PointerTargetNode cpNode; | |
Synset cpSynset; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Sent at 4PM, Sat | |
1. | |
Is using getDistance() the best way to compare the "meanings" of two words and receive back a numerical value? | |
For example, I want to know how semantically different two words are (e.g., blue and cat vs. blue and dog). | |
Right now, my code implements getDistance(lemma1, lemma2, pos); from RitaWN to accomplish this task. It is awesome to receive some sort of distance value in order to see how words are more similar or less similar. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
import processing.core.*; | |
import rita.*; | |
import rita.wordnet.*; | |
import com.google.api.translate.Language; | |
import com.google.api.translate.Translate; | |
public class Test extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
import processing.core.*; | |
import rita.*; | |
import rita.wordnet.*; | |
import com.google.api.translate.Language; | |
import com.google.api.translate.Translate; | |
public class Test extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashSet; | |
import processing.core.*; | |
import rita.*; | |
import rita.wordnet.*; | |
import com.google.api.translate.Language; | |
import com.google.api.translate.Translate; | |
public class Test extends PApplet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello Media</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script type="text/javascript" src="jcollage.js"></script> | |
<script type="text/javascript" src="script.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: | |
// customclick.m | |
// | |
// clickdrag will drag the "mouse" from the current cursor position to | |
// the given coordinates. | |
// | |
// derived from: | |
// http://www.macosxhints.com/article.php?story=2008051406323031 | |
// & | |
// http://davehope.co.uk/Blog/osx-click-the-mouse-via-code/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Firefox" to activate | |
delay 1 | |
set i to 0 | |
repeat while (i < 8000) | |
do shell script "screencapture -xi ~/Desktop/capture/1.png &> /dev/null &" | |
delay 0.01 | |
do shell script "~/Desktop/customclick" |