Marshall Schor (JIRA) wrote:
[ https://issues.apache.org/jira/browse/UIMA-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600163#action_12600163 ]
Marshall Schor commented on UIMA-1043:
--------------------------------------

How does the pretty printer show shared structure?  Do you use something like 
Lisp's pretty printing technique of labeling things like #1= and having refs 
like #1# or something else?

From looking at the code, it will print something like

...
lemma: #42 Lemma
  key ...

And the subsequent references like this:

...
lemma: #42
...


FeatureStructureImpl seems to use the method StringUtils.printSpaces(int n) 
which just sticks in blanks.  I don't see where it's using tabs?

I meant the FeatureStructureImpl.java source file.


Extend CAS Feature Structure pretty print code to support printing the elements 
of an FSArray
---------------------------------------------------------------------------------------------

                Key: UIMA-1043
                URL: https://issues.apache.org/jira/browse/UIMA-1043
            Project: UIMA
         Issue Type: Improvement
         Components: Core Java Framework
           Reporter: Marshall Schor
           Priority: Minor

The "toString()" method on an instance of a FeatureStructure does a nice job of 
printing it out, but doesn't descend into the contents of a feature which is an FSArray.  
Here's a pretty printed example that shows this:
instance RelationInstance
   sofa: _InitialView
   begin: 2328
   end: 2355
   relation: Merger
      company: FSArray
      status: "known"
It would be nice if it did, and if it made use of the circularity detection 
mechanism, as well

Reply via email to