Code Monkey home page Code Monkey logo

visualnarrator's Introduction

Welkom! ๐Ÿ‡ณ๐Ÿ‡ฑ

๐Ÿป My name is Marcel Robeer, and I am currently pursuing a PhD in Explainable Artificial Intelligence (XAI) at Utrecht University!


๐Ÿค– My thesis projects and scientific research projects have resulted in several open-source Python packages:

  • Explabox: {Explore | Examine | Explain | Expose } your AI model with the explabox!
  • GlobalCausalAnalysis: Explaining Model Behavior with Global Causal Analysis (give a causal overview of how aspects such as task-related features, fairness and robustness relate to black-box model behavior) [xAI 2023 paper].
  • text_explainability: A generic explainability architecture for explaining text machine learning models.
  • text_sensitivity: Extension of text_explainability for sensitivity testing (robustness & fairness).
  • CounterfactualGAN: Generating realistic natural language counterfactuals for classifiers and regressors, without requiring explainee intervention [EMNLP 2021 paper].
  • ContrastiveExplanation: Contrastive and counterfactual explanations for machine learning with Foil Trees [WHI 2018 paper].
  • VisualNarrator: Turns user stories into a conceptual model containing entities and relationships [RE 2016 paper].

๐Ÿ’ป Check out marcelrobeer.github.io for a full overview. See you there!

visualnarrator's People

Contributors

gionimo avatar marcelrobeer avatar mosser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

visualnarrator's Issues

User Story file giving error at getWT function.

Hello, I am trying to use the attached file with user stories to get an output but I am getting the below specified error.

Traceback (most recent call last):
File "run.py", line 6, in
main()
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\cli.py", line 104, in main
stories = Reader.parse(args.filename))
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\vn.py", line 101, in run
self._get_gen(us_instances, m, systemname, print_ont, log_time=self.time)
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\utils\utility.py", line 78, in timed
result = method(*args, **kw)
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\vn.py", line 239, in _get_gen
out = patterns.make(systemname, self.threshold, self.link)
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 26, in make
self.onto = pf.make_patterns(self.user_stories, threshold)
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 229, in make_patterns
pi.identify(story)
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 339, in identify
self.identify_subj_dobj(story, 'ends')
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 421, in identify_subj_dobj
w_do = [self.getwt(x) for x in do]
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 421, in
w_do = [self.getwt(x) for x in do]
File "C:\Code\Machine Learning\IIM\VisualNarrator-master\VisualNarrator-master\vn\pattern.py", line 477, in getwt
if str.lower(token.text) == str.lower(wt.token.text):
AttributeError: 'NoneType' object has no attribute 'text'
g10-scrumalliance.txt

Arguments and Usage method

Please guide me that what is the usage method or command with arguments? Tried many times but showing errors. I've installed libraries according to recommendations. Please help me, im new in python.
1
2
cmd

JSON export does not contain the "end" part of a story

Hi,

I'm using the example set of story given with the tool.

For the following story: "As a Visitor, I want to filter on event type, so that I can only see events of the type I want.", the tool exports the following JSON file using the --json option:

{ 'number': 1, 
  'text': 'As a Visitor, I want to filter on event type, so that I can only see events of the type I want.\n',
 'iloc': [3, 12, 20], 
'role': {'text': 'Visitor', 'indicator': 'As a'}, 
 'means': {'text': 'I can filter on event type', 'indicator': 'I want to'}}

Is it expected that the end ("_so that ...") is not available in the JSON file?

User Story file giving error at getWT function

VN should not have a hard stop when its NOT able to parse a single User story ..
SIAnalytics.txt

attached file is giving an error
Traceback (most recent call last):
File "run.py", line 6, in
main()
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\cli.py", line 104, in main
stories = Reader.parse(args.filename))
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\vn.py", line 101, in run
self._get_gen(us_instances, m, systemname, print_ont, log_time=self.time)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\utils\utility.py", line 78, in timed
result = method(*args, **kw)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\vn.py", line 240, in _get_gen
out = patterns.make(systemname, self.threshold, self.link)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\pattern.py", line 26, in make
self.onto = pf.make_patterns(self.user_stories, threshold)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\pattern.py", line 229, in make_patterns
pi.identify(story)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\pattern.py", line 336, in identify
self.identify_func_role(story)
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\pattern.py", line 377, in identify_func_role
role.append(self.getwt(story.role.functional_role.main))
File "C:\Code\Machine Learning\IIM\VN-2\VisualNarrator-master (1)\VisualNarrator-master\vn\pattern.py", line 477, in getwt
if str.lower(token.text) == str.lower(wt.token.text):
AttributeError: 'NoneType' object has no attribute 'text'

