This file contains 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
****** Number of unique edge labels per formalism ****** | |
% for f in dm pas pcedt; { echo === $f; cat $f.sdp | grep -v '^#'|cut --complement -f1-6|tr '\t' '\n'|grep -Pv "^(_|)$" | dedup|wc -l } | |
=== dm | |
51 | |
=== pas | |
42 | |
=== pcedt | |
68 |
This file contains 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
package edu.cmu.cs.ark.semeval2014.lr; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.lang.management.ManagementFactory; |
This file contains 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
package d; | |
import java.util.*; | |
import java.util.Map.Entry; | |
public class TermVector { | |
public Map<String,Double> map; | |
double totalCount = 0; | |
TermVector() { | |
map = new HashMap<>(); |
This file contains 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
# https://github.com/nlplab/brat/blob/master/annotation.conf | |
[entities] | |
Actor | |
GPE | |
Timex | |
Pred | |
Historical | |
Hypothetical |
This file contains 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
Finding pension funds and other sources willing to invest is a high priority . | |
Does this corporation have a high-quality management team with a good track record ? | |
Rising inflation in Poland and Hungary makes Czechoslovak food , clothing and shoes relatively cheap for visitors from these countries . | |
EXAMINE WHAT HAS CHANGED . | |
Following is a weekly listing of unadited net asset values of publicly traded investment fund shares , reported by the companies as of Friday 's close . | |
According to veteran watchers of Unificationist affairs , such as Dr. J. Gordon Melton , director of the Institute for the Study of American Religion , almost all operations are being drastically reduced as Mr. Moon now concentrates more on developing his empire in the Far East . | |
Said Earl Ellis , a Jacobson partner who got involved in the UAL action , `` It all starts all over again '' today . | |
Noting the recent Food and Drug Administration approval of Interferon 's genital warts treatment , National Patent said it believes Interferon 's |
This file contains 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
Call it disaster marketing . | |
Assume that a TV network is airing a celebrity interview program with a live audience . | |
Go with high-beta stocks to get the biggest payoff from a bet on a bull market . | |
Asked about his greatest achievement in public life , he first speaks about the quality of his staff . | |
Become a Lobbyist | |
HomeFed said most of the troubled assets are apartment complexes , shopping malls and other commercial real estate . | |
Elected to Congress as a `` Watergate baby '' in 1974 , he ran for governor three years later . | |
Did Mr. Freeman have notice of this ? | |
Consider this : | |
Welcome to the 28th Tokyo Motor Show . |
This file contains 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
MD Could he plausibly interpret it as encouragement for the Fed to give primary emphasis to stabilizing the price level ? | |
MD Should they be required to pay claims based on exorbitant costs for labor and materials ? | |
MD Will Ogonyok begin a series of reports analyzing the failures of perestroika ? | |
MD Will he try to gain a seat on or control of the board and force a radical split of USX into separate oil and steel companies ? | |
MD Would n't the Japanese like a piece of it ? | |
VB CALL IT un-advertising . | |
VB Consider the fact that a mere 2 % drop in ozone would increase birth defects and mutations by allowing solar radiation to alter the DNA structure . | |
VB Consider the facts underlying the 1989 conviction of Robert Chestman . | |
VB Consider this : | |
VB Enter Mr. Guzman Cabrera , who has a clear understanding of where union leaders fit in the pro-enterprise regime of President Salinas . |
This file contains 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
% R | |
R version 2.15.3 (2013-03-01) -- "Security Blanket" | |
> library(devtools) | |
> devtools::install_github("hadley/tidyr") | |
Installing github repo(s) hadley/tidyr/master from hadley | |
Installing hadley/tidyr.zip from https://github.com/hadley/hadley/tidyr/archive/master.zip | |
Error: client error: (404) Not Found | |
> library(help=devtools) |
This file contains 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
///////////////////////////////////////// | |
// Sample for Embedding C++ into R // | |
///////////////////////////////////////// | |
// | |
// I keep forgetting how to do this so here's an example. | |
// If you're willing to use R's most primitive FFI interface, | |
// things are incredibly simple and easy to get going. | |
// -Brendan O'Connor (brenocon@gmail.com) | |
// | |
// Compile with, e.g. on mac: |
This file contains 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
~ % cat bla | |
digraph A { | |
0 [label = "hello\\"] | |
} | |
~ % dot -Tpdf bla > out.pdf | |
===> http://brenocon.com/20141005_dot.pdf |
OlderNewer