Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch extractor #186

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open

Patch extractor #186

wants to merge 48 commits into from

Conversation

AndreG-P
Copy link
Member

Updates and patches the extractor to use MOI rather than single identifiers.

AndreG-P added 19 commits March 11, 2020 16:39
Since MathMLTools is published on mvn central, it is easier to patch minor problems directly within the submodule.
Note that this submodule is *not* on the master branch but on mathosphere-fix.
The <math> tags (as well as all other xml tags in <text>) are by default escaped when downloading a wiki dump. Hence it is not <math> but &lt;math&gt;.
Since the AstVisitor is configured to find <math> (as well as <chem>) tags but &lt;math&gt; is not an xml tag, the visitor was unable to find them.
…t from 2.2.0 (why ever used in travis) to 3.3.0
@AndreG-P AndreG-P self-assigned this Oct 29, 2020
…tence

There was a problem that we manipulate the words (merging tokens) and afterwards calling the CoreNLP to build a semantic graph out of it. This made it rather difficult to ask for the correct distances between tokens in the semantic tree. The new solution builds the graph right from the cleaned text (including MATH and LINK placeholders) and after merging words, they got the index of the first noun in the merged list of words or the index of the first word in the list if there is no noun present. Hence, 'jacobi polynomial' has the index for jacobi and not polynomial. When we calculate the semantic-graph distance now, it returns the distance to jacobi.
First, we allow to annotate just a single node in the moi dependency graph now rather than always annotating the entire document (thats useful for specific applications). Second the PosTagger only creates one instance of CoreNLP annotator per language and model path. So if you do not change the language or the model path in one run, there will be only one instance of CoreNLP running. Third, we load the dependency parser directly when instantiating NLP annotator. This allows us to build a dependency graph directly on annotation process and not afterwards. It also means we do not need to load a separate dependency parser from the filesystem (CoreNLP takes care of it now) which heavily reduces load time from 40s to 2s.
…writes the previous tags which results in differences between dependency graph and library of mathtags.
@AndreG-P AndreG-P mentioned this pull request Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant