Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

30
LINES

< > BotCompany Repo | #1011161 // Get correct parses from Auto GAC 2 & upload them [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (15636L/111K).

!759

p {
  autoRestart();
  Map<Pair<S, T3<S>>, Bool> parseOKMap = persistentHashMapFromOtherProgram(#1011156, 'parseOKMap);
  print(l(parseOKMap));
  new TreeMap<S, Web> webs;
  for (Pair<S, T3<S>> p : keysWithValueTrue(parseOKMap)) {
    Float value = gac36k().get(p.a);
    if (value == null) continue with print("huh? " + p.a);
    Web web = webFromTriple(p.b);
    WebRelation rel = web_firstRelation(web);
    S verb = web_text(rel);
    verb = dropSuffix(" (?)", dropSuffix("?", verb));
    bool negate = value < 0.5;
    if (negate) verb = ai_negateVerb(verb);
    web_replaceFirstText(rel, verb);
    int percent = toIntPercent(value);
    if (percent > 0 && percent < 100)
      web_addLabel(rel, "[" + (negate ? "n, " : "") + "p=" + percent + "%]");
    webs.put(verb, web);
  }
  showWebs(mapToParams(webs));
  int posted = postSoftwareMadeWebs(values(webs));
  print("Posted " + n(posted, "new web"));
  if (posted != 0) uploadWebs();
}

// We don't need this
static S conceptLanguageToEnglish(O o) { fail(); }

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011161
Snippet name: Get correct parses from Auto GAC 2 & upload them [OK]
Eternal ID of this version: #1011161/21
Text MD5: 1ff784fdf4184438887757cfa8726977
Transpilation MD5: bbb89ebb19afe6162ea7c6e54aee16eb
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-16 23:58:17
Source code size: 1053 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 356 / 2269
Version history: 20 change(s)
Referenced in: [show references]