Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Reported by User:
Javadocs for createView say:
Create a view and its underlying Sofa (subject of analysis). The view provides access to the Sofa data and the index repository that contains metadata (annotations and other feature structures) pertaining to that Sofa.
presumably should say only the view is created ... the Sofa must be added with one of the setSofa... calls.
(Adam: I think the Sofa FS is created, but the data is not set. This could be clearer.)
In section 6.2.7 of the SDK UG there is an example of createView with a 2nd arg of mime-type & an unsupported createDefaultTextView
CAS casView = cas.createView("mySofaName", mime-type);
// (OR)
CAS casView = cas.createDefaultText View();