open OMN file

How to open OMN file in protege? is it possible to open OMN file in protege?

Data Indexing problem

I tried to run the software against this sentence :

As a Researcher I want to be able to reference a remote controlled vocabulary for my dataset so that I can be sure that columns of my tabular dataset are valid against a single shared list of terms.

and I get the following error :

Traceback (most recent call last):
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1434, in _has_valid_type
error()
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1429, in error
(key, self.obj._get_axis_name(axis)))
KeyError: 'the label [I] is not in the [index]'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/bikashg/Desktop/remote/userstories/lib/VisualNarrator/run.py", line 323, in
program()
File "/home/bikashg/Desktop/remote/userstories/lib/VisualNarrator/run.py", line 311, in program
return main(args.filename, args.system_name, args.print_us, args.print_ont, args.statistics, args.link, args.prolog, args.json, args.per_role, args.threshold, args.base_weight, weights, spacy_nlp)
File "/home/bikashg/Desktop/remote/userstories/lib/VisualNarrator/run.py", line 84, in main
matrices = matrix.generate(us_instances, ' '.join(success_stories), nlp)
File "/home/bikashg/Desktop/remote/userstories/lib/VisualNarrator/vn/matrix.py", line 41, in generate
w_us = self.remove_indicators(w_us, stories, nlp)
File "/home/bikashg/Desktop/remote/userstories/lib/VisualNarrator/vn/matrix.py", line 241, in remove_indicators
if matrix.loc[indicator, 'sum'] > 0:
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1325, in getitem
return self._getitem_tuple(key)
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 836, in _getitem_tuple
return self._getitem_lowerdim(tup)
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 967, in _getitem_lowerdim
section = self._getitem_axis(key, axis=i)
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1551, in _getitem_axis
self._has_valid_type(key, axis)
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1442, in _has_valid_type
error()
File "/home/bikashg/anaconda3/lib/python3.6/site-packages/pandas/core/indexing.py", line 1429, in error
(key, self.obj._get_axis_name(axis)))
KeyError: 'the label [I] is not in the [index]'

Unable to use the -l option

Hi,

I tried to use VisualNarrator while keeping a link between concepts and stories. However, when running the tool using the -l option, it generates an error at runtime:

azrael:tmp mosser$ python run.py output/example_stories.txt -p -l 
Initializing Natural Language Processor. . .
Traceback (most recent call last):
  File "run.py", line 314, in <module>
    program()
  File "run.py", line 302, in program
    return main(args.filename, args.system_name, args.print_us, args.print_ont, args.statistics, args.link, args.prolog, args.json, args.per_role, args.threshold, args.base_weight, weights, spacy_nlp)
  File "run.py", line 97, in main
    out = patterns.make(systemname, threshold, link)
  File "/usr/src/app/vn/pattern.py", line 26, in make
    self.link_to_story(self.onto.classes, self.user_stories)
  File "/usr/src/app/vn/pattern.py", line 46, in link_to_story
    parts = self.get_parts(cl.name, s)
  File "/usr/src/app/vn/pattern.py", line 143, in get_parts
    ends_compounds = flatten(story.ends.compounds)
NameError: name 'flatten' is not defined

Any ideas?

Ps. In the meanwhile, I can rely on the generated prolog file to recreate this information.

JSON export does not export regular JSON

The --json option does not export regular JSON contents:

For example, the story "As a Visitor, I want to filter on event type, so that I can only see events of the type I want." is exported as the following:

{'number': 1, 'text': 'As a Visitor, I want to filter on event type, so that I can only see events of the type I want.\n', 'iloc': [3, 12, 20], 'role': {'text': 'Visitor', 'indicator': 'As a'}, 'means': {'text': 'I can filter on event type', 'indicator': 'I want to'}}

The JSON standard expects double quotes instead of single quotes.

{
   "number":1,
   "text":"As a Visitor, I want to filter on event type, so that I can only see events of the type I want.\n",
   "iloc":[
      3,
      12,
      20
   ],
   "role":{
      "text":"Visitor",
      "indicator":"As a"
   },
   "means":{
      "text":"I can filter on event type",
      "indicator":"I want to"
   }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.