There are two packages that I want to use: CorpusLoaders.jl and WordNet.jl
- CorpusLoaders.SemCor exports
sensekey(::SenseTaggedWord) - Word Export
sensekey(::DB, ::Synset, ::Lemma)
I want to use both methods sensekey.
For instance,
for a mixed list of items: mixedlist::Vector{Union{Tuple{SenseTaggedWord},Tuple{DB, Synset,Lemma}}. Those. the items in the list are a mixture of 1 sets SenseTaggedWordand 3 tuples DB, Synsetand Lemma.
for item in mixedlist
println(sensekey(item...)
end
must work. This example is a bit fascinating, so why should I mix them like that. But, hopefully, this serves to illustrate the problem in the general case.
An attempt to using CorpusLoaders.SemCor, WordNetbring both results toWARNING: both WordNet and Semcor export "sensekey"; uses of it in module Main must be qualified.
Manually import both: import CorpusLoaders.SemCor.sensekey; import WordNet.sensekeyresults inWARNING: ignoring conflicting import of Semcor.sensekey into Main
? , - .
, CorpusLoaders.jl - , , , CorpusLoaders.jl WordNet.jl.
, , CorpusLoaders.jl
import WordNet
function WordNet.sensekey(s::SenseTaggedWord)...
.
WordNet CorpusLoaders.
, - .