Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Semantic Embedding Examples

Semantic Embedding Examples · Changes

Page history
Updated Semantic Embedding Examples (markdown) authored Apr 20, 2015 by Volker Sorge's avatar Volker Sorge
Hide whitespace changes
Inline Side-by-side
Semantic-Embedding-Examples.md
View page @ 196eb5bd
...@@ -291,4 +291,82 @@ Semantically enriched MathML: ...@@ -291,4 +291,82 @@ Semantically enriched MathML:
<mi type="identifier" role="latinletter" id="9" parent="14">f</mi> <mi type="identifier" role="latinletter" id="9" parent="14">f</mi>
</mrow> </mrow>
</mrow> </mrow>
</math> </math>
\ No newline at end of file
## Example with sum operator
Original MathML:
```html
<math>
<msubsup>
<mi>∑</mi>
<mi>b</mi>
<mi>c</mi>
</msubsup>
<mi>b</mi>
<mi>c</mi>
<mo>+</mo>
<mi>a</mi>
</math>
```
Semantic Tree:
```html
<stree>
<infixop role="addition" id="11">
+
<content>
<operator role="addition" id="6">+</operator>
</content>
<children>
<bigop role="sum" id="10">
<children>
<limboth role="sum" id="3">
<children>
<largeop role="sum" id="0">∑</largeop>
<identifier role="latinletter" font="italic" id="1">b</identifier>
<identifier role="latinletter" font="italic" id="2">c</identifier>
</children>
</limboth>
<infixop role="implicit" id="9">
⁢
<content>
<operator role="multiplication" id="8">⁢</operator>
</content>
<children>
<identifier role="latinletter" font="italic" id="4">b</identifier>
<identifier role="latinletter" font="italic" id="5">c</identifier>
</children>
</infixop>
</children>
</bigop>
<identifier role="latinletter" font="italic" id="7">a</identifier>
</children>
</infixop>
</stree>
```
Semantically enriched MathML:
```html
<math type="infixop" role="addition" id="11" children="10,7" content="6">
<mrow type="bigop" role="sum" id="10" children="3,9" parent="11">
<msubsup type="limboth" role="sum" id="3" children="0,1,2" parent="10">
<mi type="largeop" role="sum" id="0" parent="3">∑</mi>
<mi type="identifier" role="latinletter" id="1" parent="3">b</mi>
<mi type="identifier" role="latinletter" id="2" parent="3">c</mi>
</msubsup>
<mrow type="infixop" role="implicit" id="9" children="4,5" content="8" parent="10">
<mi type="identifier" role="latinletter" id="4" parent="9">b</mi>
<mrow type="operator" role="multiplication" id="8" children="" operator="infixop,⁢" parent="9"/>
<mi type="identifier" role="latinletter" id="5" parent="9">c</mi>
</mrow>
</mrow>
<mo type="operator" role="addition" id="6" operator="infixop,+" parent="11">+</mo>
<mi type="identifier" role="latinletter" id="7" parent="11">a</mi>
</math>
```
Clone repository

MathJax Wiki

  • Contributing
    • Contributor License Agreement etc
    • Quick guide to translating mathjax
  • Development
    • Development Process
      • Release Process Checklist
      • Documentation Update Process
      • Source Control Policies
      • GitHub
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • CDN requirements
        • CDN Hosting at Google Cloud Storage
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence