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

Add TAG_WORD macro to Tag module #103

Merged
merged 8 commits into from Oct 2, 2020

Conversation

rolandmueller
Copy link
Contributor

This feature would introduce the TAG_WORD element to the Tag module

TAG_WORD is for generating TAG patterns with a word or a list.

e.g. match only "proposed" when it is in the sentence a verb (and not an adjective):

!IMPORT("rita.modules.tag")

TAG_WORD("^VB", "proposed")

or e.g. match a list of words only to verbs

!IMPORT("rita.modules.tag")

words = {"percived", "proposed"}
{TAG_WORD("^VB", words)}->MARK("LABEL")

@codecov
Copy link

codecov bot commented Oct 2, 2020

Codecov Report

Merging #103 into master will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   93.21%   93.36%   +0.14%     
==========================================
  Files          15       15              
  Lines         722      738      +16     
  Branches      130      136       +6     
==========================================
+ Hits          673      689      +16     
  Misses         34       34              
  Partials       15       15              
Impacted Files Coverage Δ
rita/engine/translate_spacy.py 88.60% <100.00%> (+1.65%) ⬆️
rita/modules/tag.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8182b4...b7358e2. Read the comment docs.

@zaibacu zaibacu merged commit 1cae785 into zaibacu:master Oct 2, 2020
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.

None yet

2 participants