Giter Club home page Giter Club logo

sptr's People

Contributors

jerrygaolondon avatar

Watchers

 avatar  avatar

Forkers

hayeong922

sptr's Issues

improve frequency feature by Solr proximity search for multi-word term (MWT)

One of significant challenge of MWT recognition is the coordinated variant. Most of statistical based term recognition algorithms rely on term frequency in corpus as important feature. However, term coordinated variants can affect the performance with lower recall. Solr proximity searches can potentially improve recall and thus may improve the accuracy of related statistic metrics. This proximity based frequency is referred as 'sloppyFreq'.

"To perform a proximity search, add the tilde character ~ and a numeric value to the end of a search phrase. For example, to search for a "apache" and "jakarta" within 10 words of each other in a document, use the search: "jakarta apache"~10 The distance referred to here is the number of term movements needed to match the specified phrase. In the example above, if "apache" and "jakarta" were 10 spaces apart in a field, but "apache" appeared before "jakarta", more than 10 term movements would be required to move the terms together and position "apache" to the right of "jakarta" with a space in between."
https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html

see also performance concerns in https://www.searchtechnologies.com/blog/relevancy-ranking-course-part-3

see also the referred "slop factor" in https://lucidworks.com/2009/09/02/optimizing-findability-in-lucene-and-solr/

MaxRetryError


2016-01-11 11:44:29,085 [MainThread  ] - IndustryTermRecogniser - INFO - Term variation detection and aggregation...
Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 135, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 90, in create_connection
    raise err
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py", line 80, in create_connection
    sock.connect(sa)
OSError: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
    body=body, headers=headers)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1088, in request
    self._send_request(method, url, body, headers)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1126, in _send_request
    self.endheaders(body)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 1084, in endheaders
    self._send_output(message_body)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 922, in _send_output
    self.send(msg)
  File "/mnt/Python34/lib/python3.4/http/client.py", line 857, in send
    self.connect()
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 160, in connect
    conn = self._new_conn()
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connection.py", line 144, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/Python34/lib/python3.4/site-packages/requests/adapters.py", line 370, in send
    timeout=timeout
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py", line 609, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/mnt/Python34/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py", line 271, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='oakanalysis.shef.ac.uk', port=8983): Max retries exceeded with url: /solr/tatasteel/analysis/field?analysis.fieldvalue=auto+detection&wt=json&analysis.fieldtype=industry_term_normaliser (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/integration.py", line 145, in <module>
    trTagger.terminology_tagging()
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 165, in terminology_tagging
    self.synonym_aggregation(final_term_set)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 281, in synonym_aggregation
    norm_term_dict = dict((term, self.solrClient.get_industry_term_field_analysis(term)) for term in terms)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/IndustryTermRecogniser.py", line 281, in <genexpr>
    norm_term_dict = dict((term, self.solrClient.get_industry_term_field_analysis(term)) for term in terms)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 381, in get_industry_term_field_analysis
    analysis_result = self.field_analysis(term, field_type=pfield_type)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 371, in field_analysis
    response=self._send_request('GET', path)
  File "/mnt/oakanalysis/shared/SPEEAK-PC-TermRecognition/src/SolrClient.py", line 401, in _send_request
    response = requests.request(method=method, url=urljoin(url, path),headers=headers,data=data)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/mnt/Python34/lib/python3.4/site-packages/requests/adapters.py", line 423, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='xxx.shef.ac.uk', port=8983): Max retries exceeded with url: /solr/tatasteel/analysis/field?analysis.fieldvalue=auto+detection&wt=json&analysis.fieldtype=industry_term_normaliser (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb830c8f8d0>: Failed to establish a new connection: [Errno 99] Cannot assign requested address',))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.