forked from kristjan/cjvt-valency
fixed a few bugs; todo: senses
This commit is contained in:
2
src/frontend_vue/package-lock.json
generated
2
src/frontend_vue/package-lock.json
generated
@@ -116,7 +116,7 @@
|
||||
"argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
"integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
|
||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"sprintf-js": "~1.0.2"
|
||||
|
||||
@@ -121,7 +121,8 @@ export default {
|
||||
this.$http.get(
|
||||
this.$root.store.api_addr +
|
||||
"/api/functor-frames" +
|
||||
"?functor=" + functor + "&rf=" + reduce_fun
|
||||
"?functor=" + functor + "&rf=" + reduce_fun +
|
||||
"&cor=" + component.$root.store.selCorpus
|
||||
)
|
||||
.then(function (response) {
|
||||
component.$root.store.api_error = null
|
||||
@@ -150,7 +151,8 @@ export default {
|
||||
var component = this
|
||||
this.$http.get(
|
||||
this.$root.store.api_addr + "/api/frames" +
|
||||
"?hw=" + hw + "&rf=" + reduce_fun
|
||||
"?hw=" + hw + "&rf=" + reduce_fun +
|
||||
"&cor=" + component.$root.store.selCorpus
|
||||
)
|
||||
.then(function (response) {
|
||||
component.$root.store.api_error = null
|
||||
@@ -176,9 +178,11 @@ export default {
|
||||
var words = []
|
||||
var hw_idx = -1
|
||||
var tmp_hw = this.hw
|
||||
/* Removes underscore for adjectives
|
||||
if (tmp_hw[tmp_hw.length - 1] === "_") {
|
||||
tmp_hw = tmp_hw.substr(0, tmp_hw.length - 1)
|
||||
}
|
||||
*/
|
||||
for (var i in sentence) {
|
||||
words.push(sentence[i][1].word)
|
||||
if (sentence[i][1].lemma === tmp_hw && hw_idx == -1) {
|
||||
|
||||
Reference in New Issue
Block a user