Skip to content

Commit

Permalink
Add api (#68)
Browse files Browse the repository at this point in the history
* Extraction

* Pre-arranged responses TXT

* Huge refactor

* Refactor grammar rules

* Fix Question

* Fix parseTable wrongly traverse the matrix generating wrong intervals

* Fix possible null pointer exception

* Fix rule tests

* Fix sentence tests

* Fix arrayIndexOutOfBound exception when no sentence can be extracted

* Fix What detection

* Improve Affirmation

* Fix import

* Remove response file

* Fix rule test

* Add smartness

* Update gradle

* Fix trailing spaces

* Clean

* Fix code style

* Update build process

* Add API

* Fix codestyle
  • Loading branch information
Simone Primarosa authored Sep 25, 2017
1 parent 1ebe1b2 commit 98faa10
Show file tree
Hide file tree
Showing 176 changed files with 1,109 additions and 749,635 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
*.gif binary
*.svg binary
*.ico binary
src/main/res/* text eol=lf
src/main/resources/* text eol=lf
39 changes: 8 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ plugins {
}

apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
apply plugin: 'application'
Expand All @@ -38,37 +37,14 @@ dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'

compile 'org.apache.commons:commons-lang3:3.5'
compile name: 'edu.mit.jwi_2.4.0'
compile name: 'babelnet-api-3.7'
compile name: 'commons-beanutils-1.7.0'
compile name: 'commons-beanutils-core-1.7.0'
compile name: 'commons-codec-1.8'
compile name: 'commons-collections-3.2'
compile name: 'commons-configuration-1.5'
compile name: 'commons-digester-1.8'
compile name: 'commons-lang-2.3'
compile name: 'commons-logging-1.2'
compile name: 'gson-2.2.4'
compile name: 'guava-18.0'
compile name: 'httpclient-4.3.6'
compile name: 'httpcore-4.3.3'
compile name: 'icu4j-56.1'
compile name: 'jltutils-2.2'
compile name: 'log4j-api-2.1'
compile name: 'log4j-core-2.1'
compile name: 'lucene-core-4.9.0'
compile name: 'lucene-queryparser-4.9.0'
}
compile 'com.sparkjava:spark-core:2.3'
compile 'com.google.code.gson:gson:2.7'
compile 'org.slf4j:slf4j-simple:1.7.21'

jar {
manifest {
attributes ('Main-Class': 'com.github.bot.curiosone.core.Main')
}
compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.apache.commons:commons-io:1.3.2'

from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
compile name: 'edu.mit.jwi_2.4.0'
}

jacocoTestReport {
Expand All @@ -91,9 +67,10 @@ test {

task stage(dependsOn: ['build'])

jar.enabled = false
check.dependsOn -= tasks['verifyGoogleJavaFormat']
check.dependsOn jacocoTestReport

task fixcs(dependsOn: [verifyGoogleJavaFormat])

mainClassName = "com.github.bot.curiosone.core.Main"
mainClassName = "com.github.bot.curiosone.api.Main"
Binary file removed libs/babelnet-api-3.7.jar
Binary file not shown.
Binary file removed libs/commons-beanutils-1.7.0.jar
Binary file not shown.
Binary file removed libs/commons-beanutils-core-1.7.0.jar
Binary file not shown.
Binary file removed libs/commons-codec-1.8.jar
Binary file not shown.
Binary file removed libs/commons-collections-3.2.jar
Binary file not shown.
Binary file removed libs/commons-configuration-1.5.jar
Binary file not shown.
Binary file removed libs/commons-digester-1.8.jar
Binary file not shown.
Binary file removed libs/commons-lang-2.3.jar
Binary file not shown.
Binary file removed libs/commons-logging-1.2.jar
Binary file not shown.
Binary file removed libs/gson-2.2.4.jar
Binary file not shown.
Binary file removed libs/guava-18.0.jar
Binary file not shown.
Binary file removed libs/httpclient-4.3.6.jar
Binary file not shown.
Binary file removed libs/httpcore-4.3.3.jar
Binary file not shown.
Binary file removed libs/icu4j-56.1.jar
Binary file not shown.
Binary file removed libs/jltutils-2.2.jar
Binary file not shown.
Binary file removed libs/log4j-api-2.1.jar
Binary file not shown.
Binary file removed libs/log4j-core-2.1.jar
Binary file not shown.
Binary file removed libs/lucene-core-4.9.0.jar
Binary file not shown.
Binary file removed libs/lucene-queryparser-4.9.0.jar
Binary file not shown.
Loading

0 comments on commit 98faa10

Please sign in to comment.