Skip to content

Instantly share code, notes, and snippets.

@afader
afader / gist:ed0278f759064bd3ed74
Created March 14, 2015 01:48
evolvesInto.dict.csv
unevolved,evolved,label
yanma,yanmaga,positive
shelgon,salamence,positive
ponyta,rapidash,positive
meowth,persian,positive
magnetone,magnezone,positive
magneton,magnetzone,positive
evee,leafeon,positive
cobalion,terrakion,positive
charmeleon,charzard,positive
abductive reasoning task
abstractive meeting summarization task
acoustic cues technique
active learning task
active learning technique
adaboost technique
adaboost classifiers technique
adaptive chinese word segmentation task
adaptive models technique
adaptive topic model technique
implicit val runner = PipelineRunner.writeToDirectory(outputDir)
// some stuff
val brat = runner.persist(BratView(mainConcepts), BratCollectionIo, "brat")
@afader
afader / gist:10504134
Created April 11, 2014 21:45
keybase.md
### Keybase proof
I hereby claim:
* I am afader on github.
* I am afader (https://keybase.io/afader) on keybase.
* I have a public key whose fingerprint is 10C7 3CD6 F101 5D7F 5481 9AD9 3036 9FE0 1147 F763
To claim this, I am signing this object:
(example (utterance "after how many years are the olympic games held?") (targetValues (description "")))
(example (utterance "how large is kony army?") (targetValues (description "")))
(example (utterance "how many kids were there in the kennedy family?") (targetValues (description "")))
(example (utterance "how many languages do they speak in spain?") (targetValues (description "")))
(example (utterance "how many languages do they speak in switzerland?") (targetValues (description "")))
(example (utterance "how many mary mary sisters?") (targetValues (description "")))
(example (utterance "under what political system does the united states government operate?") (targetValues (description "")))
(example (utterance "what 5 countries border switzerland?") (targetValues (description "")))
(example (utterance "what activities are there to do in greece?") (targetValues (description "")))
(example (utterance "what age did william penn get married?") (targetValues (description "")))
import scala.collection.JavaConversions._
import edu.knowitall.tool.tokenize.ClearTokenizer
import edu.knowitall.tool.tokenize.Tokenizer
val tokenizer = new ClearTokenizer
val bytes = Array(112, 117, 114, 112, 111, 115, 101, 32, -62, -105).map(_.asInstanceOf[Byte])
val string = new String(bytes)
val strings = tokenizer.tokenizer.getTokens(string)
Tokenizer.computeOffsets(strings, string)
def getChunker: Chunker = {
new OpenNlpChunker
}
// type mismatch; found : edu.knowitall.tool.chunk.OpenNlpChunker
// required: edu.knowitall.repr.sentence.Chunker
main() {
Grammar.read {
0 rules
}
Loading Freebase schema: lib/fb_data/93.exec/schema.ttl {
1163 CVTs, (19335,19280) property types, 858 property units
}
BeamParser: 0 catUnaryRules (sorted), 0 nonCatUnaryRules (in trie)
Reading parameters from lib/models/2174.exec/params {
Read 126059 weights
lib
|-- fb_data
| `-- 93.exec
| |-- schema.ttl
| |-- virtuoso-temp.db
| |-- virtuoso.db
| |-- virtuoso.ini
| |-- virtuoso.log
| |-- virtuoso.pxa
| `-- virtuoso.trx
$ ./sempre @mode=train @sparqlserver=localhost:3001 @domain=webquestions @cacheserver=local
/home/afader/local/bin/rlwrap
./fig/lib/myutils.rb:389:in `exec': No such file or directory - fig/bin/qcreate (Errno::ENOENT)
from ./fig/lib/myutils.rb:389:in `system'
from ./fig/lib/myutils.rb:389:in `fork'
from ./fig/lib/myutils.rb:389:in `system'
from ./fig/lib/execrunner.rb:197:in `runArgs'
from ./fig/lib/execrunner.rb:89:in `getRuns'
from ./fig/lib/execrunner.rb:132:in `getRuns'
from ./fig/lib/execrunner.rb:96:in `getRuns'