treetools | Tools for processing treebank trees | Natural Language Processing library

 by   wmaier Python Version: 0.4.0 License: GPL-3.0

kandi X-RAY | treetools Summary

treetools is a Python library typically used in Artificial Intelligence, Natural Language Processing applications. treetools has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can install using 'pip install treetools' or download it from GitHub, PyPI.
treetools is a collection of tools for processing treebank trees. It contains algorithms for tree manipulation (such as removal of crossing branches), tree analysis, and grammar extraction. treetools has been developed at the Department for Computational Linguistics at the Institute for Language and Information at the University of Düsseldorf, Germany (see The project is sponsored by Deutsche Forschungsgemeinschaft (DFG). It is maintained by Wolfgang Maier. Author: Wolfgang Maier mailto:maierw@hhu.de. Contributions: Kilian Gebhardt.
    Support
      Quality
        Security
          License
            Reuse
            Support
              Quality
                Security
                  License
                    Reuse

                      kandi-support Support

                        summary
                        treetools has a low active ecosystem.
                        summary
                        It has 16 star(s) with 2 fork(s). There are 4 watchers for this library.
                        summary
                        It had no major release in the last 12 months.
                        summary
                        There are 1 open issues and 2 have been closed. On average issues are closed in 6 days. There are no pull requests.
                        summary
                        It has a neutral sentiment in the developer community.
                        summary
                        The latest version of treetools is 0.4.0
                        treetools Support
                          Best in #Natural Language Processing
                            Average in #Natural Language Processing
                            treetools Support
                              Best in #Natural Language Processing
                                Average in #Natural Language Processing

                                  kandi-Quality Quality

                                    summary
                                    treetools has 0 bugs and 0 code smells.
                                    treetools Quality
                                      Best in #Natural Language Processing
                                        Average in #Natural Language Processing
                                        treetools Quality
                                          Best in #Natural Language Processing
                                            Average in #Natural Language Processing

                                              kandi-Security Security

                                                summary
                                                treetools has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
                                                summary
                                                treetools code analysis shows 0 unresolved vulnerabilities.
                                                summary
                                                There are 0 security hotspots that need review.
                                                treetools Security
                                                  Best in #Natural Language Processing
                                                    Average in #Natural Language Processing
                                                    treetools Security
                                                      Best in #Natural Language Processing
                                                        Average in #Natural Language Processing

                                                          kandi-License License

                                                            summary
                                                            treetools is licensed under the GPL-3.0 License. This license is Strong Copyleft.
                                                            summary
                                                            Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
                                                            treetools License
                                                              Best in #Natural Language Processing
                                                                Average in #Natural Language Processing
                                                                treetools License
                                                                  Best in #Natural Language Processing
                                                                    Average in #Natural Language Processing

                                                                      kandi-Reuse Reuse

                                                                        summary
                                                                        treetools releases are available to install and integrate.
                                                                        summary
                                                                        Deployable package is available in PyPI.
                                                                        summary
                                                                        Build file is available. You can build the component from source.
                                                                        summary
                                                                        Installation instructions, examples and code snippets are available.
                                                                        summary
                                                                        It has 3877 lines of code, 185 functions and 25 files.
                                                                        summary
                                                                        It has high code complexity. Code complexity directly impacts maintainability of the code.
                                                                        treetools Reuse
                                                                          Best in #Natural Language Processing
                                                                            Average in #Natural Language Processing
                                                                            treetools Reuse
                                                                              Best in #Natural Language Processing
                                                                                Average in #Natural Language Processing
                                                                                  Top functions reviewed by kandi - BETA
                                                                                  kandi has reviewed treetools and discovered the below as its top functions. This is intended to give you an instant insight into treetools implemented functionality, and help decide if they suit your requirements.
                                                                                  • Delete traces in tree
                                                                                    • Print a terminal tree
                                                                                    • Remove a terminal from the tree
                                                                                    • Return all children of a tree
                                                                                  • Read files
                                                                                    • R Linsub
                                                                                    • Binarize a rule
                                                                                    • Binarize a grammar
                                                                                  • Write a grammar to a LOPAR format
                                                                                  • Generate a gap
                                                                                  • Returns the best order of a function
                                                                                  • Mark all head heads
                                                                                  • Remove all branches from the tree
                                                                                  • Render a Tiger XML tree
                                                                                  • Mark the head as head
                                                                                  • Delete punctuation
                                                                                  • Remove punctuation with punctuation
                                                                                  • Generate a topdown tree
                                                                                  • Filter tree by length
                                                                                  • Insert new terminals into tree
                                                                                  • Substitute POSIX variables
                                                                                  • Split the tree into a single tree
                                                                                  • Convert lexicon to file
                                                                                  • Attach VROOT to the tree
                                                                                  • Symetrify punctuation
                                                                                  • Export a text file
                                                                                  Get all kandi verified functions for this library.
                                                                                  Get all kandi verified functions for this library.

                                                                                  treetools Key Features

                                                                                  Tools for processing treebank trees

                                                                                  treetools Examples and Code Snippets

                                                                                  No Code Snippets are available at this moment for treetools.
                                                                                  Community Discussions

                                                                                  Trending Discussions on treetools

                                                                                  Custom XHTML plugin creation index.html not effecting
                                                                                  chevron right

                                                                                  QUESTION

                                                                                  Custom XHTML plugin creation index.html not effecting
                                                                                  Asked 2017-Feb-22 at 12:03

                                                                                  I have created the custom xhtml plugin like this

                                                                                  my plugin.xml code is

                                                                                  
                                                                                  
                                                                                  
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                    
                                                                                  
                                                                                  

                                                                                  build.xml code is

                                                                                  
                                                                                  
                                                                                    
                                                                                  
                                                                                  

                                                                                  the build_transtype-custom.xml is

                                                                                  
                                                                                  
                                                                                  
                                                                                  custom HTML transform
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  

                                                                                  then I have pasted the base plugin xsl folder to customized plugin the I have changed the xsl named dita2xhtml.xsl

                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  Chapter .  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  

                                                                                • then changed the xsl named map2htmtocImpl.xsl template named as generate-toc in xslhtml\map2htmtoc folder as like this

                                                                                  template changes only done

                                                                                  
                                                                                  
                                                                                  Configuring Workflow
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                   
                                                                                           
                                                                                    
                                                                                   
                                                                                      
                                                                                   
                                                                                    
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  Expand all
                                                                                  Collapse all
                                                                                  
                                                                                   
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                   
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  

                                                                                  then I have run integrator.xml command ant -f integrator.xml in command prompt after that i have run the transformation named xhtml-custom in oxygen then I am getting the transformation successful but oxygen showing some error as shown below

                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[3]/cmd[1]/image[1]
                                                                                  
                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[6]/info[1]/image[1]
                                                                                  
                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[7]/stepresult[1]/image[1]
                                                                                  
                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[9]/info[1]/image[1]
                                                                                  
                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[8]/info[1]/image[1]
                                                                                  
                                                                                  System ID: E:\task\Test.ditamap
                                                                                  Scenario: Test (xhtml-common)
                                                                                  Input file: E:\task\Test.ditamap
                                                                                  Engine name: DITA-OT
                                                                                  Severity: error
                                                                                  Description: Ambiguous rule match for /task/taskbody[1]/steps[1]/step[12]/cmd[1]/image[1]
                                                                                  

                                                                                  and the index.html which is created by the transform template changes not applying

                                                                                  Please assist me on this issue

                                                                                  ANSWER

                                                                                  Answered 2017-Feb-22 at 12:03

                                                                                  You seem to have two use cases: 1) Customize the HTML output produced for each topic. 2) Customize the HTML output produced for the index.html table of contents.

                                                                                  By answer will be mostly about (1). Once in your plugin.xml you add this extension:

                                                                                  
                                                                                  

                                                                                  your custom "dita2xhtml.xsl" will be contributed as an XSLT customization stylesheet to all the XHTML-based outputs. So the extension will not be limited to your custom transtype, even the base XHTML output will use your XSLT changes. Your custom "dita2xhtml.xsl" will not be the main XSLT stylesheet in the transformation, but the xsl:templates you write in it will take precedence over the ones in the base XSLT stylesheets. So your custom "dita2xhtml.xsl" should not contain imports to other XSLT stylesheets like "dita2html-base.xsl" which you probably copied from the base XHTML plugin, it should just contain the xsl:templates which override the base processing. Your custom XSLT processing will be applied when DITA topics are converted to equivalent HTML files.

                                                                                  If you also want to influence how the index.html (table of contents) is generated there is another plugin extension called "dita.xsl.htmltoc" which you can declare in the plugin.xml and have it point to another custom XSLT stylesheet which will override templates specified in the base XHTML plugin for the TOC processing.

                                                                                  But as I mentioned both the "dita.xsl.xhtml" and "dita.xsl.htmltoc" extensions will be applied to all XHTML-based outputs, including to the default XHTML output.

                                                                                  If you want your XSLT customizations to apply only for you custom transformation type things get harder, you no longer declare the extensions in the plugin.xml but in your "build_transtype-custom.xml" instead of adding a simple antcall to the main xhtml target:

                                                                                    
                                                                                  

                                                                                  you would do something like:

                                                                                  
                                                                                      custom HTML transform
                                                                                      
                                                                                      
                                                                                  
                                                                                  

                                                                                  After you do that, your custom "dita2xhtml.xsl" will become the main XSLT stylesheet applied when producing the HTML file for each DITA topic. So your custom "dita2xhtml.xsl" will need to have an import to the base XHTML XSLT processing:

                                                                                   
                                                                                  

                                                                                  Source https://stackoverflow.com/questions/42360542

                                                                                  Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                                                                                  Vulnerabilities

                                                                                  No vulnerabilities reported

                                                                                  Install treetools

                                                                                  To install the latest release from the Python package index, type::.
                                                                                  Python 3.7+

                                                                                  Support

                                                                                  For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
                                                                                  Find more information at:
                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit
                                                                                  Install
                                                                                • PyPI

                                                                                  pip install treetools

                                                                                • CLONE
                                                                                • HTTPS

                                                                                  https://github.com/wmaier/treetools.git

                                                                                • CLI

                                                                                  gh repo clone wmaier/treetools

                                                                                • sshUrl

                                                                                  git@github.com:wmaier/treetools.git

                                                                                • Share this Page

                                                                                  share link

                                                                                  Consider Popular Natural Language Processing Libraries

                                                                                  transformers

                                                                                  by huggingface

                                                                                  funNLP

                                                                                  by fighting41love

                                                                                  bert

                                                                                  by google-research

                                                                                  jieba

                                                                                  by fxsjy

                                                                                  Python

                                                                                  by geekcomputers

                                                                                  Try Top Libraries by wmaier

                                                                                  rparse

                                                                                  by wmaierJava

                                                                                  uparse

                                                                                  by wmaierJava

                                                                                  evalb-lcfrs

                                                                                  by wmaierPython

                                                                                  Compare Natural Language Processing Libraries with Highest Support

                                                                                  transformers

                                                                                  by huggingface

                                                                                  bert

                                                                                  by google-research

                                                                                  allennlp

                                                                                  by allenai

                                                                                  flair

                                                                                  by flairNLP

                                                                                  spaCy

                                                                                  by explosion

                                                                                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
                                                                                  Find more libraries
                                                                                  Explore Kits - Develop, implement, customize Projects, Custom Functions and Applications with kandi kits​
                                                                                  Save this library and start creating your kit