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

Cosmas 2 operator #IN and #OV with exclusion #59

Open
margaretha opened this issue Feb 25, 2019 · 1 comment
Open

Cosmas 2 operator #IN and #OV with exclusion #59

margaretha opened this issue Feb 25, 2019 · 1 comment

Comments

@margaretha
Copy link
Contributor

margaretha commented Feb 25, 2019

Cosmas 2 operator #IN and #OV may be specified multiple options (see http://www.ids-mannheim.de/cosmas2/win-app/hilfe/suchanfrage/eingabe-grafisch/syntax/ARGUMENT_I.html and http://www.ids-mannheim.de/cosmas2/win-app/hilfe/suchanfrage/eingabe-grafisch/syntax/ARGUMENT_O.html).

Some cases with exclusion cannot be simply represented by using operation:exclusion (see #33).

CASE 1 #IN(%,HIT) and #IN(%,N,HIT) with complex operand Y

Example query: Frau #IN (%, HIT) (die /+w2:2 ist)

According to operation exclusion, Frau must not be within (die /+w2:2 ist). However, "die Frau ist" should be a match, because (die /+w2:2 ist) only consists of two hits die and ist. Thus Frau is allowed to exist in between these hits.

CASE 2 #IN(%,F,HIT) with complex operand Y

Example query: #ALL (die /+w2:2 ist) #IN(%,F,HIT) (die /+w2:2 ist)

According to operation exclusion, the operands should not matches. But this query satisfies frame:matches. Thus, there will be no result.

CASE 3 #IN(%,FI)

Example query: (Unter /+s0 Hausarrest) #IN(%,FI,HIT) (Unter /s0 Hausarrest)

return results in similar formats as

  1. Kurzum: Er stand unter Hausarrest.
  2. unter dem erzwungenen Hausarrest.

Example query: (Unter /+s0 Hausarrest) #IN(%,FI,ALL) (Unter /s0 Hausarrest)
returns only results similar to 1.

CASE 4 #IN(%,FE)

Example query: (Unter /+s0 Hausarrest) #IN(%,FE,HIT) (Unter /s0 Hausarrest)
returns empty results.

Example query: (Unter /+s0 Hausarrest) #IN(%,FE,ALL) (Unter /s0 Hausarrest)
returns results similar to 2.

@margaretha
Copy link
Contributor Author

CASE 3 & 4

Since FI and FE complement each others, an FI query with exclusion can be rewritten/handled as an FE query, and vice versa.

FE queries FI queries Number of results
#IN(FE, HIT) #IN(%,FI,HIT) 1493
#IN(%,FE,HIT) #IN(FI,HIT) 0
#IN(%,FE,ALL) #IN(FI,ALL) 92
#IN(FE,ALL) #IN(%,FI,ALL) 1401

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

No branches or pull requests

1 participant